segfault after quitting

For those having trouble installing/running the game or to report a bug

Moderator: Staff

shirish
Member
Posts: 72
Joined: Thu Oct 16, 2008 8:07 pm

segfault after quitting

Postby shirish » Mon Jan 07, 2013 7:24 pm

Hi all,
I get segfaults each time I close down. Here's the whole thing :-

Code: Select all

~/games/allacrost$ gdb allacrost
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/shirish/games/allacrost/allacrost...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/shirish/games/allacrost/allacrost
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef6e1700 (LWP 17865)]
[New Thread 0x7fffee956700 (LWP 17866)]
[Thread 0x7fffee956700 (LWP 17866) exited]
[New Thread 0x7fffee956700 (LWP 17867)]
[New Thread 0x7fffea154700 (LWP 17868)]
[Thread 0x7fffea154700 (LWP 17868) exited]
[Thread 0x7fffee956700 (LWP 17867) exited]
[New Thread 0x7fffee956700 (LWP 17869)]
[New Thread 0x7fffea154700 (LWP 17870)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5b92a79 in *__GI___libc_free (mem=0x10b3678) at malloc.c:3724
3724   malloc.c: No such file or directory.
(gdb) bt
#0  0x00007ffff5b92a79 in *__GI___libc_free (mem=0x10b3678) at malloc.c:3724
#1  0x0000000000446d6c in hoa_audio::AudioEngine::~AudioEngine() ()
#2  0x00000000004477b9 in hoa_audio::AudioEngine::~AudioEngine() ()
#3  0x000000000040f3aa in QuitAllacrost() ()
#4  0x00007ffff5b4ddf2 in __run_exit_handlers (status=0, listp=0x7ffff5e9b4c8, run_list_atexit=true) at exit.c:78
#5  0x00007ffff5b4de45 in *__GI_exit (status=17512056) at exit.c:100
#6  0x00007ffff5b35eb4 in __libc_start_main (main=<optimized out>, argc=<optimized out>, ubp_av=<optimized out>,
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe2e8)
    at libc-start.c:260
#7  0x000000000040f22d in _start ()
(gdb) bt full
#0  0x00007ffff5b92a79 in *__GI___libc_free (mem=0x10b3678) at malloc.c:3724
        ar_ptr = 0x7ffff5e9ce60
        p = 0x10b3668
#1  0x0000000000446d6c in hoa_audio::AudioEngine::~AudioEngine() ()
No symbol table info available.
#2  0x00000000004477b9 in hoa_audio::AudioEngine::~AudioEngine() ()
No symbol table info available.
#3  0x000000000040f3aa in QuitAllacrost() ()
No symbol table info available.
#4  0x00007ffff5b4ddf2 in __run_exit_handlers (status=0, listp=0x7ffff5e9b4c8, run_list_atexit=true) at exit.c:78
        atfct = <optimized out>
        onfct = <optimized out>
        cxafct = 0
#5  0x00007ffff5b4de45 in *__GI_exit (status=17512056) at exit.c:100
No locals.
#6  0x00007ffff5b35eb4 in __libc_start_main (main=<optimized out>, argc=<optimized out>, ubp_av=<optimized out>,
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe2e8)
    at libc-start.c:260
---Type <return> to continue, or q <return> to quit---
        result = 0
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -2086398858718622073, 4256260, 140737488347888, 0, 0,
                2086398858053275271, 2086420261629578887}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0,
              0x636710, 0x7fffffffe2f8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 6514448}}}
        not_first_call = <optimized out>
#7  0x000000000040f22d in _start ()
No symbol table info available.
(gdb) quit
A debugging session is active.

   Inferior 1 [process 17862] will be killed.

Quit anyway? (y or n) y


If there is any library whose -dbg package needs to be installed or something (I ask because it said No symbol table info. available) lemme know I would install it, run gdb again and get more info. as well but need to know which libraries -dbg packages are needed and have to see if they are available in Debian.
Last edited by shirish on Mon Jan 07, 2013 7:34 pm, edited 1 time in total.
Intel i5-7400, Asus Z270-P, 8 GB DDR4 2400 RAM, D-Link 502-T router, 64-bit Debian Buster, MATE 1.18 ,
User avatar
Roots
Dictator
Posts: 8664
Joined: Wed Jun 16, 2004 6:07 pm
Location: Austin TX
Contact:

Re: segfault after quitting

Postby Roots » Mon Jan 07, 2013 7:32 pm

This is a known issue and I was aware that it was present when I committed it several weeks ago. It has to do with the destructor in the audio engine. I just haven't had time to look into fixing the issue myself, and since the seg fault doesn't happen until after the game exits, it was a low priority.

By the way shrish, you really don't need to file a bug report here for every single issue you that you encounter with the latest checkout. Development is sometimes needs to be a messy process, and we clean up this mess when a release is approaching. This forum is primarily for reporting problems in our official releases. Asking for help on build issues here is okay though.
Image
User avatar
Roots
Dictator
Posts: 8664
Joined: Wed Jun 16, 2004 6:07 pm
Location: Austin TX
Contact:

Re: segfault after quitting

Postby Roots » Mon Jan 07, 2013 7:34 pm

And also, to add debugging symbols to the game you need to add the "--enable-debug" option when you run the configure script. That will put all the proper symbols for the game code in place. By default, the game does not compile with debugging symbols enabled.
Image
shirish
Member
Posts: 72
Joined: Thu Oct 16, 2008 8:07 pm

Re: segfault after quitting

Postby shirish » Mon Jan 07, 2013 7:36 pm

Thanx, cool. As far as you are aware of the issue it's all good.
Intel i5-7400, Asus Z270-P, 8 GB DDR4 2400 RAM, D-Link 502-T router, 64-bit Debian Buster, MATE 1.18 ,

Return to “Technical Issues”

Who is online

Users browsing this forum: No registered users and 1 guest