Segfault after sounf warning.

Segfault after sounf warning.

Postby O01eg » 17 Sep 2012, 11:33

When I run lipsofsuna it shows "WARNING: cannot initialize sound" at the console. After it I get segfault.

{l Code}: {l Select All Code}
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004a8e77 in lisnd_system_set_listener (self=0x0, pos=0xb837a8,
    vel=0x7fff38887850, dir=<optimized out>, up=<optimized out>)
    at ../src/lipsofsuna/extension/sound/sound-system.c:102
102      self->listener_position = *pos;
(gdb) bt full
#0  0x00000000004a8e77 in lisnd_system_set_listener (self=0x0, pos=0xb837a8,
    vel=0x7fff38887850, dir=<optimized out>, up=<optimized out>)
    at ../src/lipsofsuna/extension/sound/sound-system.c:102
        alpos = {-0, 0, -0}
        alvel = {0, 0, 0}
        alori = {-0, 0, -1, -0, 1, -0}
#1  0x00000000004a740c in private_tick (self=<optimized out>, secs=1.51480007)
    at ../src/lipsofsuna/extension/sound/sound-module.c:244
        direction = {x = 0, y = 0, z = 1}
        velocity = {x = 0, y = 0, z = 0}
        up = {x = 0, y = 1, z = 0}
#2  0x000000000042daf0 in lical_callbacks_call (self=<optimized out>,
    type=<optimized out>, marshal=0x42de00 <lical_marshal_DATA_FLT>)
    at ../src/lipsofsuna/callback/cal-callbacks.c:105
        args = {{gp_offset = 24, fp_offset = 64,
            overflow_arg_area = 0x7fff38887980,
            reg_save_area = 0x7fff388878b0}}
        typ = <optimized out>
        func = <optimized out>
        func_next = 0xad9a30
#3  0x000000000042f638 in limai_program_update (self=0x7000c0)
    at ../src/lipsofsuna/main/main-program.c:679
        i = <optimized out>
        secs = <optimized out>
#4  0x0000000000446f7e in liscr_marshal_CLASS (lua=0x708340)
    at ../src/lipsofsuna/script/script-args.c:1129
        args = {lua = 0x708340, script = 0x707a90, data = 0x0, self = 0x0,
          ret = 0, args_start = 1, args_count = 0, input_mode = 0,
          input_table = 0, output_mode = 0, output_table = 0}
        script = 0x707a90
        func = 0x447f30 <Program_update>
#5  0x00007f7897e0781d in ?? () from /usr/lib64/liblua.so.5
No symbol table info available.
#6  0x00007f7897e125d8 in ?? () from /usr/lib64/liblua.so.5
No symbol table info available.
#7  0x00007f7897e07cdd in ?? () from /usr/lib64/liblua.so.5
No symbol table info available.
#8  0x00007f7897e06f67 in ?? () from /usr/lib64/liblua.so.5
No symbol table info available.
#9  0x00007f7897e07e90 in ?? () from /usr/lib64/liblua.so.5
No symbol table info available.
#10 0x00007f7897e03971 in lua_pcall () from /usr/lib64/liblua.so.5
No symbol table info available.
#11 0x0000000000448db0 in private_exec_script (self=<optimized out>)
    at ../src/lipsofsuna/script/script.c:318
        ret = <optimized out>
#12 0x0000000000449270 in liscr_script_load_file (self=0x707a90,
    path=<optimized out>, path_mod=<optimized out>, path_core=<optimized out>)
    at ../src/lipsofsuna/script/script.c:233
        ret = <optimized out>
#13 0x000000000042ef0f in limai_program_execute_script (self=<optimized out>,
    file=<optimized out>) at ../src/lipsofsuna/main/main-program.c:237
        ret = <optimized out>
#14 0x000000000042f7bd in main (argc=1, argv=0x7fff38887e68)
    at ../src/lipsofsuna/main/main.c:106
        path = 0x6ff030 "/mnt/another/tmp/lipsofsuna/"
        launch_name = <optimized out>
        launch_args = 0x710160 " \\p"
        program = 0x7000c0
Public FreeOrion multiplayer server: https://freeorion-test.dedyn.io/
Slow paced multiplayer server (registration required!): https://freeorion.org/forum/viewtopic.p ... 705#p95705
Donates for FreeOrion multiplayer improvements: BTC:bc1q04qnmql47zkha6p4edl86hm0wgk90dmsfnl3vl
O01eg
 
Posts: 68
Joined: 17 Sep 2012, 11:15
Location: Russia

Re: Segfault after sounf warning.

Postby amuzen » 17 Sep 2012, 13:21

Thank you for the report. I committed a fix for this.
User avatar
amuzen
LoS Moderator
 
Posts: 327
Joined: 05 Dec 2009, 02:49

Who is online

Users browsing this forum: No registered users and 1 guest