$ gdb gedit
GNU gdb (GDB) 7.5-ubuntu
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 "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/gedit...(no debugging symbols found)...done.
(gdb) break gdk_error_trap_pop_internal
Function "gdk_error_trap_pop_internal" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_error_trap_pop_internal) pending.
(gdb) run
Starting program: /usr/bin/gedit
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb6894b40 (LWP 12098)]
[New Thread 0xb5effb40 (LWP 12099)]
[New Thread 0xb54ffb40 (LWP 12100)]
Breakpoint 1, gdk_error_trap_pop_internal (need_code=need_code@entry=0) at /build/buildd/gtk+3.0-3.6.0/./gdk/gdkdisplay.c:2131
2131 /build/buildd/gtk+3.0-3.6.0/./gdk/gdkdisplay.c: No such file or directory.
(gdb) bt
#0 gdk_error_trap_pop_internal (need_code=need_code@entry=0) at /build/buildd/gtk+3.0-3.6.0/./gdk/gdkdisplay.c:2131
#1 0xb78fe7a7 in gdk_error_trap_pop_ignored () at /build/buildd/gtk+3.0-3.6.0/./gdk/gdkdisplay.c:2179
#2 0xb7efe9a0 in window_is_xembed (w=<optimized out>, d=<optimized out>) at canberra-gtk-module.c:386
#3 dispatch_sound_event (d=0x8337f40) at canberra-gtk-module.c:472
#4 dispatch_queue () at canberra-gtk-module.c:833
#5 idle_cb (userdata=0x0) at canberra-gtk-module.c:841
#6 0xb78f5ebe in gdk_threads_dispatch (data=data@entry=0x83f3430) at /build/buildd/gtk+3.0-3.6.0/./gdk/gdk.c:788
#7 0xb7353c30 in g_idle_dispatch (source=source@entry=0x8317050, callback=0xb78f5e80 <gdk_threads_dispatch>, user_data=0x83f3430)
at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:4806
#8 0xb73569e3 in g_main_dispatch (context=0x81188e0) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:2715
#9 g_main_context_dispatch (context=context@entry=0x81188e0) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3219
#10 0xb7356d80 in g_main_context_iterate (context=0x81188e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3290
#11 0xb73571db in g_main_loop_run (loop=loop@entry=0x83f21f0) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3484
#12 0xb7b0bf75 in gtk_main () at /build/buildd/gtk+3.0-3.6.0/./gtk/gtkmain.c:1163
#13 0x08066f20 in main ()
Here is a debugging session with a backtrace:
$ gdb gedit gnu.org/ licenses/ gpl.html> www.gnu. org/software/ gdb/bugs/>... gedit.. .(no debugging symbols found)...done. trap_pop_ internal trap_pop_ internal" not defined. trap_pop_ internal) pending. linux-gnu/ libthread_ db.so.1" .
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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 "i686-linux-gnu".
For bug reporting instructions, please see:
<http://
Reading symbols from /usr/bin/
(gdb) break gdk_error_
Function "gdk_error_
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_error_
(gdb) run
Starting program: /usr/bin/gedit
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-
[New Thread 0xb6894b40 (LWP 12098)]
[New Thread 0xb5effb40 (LWP 12099)]
[New Thread 0xb54ffb40 (LWP 12100)]
Breakpoint 1, gdk_error_ trap_pop_ internal (need_code= need_code@ entry=0) at /build/ buildd/ gtk+3.0- 3.6.0/. /gdk/gdkdisplay .c:2131 buildd/ gtk+3.0- 3.6.0/. /gdk/gdkdisplay .c: No such file or directory. trap_pop_ internal (need_code= need_code@ entry=0) at /build/ buildd/ gtk+3.0- 3.6.0/. /gdk/gdkdisplay .c:2131 trap_pop_ ignored () at /build/ buildd/ gtk+3.0- 3.6.0/. /gdk/gdkdisplay .c:2179 gtk-module. c:386 sound_event (d=0x8337f40) at canberra- gtk-module. c:472 gtk-module. c:833 gtk-module. c:841 dispatch (data=data@ entry=0x83f3430 ) at /build/ buildd/ gtk+3.0- 3.6.0/. /gdk/gdk. c:788 source@ entry=0x8317050 , callback=0xb78f5e80 <gdk_threads_ dispatch> , user_data= 0x83f3430) buildd/ glib2.0- 2.34.0/ ./glib/ gmain.c: 4806 buildd/ glib2.0- 2.34.0/ ./glib/ gmain.c: 2715 context_ dispatch (context= context@ entry=0x81188e0 ) at /build/ buildd/ glib2.0- 2.34.0/ ./glib/ gmain.c: 3219 context_ iterate (context=0x81188e0, block=block@ entry=1, dispatch= dispatch@ entry=1, self=<optimized out>) buildd/ glib2.0- 2.34.0/ ./glib/ gmain.c: 3290 entry=0x83f21f0 ) at /build/ buildd/ glib2.0- 2.34.0/ ./glib/ gmain.c: 3484 buildd/ gtk+3.0- 3.6.0/. /gtk/gtkmain. c:1163
2131 /build/
(gdb) bt
#0 gdk_error_
#1 0xb78fe7a7 in gdk_error_
#2 0xb7efe9a0 in window_is_xembed (w=<optimized out>, d=<optimized out>) at canberra-
#3 dispatch_
#4 dispatch_queue () at canberra-
#5 idle_cb (userdata=0x0) at canberra-
#6 0xb78f5ebe in gdk_threads_
#7 0xb7353c30 in g_idle_dispatch (source=
at /build/
#8 0xb73569e3 in g_main_dispatch (context=0x81188e0) at /build/
#9 g_main_
#10 0xb7356d80 in g_main_
at /build/
#11 0xb73571db in g_main_loop_run (loop=loop@
#12 0xb7b0bf75 in gtk_main () at /build/
#13 0x08066f20 in main ()