Comment 5 for bug 78665

Revision history for this message
Lance Poore (lp-7413) wrote :

$ cat /tmp/gdb-mousepad.txt
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/mousepad
(no debugging symbols found)
Failed to read a valid object file image from memory.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1218640192 (LWP 18050)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218640192 (LWP 18050)]
0xb7b40d5f in IA__gdk_drawable_get_screen (drawable=0x4c4c) at gdkdraw.c:202
202 gdkdraw.c: No such file or directory.
        in gdkdraw.c
(gdb) backtrace
#0 0xb7b40d5f in IA__gdk_drawable_get_screen (drawable=0x4c4c) at gdkdraw.c:202
#1 0xb7b84178 in IA__gdk_window_new (parent=0x4c4c, attributes=0xbfc45614, attributes_mask=108) at gdkwindow-x11.c:673
#2 0xb7db3eef in text_window_realize (win=0x80f2c40, widget=0x8078f88) at gtktextview.c:7478
#3 0xb7db41a3 in set_window_width (text_view=0x80ba018, width=<value optimized out>, type=GTK_TEXT_WINDOW_LEFT, winp=0x80ba098) at gtktextview.c:8129
#4 0x08053914 in ?? ()
#5 0x080ba098 in ?? ()
#6 0x00000003 in ?? ()
#7 0x0000002d in ?? ()
#8 0x0804e11d in ?? ()
#9 0x080ae830 in ?? ()
#10 0x08055821 in ?? ()
#11 0xbfc456c8 in ?? ()
#12 0xb782332c in g_value_peek_pointer () from /usr/lib/libgobject-2.0.so.0
#13 0xb7ce1f58 in gtk_item_factory_callback_marshal (widget=0x60001, func_data=0x8078f88) at gtkitemfactory.c:188
#14 0xb780e9b9 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#15 0xb780162b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#16 0xb78120e3 in ?? () from /usr/lib/libgobject-2.0.so.0
#17 0x080b02f8 in ?? ()
#18 0x00000000 in ?? ()
(gdb) info registers
eax 0x80772f0 134705904
ecx 0x60001 393217
edx 0x8078f88 134713224
ebx 0xb7bac23c -1212497348
esp 0xbfc45530 0xbfc45530
ebp 0xbfc45548 0xbfc45548
esi 0x4c4c 19532
edi 0x80f2c40 135212096
eip 0xb7b40d5f 0xb7b40d5f <IA__gdk_drawable_get_screen+31>
eflags 0x210202 [ IF RF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
(gdb) thread apply all backtrace

Thread 1 (Thread -1218640192 (LWP 18050)):
#0 0xb7b40d5f in IA__gdk_drawable_get_screen (drawable=0x4c4c) at gdkdraw.c:202
#1 0xb7b84178 in IA__gdk_window_new (parent=0x4c4c, attributes=0xbfc45614, attributes_mask=108) at gdkwindow-x11.c:673
#2 0xb7db3eef in text_window_realize (win=0x80f2c40, widget=0x8078f88) at gtktextview.c:7478
#3 0xb7db41a3 in set_window_width (text_view=0x80ba018, width=<value optimized out>, type=GTK_TEXT_WINDOW_LEFT, winp=0x80ba098) at gtktextview.c:8129
#4 0x08053914 in ?? ()
#5 0x080ba098 in ?? ()
#6 0x00000003 in ?? ()
#7 0x0000002d in ?? ()
#8 0x0804e11d in ?? ()
#9 0x080ae830 in ?? ()
#10 0x08055821 in ?? ()
#11 0xbfc456c8 in ?? ()
#12 0xb782332c in g_value_peek_pointer () from /usr/lib/libgobject-2.0.so.0
#13 0xb7ce1f58 in gtk_item_factory_callback_marshal (widget=0x60001, func_data=0x8078f88) at gtkitemfactory.c:188
#14 0xb780e9b9 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#15 0xb780162b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#16 0xb78120e3 in ?? () from /usr/lib/libgobject-2.0.so.0
#17 0x080b02f8 in ?? ()
#18 0x00000000 in ?? ()
(gdb) quit

I am also attaching the output of mousepad by using valgrind. Hopefully with these you will be able to tell exactly what went wrong. Thanks