GtkText bug?
- From: James Macnicol <jamesm evans ee adfa oz au>
- To: gtk-list redhat com
- Subject: GtkText bug?
- Date: Mon, 28 Dec 98 0:03:33 EST
Hello,
I'm getting many segfaults when testing a GTK+ app I'm
writing. The gdb backtrace looks like the following :
--------------------------------------------------------------------------
#0 advance_mark_n (mark=0x80468c0, n=1) at gtktext.c:3482
3482 prop = MARK_CURRENT_PROPERTY (mark);
(gdb) bt
#0 advance_mark_n (mark=0x80468c0, n=1) at gtktext.c:3482
#1 0xdff96aed in draw_line (text=0x80788f8, pixel_start_height=0,
lp=0x80b26f0) at gtktext.c:5081
#2 0xdff971ed in expose_text (text=0x80788f8, area=0x80b70fa, cursor=1)
at gtktext.c:5299
#3 0xdff90c38 in gtk_text_expose (widget=0x80788f8, event=0x80b70f0)
at gtktext.c:1684
#4 0xdffb58ed in gtk_marshal_BOOL__POINTER (object=0x80788f8, func=0,
func_data=0x0, args=0x0) at gtkmarshal.c:30
#5 0xdff7df5a in gtk_signal_real_emit (object=0x80788f8, signal_id=25,
params=0x8046a14) at gtksignal.c:1463
#6 0xdff7c225 in gtk_signal_emit (object=0x80788f8, signal_id=25)
at gtksignal.c:517
#7 0xdffad534 in gtk_widget_event (widget=0x80788f8, event=0x80b70f0)
at gtkwidget.c:2628
#8 0xdff5422e in gtk_main_do_event (event=0x80b70f0) at gtkmain.c:663
#9 0xdfeae5f1 in gdk_event_dispatch (source_data=0x0, current_time=0x8046d58,
user_data=0x0) at gdkevents.c:1970
#10 0xdfe7c5ac in g_main_dispatch ()
#11 0xdfe7c98b in g_main_iterate ()
#12 0xdfe7ca65 in g_main_run ()
#13 0xdff53e93 in gtk_main () at gtkmain.c:458
#14 0x804dc2b in main (argc=1, argv=0x8046dcc) at main.c:397
(gdb) p *mark
$1 = {property = 0x0, offset = 0, index = 1}
--------------------------------------------------------------------------
i.e. mark->property is NULL so MARK_CURRENT_PROPERTY asking
for mark->property->data is going to generate a SIGSEGV. My app
doesn't do anything tricky with the text widget, only gtk_text_insert
(+ usual things like freeze, thaw, set_point, forward_delete).
I'm using GTK+ 1.1.9 on Solaris 7 for Intel with egcs 1.1.1 as the
compiler.
--
James Macnicol
jamesm@ee.adfa.oz.au
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]