#147 vba-m gtk losing its config in ubuntu

Unverified
open
None
5
2014-07-06
2014-04-02
Sergio Benjamim
No

Hi!

I'm doing some tests in svn1229, and I realized that vbam-gtk is losing its configuration sometimes. Normally, it happens when:

  • Load a ROM and...
  • Closes the vba-m window

Then when i open it again, i can see that it lost its configuration (I put scale=2x to see it easier). But you have to do this steps several times to happens. In Ubuntu 13.10 this happens very often if I don't use this workaround to disable global menu:

Exec=env UBUNTU_MENUPROXY=0 gvbam %f
(in file /usr/share/applications/gvbam.desktop)

I noticed this problem in Linux Mint 16 Mate too.

I realized that vbam saves its config every time it is closed, even if i don't make any modification in the emulator. Is it the expected behavior?

Where can I start looking, about this? (well, i don't know if i can help more than report this issue...)

Discussion

1 2 > >> (Page 1 of 2)
  • If you open a game, this will change the content of the 'Recent' menu and will of course be saved to file.

    But its definitely not right that the configuration is lost.

     
    • humm, well, but the file ~/.config/gvbam/config does not saves any 'Recent'. I don't know where this recent files are saving (btw, there is a problem with this 'recent' menu, if i open more than 10 ROM's it will not change the list anymore, so i don't know if 'recent' menu and the config file are related).

       
  • I opened gvbam in terminal, and I got a "Segmentation fault (core dumped)" right now, after closes it.

    Opened again, closed, and gvbam continues in the system, i had to kill it in monitor system.

     
  • I'm doing more tests, both in 32 and 64 bits version of ubuntu there is segmentation fault when I closes when run games.

    Tested in gba and gbc games, both have segmentation fault.

    But only in 64 bits i had config loss.

    Maybe we have 2 issues?

     
    Last edit: Sergio Benjamim 2014-04-11
  • Hi,

    I've not been able to reproduce this issue with Ubuntu 13.10 64bits. Can you please provide a backtrace of the crash? To get an useful backtrace please use a non-stripped build.

     
  • Starting program: /home/sergio/Projects/lp/fixes-test/./gvbam
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7fffe81b3700 (LWP 13316)]
    [New Thread 0x7fffe79b2700 (LWP 13317)]
    [New Thread 0x7fffe71b1700 (LWP 13318)]
    [New Thread 0x7fffe69b0700 (LWP 13319)]
    [Thread 0x7fffe69b0700 (LWP 13319) exited]
    [New Thread 0x7fffe69b0700 (LWP 13320)]
    [New Thread 0x7fffe5b32700 (LWP 13321)]
    [New Thread 0x7fffe5114700 (LWP 13322)]
    [New Thread 0x7fffe4913700 (LWP 13323)]
    [New Thread 0x7fffd1040700 (LWP 13324)]
    [Thread 0x7fffe4913700 (LWP 13323) exited]
    [Thread 0x7fffe5114700 (LWP 13322) exited]
    [Thread 0x7fffe69b0700 (LWP 13320) exited]

    Program received signal SIGSEGV, Segmentation fault.
    malloc_consolidate (av=av@entry=0x7ffff4c2d740 <main_arena>) at malloc.c:4094
    4094 malloc.c: No such file or directory.
    (gdb) bt

    0 malloc_consolidate (av=av@entry=0x7ffff4c2d740 <main_arena>) at malloc.c:4094

    1 0x00007ffff48ed0e1 in _int_malloc (av=0x7ffff4c2d740 <main_arena>, bytes=2048)

    at malloc.c:3379
    

    2 0x00007ffff48ef4d0 in GI_libc_malloc (bytes=2048) at malloc.c:2859

    3 0x00007ffff58b9e6f in g_realloc () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    4 0x00007ffff58d3254 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    5 0x00007ffff58d32a2 in g_string_sized_new () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    6 0x00007ffff58aa5e3 in g_io_channel_write_chars ()

    from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    7 0x00007ffff6589ceb in Glib::IOChannel::write(char const*, long, unsigned long&) ()

    from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1

    8 0x00007ffff6589d3d in Glib::IOChannel::write(Glib::ustring const&) ()

    from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1

    9 0x00000000004583f7 in VBA::Config::File::vSave(std::string const&) ()

    10 0x000000000048b401 in VBA::Window::vSaveConfig(std::string const&) ()

    11 0x00000000004871f4 in VBA::Window::~Window() ()

    12 0x000000000048751a in VBA::Window::~Window() ()

    13 0x000000000045ac27 in main ()

     
  • (gdb) bt full

    0 malloc_consolidate (av=av@entry=0x7ffff4c2d740 <main_arena>) at malloc.c:4094

        fb = <optimized out>
        maxfb = 0x7ffff4c2d790 <main_arena+80>
        p = 0xfffff10001225ca0
        nextp = 0x1326d4000
        unsorted_bin = 0x7ffff4c2d798 <main_arena+88>
        first_unsorted = <optimized out>
        nextchunk = 0x1229d9f
        size = 16492674433279
        nextsize = 8448
        prevsize = 16492674420735
        nextinuse = <optimized out>
        bck = <optimized out>
        fwd = <optimized out>
        __func__ = "malloc_consolidate"
    

    1 0x00007ffff48ed0e1 in _int_malloc (av=0x7ffff4c2d740 <main_arena>, bytes=2048)

    at malloc.c:3379
        nb = 2064
        idx = <optimized out>
        bin = <optimized out>
        victim = <optimized out>
        size = <optimized out>
        victim_index = <optimized out>
        remainder = <optimized out>
        remainder_size = <optimized out>
        block = <optimized out>
        bit = <optimized out>
        map = <optimized out>
        fwd = <optimized out>
        bck = <optimized out>
        errstr = 0x0
        __func__ = "_int_malloc"
    

    2 0x00007ffff48ef4d0 in GI_libc_malloc (bytes=2048) at malloc.c:2859

        ar_ptr = 0x7ffff4c2d740 <main_arena>
        victim = 0xde1
        __func__ = "__libc_malloc"
    

    3 0x00007ffff58b9e6f in g_realloc () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    No symbol table info available.

    4 0x00007ffff58d3254 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    No symbol table info available.

    5 0x00007ffff58d32a2 in g_string_sized_new () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    No symbol table info available.
    ---Type <return> to continue, or q <return> to quit---

    6 0x00007ffff58aa5e3 in g_io_channel_write_chars ()

    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    No symbol table info available.

    7 0x00007ffff6589ceb in Glib::IOChannel::write(char const*, long, unsigned long&) ()

    from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
    No symbol table info available.

    8 0x00007ffff6589d3d in Glib::IOChannel::write(Glib::ustring const&) ()

    from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
    No symbol table info available.

    9 0x00000000004583f7 in VBA::Config::File::vSave(std::string const&) ()

    No symbol table info available.

    10 0x000000000048b401 in VBA::Window::vSaveConfig(std::string const&) ()

    No symbol table info available.

    11 0x00000000004871f4 in VBA::Window::~Window() ()

    No symbol table info available.

    12 0x000000000048751a in VBA::Window::~Window() ()

    No symbol table info available.

    13 0x000000000045ac27 in main ()

    No symbol table info available.

     
  • Now, with cmake -DCMAKE_BUILD_TYPE=Debug

    gdb ./gvbam
    GNU gdb (GDB) 7.6.1-ubuntu
    Copyright (C) 2013 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/sergio/Projects/lp/fixes-test/gvbam...done.
    (gdb) run
    Starting program: /home/sergio/Projects/lp/fixes-test/./gvbam
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7fffe81b3700 (LWP 16071)]
    [New Thread 0x7fffe79b2700 (LWP 16072)]
    [New Thread 0x7fffe71b1700 (LWP 16073)]
    [New Thread 0x7fffe69b0700 (LWP 16074)]
    [Thread 0x7fffe69b0700 (LWP 16074) exited]
    [New Thread 0x7fffe69b0700 (LWP 16075)]
    [New Thread 0x7fffe5b32700 (LWP 16076)]
    [New Thread 0x7fffe5114700 (LWP 16077)]
    [New Thread 0x7fffe4913700 (LWP 16078)]
    [New Thread 0x7fffd1040700 (LWP 16079)]
    [Thread 0x7fffd1040700 (LWP 16079) exited]
    [Thread 0x7fffe4913700 (LWP 16078) exited]
    [Thread 0x7fffe69b0700 (LWP 16075) exited]

    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff48ebc2b in malloc_consolidate (av=av@entry=0x7ffff4c2d740 <main_arena>)
    at malloc.c:4094
    4094 malloc.c: No such file or directory.
    (gdb) bt full

    0 0x00007ffff48ebc2b in malloc_consolidate (av=av@entry=0x7ffff4c2d740 <main_arena>)

    at malloc.c:4094
        fb = <optimized out>
        maxfb = 0x7ffff4c2d790 <main_arena+80>
        p = 0x132380f
        nextp = 0x0
        unsorted_bin = 0x7ffff4c2d798 <main_arena+88>
        first_unsorted = <optimized out>
        nextchunk = 0x1326b0f
        size = 13056
        nextsize = 0
        prevsize = <optimized out>
        nextinuse = <optimized out>
        bck = 0x7fff000005ff00
        fwd = 0x20000000200
        __func__ = "malloc_consolidate"
    

    1 0x00007ffff48ed0e1 in _int_malloc (av=0x7ffff4c2d740 <main_arena>, bytes=2048)

    at malloc.c:3379
        nb = 2064
        idx = <optimized out>
        bin = <optimized out>
        victim = <optimized out>
        size = <optimized out>
        victim_index = <optimized out>
        remainder = <optimized out>
        remainder_size = <optimized out>
        block = <optimized out>
        bit = <optimized out>
        map = <optimized out>
        fwd = <optimized out>
        bck = <optimized out>
        errstr = 0x0
        __func__ = "_int_malloc"
    

    2 0x00007ffff48ef4d0 in GI_libc_malloc (bytes=2048) at malloc.c:2859

        ar_ptr = 0x7ffff4c2d740 <main_arena>
        victim = 0x7fff000005ff00
        __func__ = "__libc_malloc"
    

    3 0x00007ffff58b9e6f in g_realloc () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    No symbol table info available.

    4 0x00007ffff58d3254 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    No symbol table info available.

    5 0x00007ffff58d32a2 in g_string_sized_new () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    ---Type <return> to continue, or q <return> to quit---
    No symbol table info available.

    6 0x00007ffff58aa5e3 in g_io_channel_write_chars ()

    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    No symbol table info available.

    7 0x00007ffff6589ceb in Glib::IOChannel::write(char const*, long, unsigned long&) ()

    from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
    No symbol table info available.

    8 0x00007ffff6589d3d in Glib::IOChannel::write(Glib::ustring const&) ()

    from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
    No symbol table info available.

    9 0x00000000004583f7 in VBA::Config::File::vSave (this=0xa05748, _rsFile=...)

    at /home/sergio/Projects/lp/fixes-test/src/gtk/configfile.cpp:222
        sName = {static npos = <optimized out>, 
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x9e2918 "[Directories]\n"}}
        poSection = {_M_node = 0xa31870}
        poFile = {pCppObject_ = 0xa39fa0}
    

    10 0x000000000048b401 in VBA::Window::vSaveConfig (this=0xa056a0, _rsFile=...)

    at /home/sergio/Projects/lp/fixes-test/src/gtk/window.cpp:747
    

    No locals.

    11 0x00000000004871f4 in VBA::Window::~Window (this=0xa056a0, __in_chrg=<optimized out="">,

    __vtt_parm=<optimized out>)
    at /home/sergio/Projects/lp/fixes-test/src/gtk/window.cpp:339
    

    No locals.

    12 0x000000000048751a in VBA::Window::~Window (this=0xa056a0, __in_chrg=<optimized out="">,

    __vtt_parm=<optimized out>)
    at /home/sergio/Projects/lp/fixes-test/src/gtk/window.cpp:347
    

    No locals.

    13 0x000000000045ac27 in main (argc=1, argv=0x7fffffffe3a8)

    at /home/sergio/Projects/lp/fixes-test/src/gtk/main.cpp:123
        bShowVersion = false
        oKit = <incomplete type>
        oGroup = <incomplete type>
        sGtkBuilderFile = {static npos = <optimized out>, 
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x9e23b8 "src/gtk/ui/vbam.ui"}}
        listRemaining = {<std::_Vector_base<Glib::ustring, std::allocator<Glib::ustring> >> = {
            _M_impl = {<std::allocator<Glib::ustring>> = {<__gnu_cxx::new_allocator<Glib::ustring>> = {<No data fields>}, <No data fields>}, _M_start = 0x0, _M_finish = 0x0, 
              _M_end_of_storage = 0x0}}, <No data fields>}
        poXml = {pCppObject_ = 0x9e2610}
    

    ---Type <return> to continue, or q <return> to quit---
    poWindow = 0xa056a0
    oContext = <incomplete type="">
    oVersion = <incomplete type="">
    oFileName = <incomplete type="">

     
  • Installed libglibmm-2.4-dbg and libglib2.0-0-dbg:

    gdb ./gvbam
    GNU gdb (GDB) 7.6.1-ubuntu
    Copyright (C) 2013 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/sergio/Projects/lp/fixes-test/gvbam...done.
    (gdb) run
    Starting program: /home/sergio/Projects/lp/fixes-test/./gvbam
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7fffe81b3700 (LWP 17212)]
    [New Thread 0x7fffe79b2700 (LWP 17213)]
    [New Thread 0x7fffe71b1700 (LWP 17214)]
    [New Thread 0x7fffe69b0700 (LWP 17215)]
    [Thread 0x7fffe69b0700 (LWP 17215) exited]
    [New Thread 0x7fffe69b0700 (LWP 17216)]
    [New Thread 0x7fffe5b32700 (LWP 17217)]
    [New Thread 0x7fffe5114700 (LWP 17218)]
    [New Thread 0x7fffe4913700 (LWP 17219)]
    [Thread 0x7fffe5114700 (LWP 17218) exited]
    [Thread 0x7fffe69b0700 (LWP 17216) exited]

    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff48ebc2b in malloc_consolidate (av=av@entry=0x7ffff4c2d740 <main_arena>) at malloc.c:4094
    4094 malloc.c: No such file or directory.
    (gdb) bt full

    0 0x00007ffff48ebc2b in malloc_consolidate (av=av@entry=0x7ffff4c2d740 <main_arena>) at malloc.c:4094

        fb = <optimized out>
        maxfb = 0x7ffff4c2d790 <main_arena+80>
        p = 0x11e0a3f
        nextp = 0x0
        unsorted_bin = 0x7ffff4c2d798 <main_arena+88>
        first_unsorted = <optimized out>
        nextchunk = 0x11e3b3f
        size = 12544
        nextsize = 274688
        prevsize = <optimized out>
        nextinuse = <optimized out>
        bck = 0x2d2d2d2d2d2d2d00
        fwd = 0x0
        __func__ = "malloc_consolidate"
    

    1 0x00007ffff48ed0e1 in _int_malloc (av=0x7ffff4c2d740 <main_arena>, bytes=2048) at malloc.c:3379

        nb = 2064
        idx = <optimized out>
        bin = <optimized out>
        victim = <optimized out>
        size = <optimized out>
        victim_index = <optimized out>
        remainder = <optimized out>
        remainder_size = <optimized out>
        block = <optimized out>
        bit = <optimized out>
        map = <optimized out>
        fwd = <optimized out>
        bck = <optimized out>
        errstr = 0x0
        __func__ = "_int_malloc"
    

    2 0x00007ffff48ef4d0 in GI_libc_malloc (bytes=2048) at malloc.c:2859

        ar_ptr = 0x7ffff4c2d740 <main_arena>
        victim = 0x2d2d2d2d2d2d2d00
        __func__ = "__libc_malloc"
    

    3 0x00007ffff58b9e6f in g_realloc (mem=<optimized out="">, n_bytes=2048) at /build/buildd/glib2.0-2.38.1/./glib/gmem.c:169

        newmem = <optimized out>
    

    4 0x00007ffff58d3254 in g_string_maybe_expand (string=string@entry=0x7fffd80015a0, len=len@entry=1024) at /build/buildd/glib2.0-2.38.1/./glib/gstring.c:107

    No locals.

    5 0x00007ffff58d32a2 in g_string_sized_new (dfl_size=1024) at /build/buildd/glib2.0-2.38.1/./glib/gstring.c:132

        string = 0x7fffd80015a0
    

    6 0x00007ffff58aa5e3 in g_io_channel_write_chars (channel=0x1301890, buf=0x9ff178 "[Directories]\n", count=14, bytes_written=0x7fffffffde78, error=0x7fffffffde58)

    at /build/buildd/glib2.0-2.38.1/./glib/giochannel.c:2266
        status = <optimized out>
        wrote_bytes = 0
        __PRETTY_FUNCTION__ = "g_io_channel_write_chars"
        __FUNCTION__ = "g_io_channel_write_chars"
    

    ---Type <return> to continue, or q <return> to quit---

    7 0x00007ffff6589ceb in Glib::IOChannel::write (this=this@entry=0xa38f60, buf=<optimized out="">, count=count@entry=14, bytes_written=@0x7fffffffde78: 0)

    at iochannel.cc:606
        gerror = 0x0
        retvalue = <optimized out>
    

    8 0x00007ffff6589d3d in Glib::IOChannel::write (this=0xa38f60, str=...) at iochannel.cc:214

        bytes_written = 0
    

    9 0x00000000004583f7 in VBA::Config::File::vSave (this=0xa047e8, _rsFile=...) at /home/sergio/Projects/lp/fixes-test/src/gtk/configfile.cpp:222

        sName = {static npos = <optimized out>, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, 
            _M_p = 0x9ff178 "[Directories]\n"}}
        poSection = {_M_node = 0x9ecfd0}
        poFile = {pCppObject_ = 0xa38f60}
    

    10 0x000000000048b401 in VBA::Window::vSaveConfig (this=0xa04740, _rsFile=...) at /home/sergio/Projects/lp/fixes-test/src/gtk/window.cpp:747

    No locals.

    11 0x00000000004871f4 in VBA::Window::~Window (this=0xa04740, in_chrg=<optimized out="">, vtt_parm=<optimized out="">)

    at /home/sergio/Projects/lp/fixes-test/src/gtk/window.cpp:339
    

    No locals.

    12 0x000000000048751a in VBA::Window::~Window (this=0xa04740, in_chrg=<optimized out="">, vtt_parm=<optimized out="">)

    at /home/sergio/Projects/lp/fixes-test/src/gtk/window.cpp:347
    

    No locals.

    13 0x000000000045ac27 in main (argc=1, argv=0x7fffffffe3a8) at /home/sergio/Projects/lp/fixes-test/src/gtk/main.cpp:123

        bShowVersion = false
        oKit = <incomplete type>
        oGroup = {_vptr.OptionGroup = 0x7ffff67b9190 <vtable for Glib::OptionGroup+16>, map_entries_ = {_M_t = {
              _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<Glib::ustring const, Glib::OptionGroup::CppOptionEntry> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<Glib::ustring const, Glib::OptionGroup::CppOptionEntry> > >> = {<No data fields>}, <No data fields>}, 
                _M_key_compare = {<std::binary_function<Glib::ustring, Glib::ustring, bool>> = {<No data fields>}, <No data fields>}, _M_header = {
                  _M_color = std::_S_red, _M_parent = 0x9e13b0, _M_left = 0x9e15b0, _M_right = 0x9e13b0}, _M_node_count = 2}}}, gobject_ = 0x9e11e0, 
          has_ownership_ = false}
        sGtkBuilderFile = {static npos = <optimized out>, 
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x9e1418 "src/gtk/ui/vbam.ui"}}
        listRemaining = {<std::_Vector_base<Glib::ustring, std::allocator<Glib::ustring> >> = {
            _M_impl = {<std::allocator<Glib::ustring>> = {<__gnu_cxx::new_allocator<Glib::ustring>> = {<No data fields>}, <No data fields>}, _M_start = 0x0, 
              _M_finish = 0x0, _M_end_of_storage = 0x0}}, <No data fields>}
        poXml = {pCppObject_ = 0x9e1670}
        poWindow = 0xa04740
        oContext = {_vptr.OptionContext = 0x7ffff67b9110 <vtable for Glib::OptionContext+16>, gobject_ = 0x9e1110, has_ownership_ = true}
        oVersion = {_vptr.OptionEntry = 0x7ffff67b9150 <vtable for Glib::OptionEntry+16>, 
          GOptionFlags = (Glib::OptionEntry::FLAG_FILENAME | Glib::OptionEntry::FLAG_OPTIONAL_ARG | Glib::OptionEntry::FLAG_NOALIAS | unknown: 4130619776), 
          gobject_ = 0x9e1170}
        oFileName = {_vptr.OptionEntry = 0x7ffff67b9150 <vtable for Glib::OptionEntry+16>, 
          GOptionFlags = (Glib::OptionEntry::FLAG_HIDDEN | Glib::OptionEntry::FLAG_IN_MAIN | Glib::OptionEntry::FLAG_REVERSE | Glib::OptionEntry::FLAG_NO_ARG | Glib::OptionEntry::FLAG_NOALIAS | unknown: 4294959616), gobject_ = 0x9e1440}
    
     
  • My source is a little bit changed, this is the output from the tarball upstream:

    gdb ./gvbam
    GNU gdb (GDB) 7.6.1-ubuntu
    Copyright (C) 2013 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/sergio/Projects/teste-dbg/vbam-code-1230-trunk/gvbam...done.
    (gdb) run
    Starting program: /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/./gvbam
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7fffe81b3700 (LWP 19509)]
    [New Thread 0x7fffe79b2700 (LWP 19510)]
    [New Thread 0x7fffe71b1700 (LWP 19511)]
    [New Thread 0x7fffe69b0700 (LWP 19512)]
    [Thread 0x7fffe69b0700 (LWP 19512) exited]
    [New Thread 0x7fffe69b0700 (LWP 19513)]
    [New Thread 0x7fffe5b32700 (LWP 19514)]
    [New Thread 0x7fffe5114700 (LWP 19515)]
    [New Thread 0x7fffe4913700 (LWP 19516)]
    [Thread 0x7fffe4913700 (LWP 19516) exited]
    [Thread 0x7fffe69b0700 (LWP 19513) exited]

    Program received signal SIGSEGV, Segmentation fault.
    _int_free (av=0x7ffff4c2d740 <main_arena>, p=0xa29ea0, have_lock=0) at malloc.c:3853
    3853 malloc.c: No such file or directory.

    bt full

    0 _int_free (av=0x7ffff4c2d740 <main_arena>, p=0xa29ea0, have_lock=0) at malloc.c:3853

        idx = 1
        fd = <optimized out>
        old = 0xffffffff00a2b9f0
        old_idx = <optimized out>
        size = <optimized out>
        fb = 0x7ffff4c2d750 <main_arena+16>
        nextchunk = <optimized out>
        nextsize = <optimized out>
        nextinuse = <optimized out>
        prevsize = <optimized out>
        bck = <optimized out>
        fwd = <optimized out>
        errstr = 0x0
        locked = 0
        __func__ = "_int_free"
    

    1 0x00007fffee59fd5f in pa_xfree () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so

    No symbol table info available.

    2 0x00007fffee5ce788 in pa_tagstruct_free_data () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so

    No symbol table info available.

    3 0x00007fffee5c3639 in pa_pstream_send_tagstruct_with_creds () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so

    No symbol table info available.

    4 0x00007ffff3f57c84 in pa_stream_disconnect () from /usr/lib/x86_64-linux-gnu/libpulse.so.0

    No symbol table info available.

    5 0x00007ffff7b79a26 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0

    No symbol table info available.

    6 0x00007ffff7b4e0ec in SDL_AudioQuit () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0

    No symbol table info available.

    7 0x00007ffff7b4cf95 in SDL_QuitSubSystem () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0

    No symbol table info available.

    8 0x0000000000498145 in SoundSDL::~SoundSDL (this=0xa03d00, __in_chrg=<optimized out="">)

    at /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/src/common/SoundSDL.cpp:149
        iSave = 0
    

    9 0x00000000004981e4 in SoundSDL::~SoundSDL (this=0xa03d00, __in_chrg=<optimized out="">)

    at /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/src/common/SoundSDL.cpp:152
    

    No locals.

    10 0x000000000052c8f6 in soundShutdown () at /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/src/gba/Sound.cpp:488

    No locals.

    11 0x0000000000487a2d in VBA::Window::vUnInitSystem (this=0xa048a0) at /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/src/gtk/window.cpp:454

    No locals.

    12 0x00000000004871ce in VBA::Window::~Window (this=0xa048a0, in_chrg=<optimized out="">, vtt_parm=<optimized out="">)

    at /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/src/gtk/window.cpp:336
    

    No locals.

    13 0x000000000048751a in VBA::Window::~Window (this=0xa048a0, in_chrg=<optimized out="">, vtt_parm=<optimized out="">)

    at /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/src/gtk/window.cpp:346
    

    No locals.

    14 0x000000000045ac27 in main (argc=1, argv=0x7fffffffe368) at /home/sergio/Projects/teste-dbg/vbam-code-1230-trunk/src/gtk/main.cpp:122

        bShowVersion = false
        oKit = <incomplete type>
        oGroup = {_vptr.OptionGroup = 0x7ffff67b9190 <vtable for Glib::OptionGroup+16>, map_entries_ = {_M_t = {
              _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<Glib::ustring const, Glib::OptionGroup::CppOptionEntry> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<Glib::ustring const, Glib::OptionGroup::CppOptionEntry> > >> = {<No data fields>}, <No data fields>}, 
                _M_key_compare = {<std::binary_function<Glib::ustring, Glib::ustring, bool>> = {<No data fields>}, <No data fields>}, _M_header = {
                  _M_color = std::_S_red, _M_parent = 0x9e1510, _M_left = 0x9e1710, _M_right = 0x9e1510}, _M_node_count = 2}}}, gobject_ = 0x9e1340, 
          has_ownership_ = false}
        sGtkBuilderFile = {static npos = <optimized out>, 
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x9e1578 "src/gtk/ui/vbam.ui"}}
        listRemaining = {<std::_Vector_base<Glib::ustring, std::allocator<Glib::ustring> >> = {
            _M_impl = {<std::allocator<Glib::ustring>> = {<__gnu_cxx::new_allocator<Glib::ustring>> = {<No data fields>}, <No data fields>}, _M_start = 0x0, 
              _M_finish = 0x0, _M_end_of_storage = 0x0}}, <No data fields>}
        poXml = {pCppObject_ = 0x9e17d0}
        poWindow = 0xa048a0
        oContext = {_vptr.OptionContext = 0x7ffff67b9110 <vtable for Glib::OptionContext+16>, gobject_ = 0x9e1270, has_ownership_ = true}
        oVersion = {_vptr.OptionEntry = 0x7ffff67b9150 <vtable for Glib::OptionEntry+16>, 
          GOptionFlags = (Glib::OptionEntry::FLAG_FILENAME | Glib::OptionEntry::FLAG_OPTIONAL_ARG | Glib::OptionEntry::FLAG_NOALIAS | unknown: 4130619776), 
          gobject_ = 0x9e12d0}
        oFileName = {_vptr.OptionEntry = 0x7ffff67b9150 <vtable for Glib::OptionEntry+16>, 
          GOptionFlags = (Glib::OptionEntry::FLAG_HIDDEN | Glib::OptionEntry::FLAG_IN_MAIN | Glib::OptionEntry::FLAG_REVERSE | Glib::OptionEntry::FLAG_NO_ARG | unknown: 4294959616), gobject_ = 0x9e15a0}
    
     
1 2 > >> (Page 1 of 2)