Re: gsequencer crashes in gdb and in valgrind not

Joël Krähemann
2015-05-15T14:22:28Z

Missing include fixed it :)

On Fri, May 15, 2015 at 1:58 PM, Joël Krähemann <weedlight@gmail.com> wrote:
> Hi,what could cause that my program crashes in gdb but with valgrind
> works everything fine?
> Further me don't believe that gdb's stack trace shows me a useful hint:
>
> #0 0x00007ffff657fb5b in gtk_box_pack () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #1 0x00007ffff657fdbd in gtk_box_pack_start () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #2 0x00000000004568ca in ags_plugin_browser_init
> (plugin_browser=0x7fffd4111980) at src/ags/X/ags_plugin_browser.c:154
> #3 0x00007ffff09831b9 in g_type_create_instance () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #4 0x00007ffff0967147 in g_object_new_internal () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #5 0x00007ffff0968a7d in g_object_newv () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #6 0x00007ffff09691cc in g_object_new () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #7 0x0000000000456b15 in ags_plugin_browser_new
> (parent=parent@entry=0x7fffd4113e50) at
> src/ags/X/ags_plugin_browser.c:283
> #8 0x000000000045af4d in ags_line_member_editor_init
> (line_member_editor=0x7fffd4113e50) at
> src/ags/X/ags_line_member_editor.c:150
> #9 0x00007ffff09831b9 in g_type_create_instance () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #10 0x00007ffff0967147 in g_object_new_internal () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #11 0x00007ffff0968a7d in g_object_newv () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #12 0x00007ffff09691cc in g_object_new () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #13 0x000000000045b289 in ags_line_member_editor_new () at
> src/ags/X/ags_line_member_editor.c:265
> #14 0x0000000000458f39 in ags_line_editor_set_channel
> (line_editor=0x7fffd4113c10, channel=<optimized out>) at
> src/ags/X/ags_line_editor.c:318
> #15 0x00007ffff09674dd in g_object_new_internal () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #16 0x00007ffff0968ea5 in g_object_new_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #17 0x00007ffff09691b4 in g_object_new () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #18 0x000000000045904e in ags_line_editor_new (channel=<optimized
> out>) at src/ags/X/ags_line_editor.c:341
> #19 0x00000000004656e8 in ags_pad_editor_set_channel
> (pad_editor=0x7fffd4113b50, channel=0x7fffd40d33b0) at
> src/ags/X/ags_pad_editor.c:357
> #20 0x00007ffff09674dd in g_object_new_internal () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #21 0x00007ffff0968ea5 in g_object_new_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #22 0x00007ffff09691b4 in g_object_new () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #23 0x000000000046580e in ags_pad_editor_new (channel=<optimized out>)
> at src/ags/X/ags_pad_editor.c:386
> #24 0x000000000045e239 in ags_listing_editor_add_children
> (listing_editor=listing_editor@entry=0x7fffd4113a90, audio=<optimized
> out>, nth_channel=nth_channel@entry=0, connect=connect@entry=0) at
> src/ags/X/ags_listing_editor.c:299
> #25 0x000000000045dc7b in ags_listing_editor_parent_set_callback
> (widget=0x7fffd4113a90, old_parent=<optimized out>,
> listing_editor=0x7fffd4113a90) at
> src/ags/X/ags_listing_editor_callbacks.c:35
> #26 0x00007ffff0964fc7 in g_cclosure_marshal_VOID__OBJECTv () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #27 0x00007ffff0962184 in _g_closure_invoke_va () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #28 0x00007ffff097b438 in g_signal_emit_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #29 0x00007ffff097bd22 in g_signal_emit () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #30 0x00007ffff67f4d04 in gtk_widget_set_parent () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #31 0x00007ffff657b0bf in gtk_bin_add () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #32 0x00007ffff67e8dce in gtk_viewport_add () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #33 0x00007ffff0964fc7 in g_cclosure_marshal_VOID__OBJECTv () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #34 0x00007ffff0962184 in _g_closure_invoke_va () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #35 0x00007ffff097b438 in g_signal_emit_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #36 0x00007ffff097bd22 in g_signal_emit () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #37 0x00007ffff65c374c in gtk_container_add () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #38 0x00007ffff66f75dd in gtk_scrolled_window_add_with_viewport ()
> from /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #39 0x000000000045fa17 in ags_machine_editor_add_children
> (machine_editor=0x7fffd410b0b0) at src/ags/X/ags_machine_editor.c:452
> #40 0x00007ffff0964fc7 in g_cclosure_marshal_VOID__OBJECTv () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #41 0x00007ffff0962184 in _g_closure_invoke_va () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #42 0x00007ffff097b438 in g_signal_emit_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #43 0x00007ffff097bd22 in g_signal_emit () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #44 0x000000000045fc46 in ags_machine_editor_set_machine
> (machine_editor=0x7fffd410b0b0, machine=0xe389d0) at
> src/ags/X/ags_machine_editor.c:524
> #45 0x00007ffff09674dd in g_object_new_internal () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #46 0x00007ffff0968ea5 in g_object_new_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #47 0x00007ffff09691b4 in g_object_new () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #48 0x000000000045fd1e in ags_machine_editor_new (machine=<optimized
> out>) at src/ags/X/ags_machine_editor.c:545
> #49 0x000000000045e87c in
> ags_machine_popup_properties_activate_callback (widget=<optimized
> out>, machine=0xe389d0) at src/ags/X/ags_machine_callbacks.c:203
> #50 0x00007ffff0961f55 in g_closure_invoke () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #51 0x00007ffff0972d2c in signal_emit_unlocked_R () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #52 0x00007ffff097bb05 in g_signal_emit_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #53 0x00007ffff097bd22 in g_signal_emit () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #54 0x00007ffff67f1f52 in gtk_widget_activate () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #55 0x00007ffff66891c5 in gtk_menu_shell_activate_item () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #56 0x00007ffff6687dda in gtk_menu_shell_button_release () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #57 0x00007ffff667aeb5 in gtk_menu_button_release () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #58 0x00007ffff666f978 in _gtk_marshal_BOOLEAN__BOXED () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #59 0x00007ffff0961f55 in g_closure_invoke () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #60 0x00007ffff0972c22 in signal_emit_unlocked_R () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #61 0x00007ffff097b62c in g_signal_emit_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #62 0x00007ffff097bd22 in g_signal_emit () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #63 0x00007ffff67f1e34 in gtk_widget_event_internal () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #64 0x00007ffff67f1958 in gtk_widget_event () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #65 0x00007ffff666dec1 in gtk_propagate_event () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #66 0x00007ffff666c98b in gtk_main_do_event () from
> /usr/lib/../lib64/libgtk-x11-2.0.so.0
> #67 0x00007ffff6291344 in gdk_event_dispatch () from
> /usr/lib/../lib64/libgdk-x11-2.0.so.0
> #68 0x00007fffefdc928d in g_main_context_dispatch () from
> /usr/lib/../lib64/libglib-2.0.so.0
> #69 0x00007fffefdc9538 in g_main_context_iterate.isra () from
> /usr/lib/../lib64/libglib-2.0.so.0
> #70 0x00007fffefdc95dc in g_main_context_iteration () from
> /usr/lib/../lib64/libglib-2.0.so.0
> #71 0x00000000004694da in ags_gui_thread_do_gtk_iteration () at
> src/ags/X/thread/ags_gui_thread.c:222
> #72 ags_gui_thread_run () at src/ags/X/thread/ags_gui_thread.c:244
> #73 0x00007ffff09620d2 in _g_closure_invoke_va () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #74 0x00007ffff097b438 in g_signal_emit_valist () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #75 0x00007ffff097bd22 in g_signal_emit () from
> /usr/lib/../lib64/libgobject-2.0.so.0
> #76 0x00000000004daf76 in ags_thread_run (thread=0xe3c5f0) at
> src/ags/thread/ags_thread-posix.c:2305
> #77 0x00000000004db272 in ags_thread_loop (ptr=<optimized out>) at
> src/ags/thread/ags_thread-posix.c:2173
> #78 0x00007fffef92a2a4 in start_thread () from /lib/libpthread.so.0
> #79 0x00007fffee5ce48d in clone () from /lib/libc.so.6