I am suffering from a consistently reproducible segmentation fault in libgtk-1.2.so.0.9.1 from libgtk1.2 1.2.10-11. This occurs in gtkwidget.c:3156, which is the closing brace of a while loop. However it only occurs in this program and only on the 6th time through after the breakpoint is set (which is just before selecting a value from the drop-down list of a combo box).
The program is generated by smalleiffel and compiled by gcc 2.95 on i86 hardware (Athlon processor). The error happens both with the binary package of libgtk1.2 and also with the same package built locally. I attach gdb output. Can anyone help me work out what is wrong, please? (gdb) b gtkwidget.c:3155 Breakpoint 1 at 0x401075d4: file gtkwidget.c, line 3155. (gdb) c Continuing. Breakpoint 1, gtk_widget_real_grab_focus (focus_widget=0x870a1a8) at gtkwidget.c:3155 3155 widget = widget->parent; (gdb) c Continuing. ...[repeated 4 times]... Breakpoint 1, gtk_widget_real_grab_focus (focus_widget=0x8a3e1a8) at gtkwidget.c:3155 3155 widget = widget->parent; (gdb) disassemble ... 0x401075c8 <gtk_widget_real_grab_focus+404>: add $0xfffffff8,%esp 0x401075cb <gtk_widget_real_grab_focus+407>: push %esi 0x401075cc <gtk_widget_real_grab_focus+408>: pushl 0x2c(%esi) 0x401075cf <gtk_widget_real_grab_focus+411>: call 0x40031af4 <_init+3896> 0x401075d4 <gtk_widget_real_grab_focus+416>: mov 0x2c(%esi),%esi 0x401075d7 <gtk_widget_real_grab_focus+419>: add $0x10,%esp 0x401075da <gtk_widget_real_grab_focus+422>: cmpl $0x0,0x2c(%esi) 0x401075de <gtk_widget_real_grab_focus+426>: jne 0x401075c8 <gtk_widget_real_grab_focus+404> 0x401075e0 <gtk_widget_real_grab_focus+428>: test %esi,%esi 0x401075e2 <gtk_widget_real_grab_focus+430>: ... (gdb) nexti 3156 } (gdb) nexti 0x401075da 3156 } (gdb) nexti Program received signal SIGSEGV, Segmentation fault. 0x401075da in gtk_widget_real_grab_focus (focus_widget=0x8a3e1a8) at gtkwidget.c:3156 3156 } -- Oliver Elphick [EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C "For I am persuaded, that neither death, nor life, nor angels, nor principalities, nor powers, nor things present, nor things to come, nor height, nor depth, nor any other creature, shall be able to separate us from the love of God, which is in Christ Jesus our Lord." Romans 8:38,39
signature.asc
Description: This is a digitally signed message part