Problems with gdk_colormap_unref/gdk_visual_init/purify




I have been playing with a little program which adds and deletes large numbers
 of widgets to/from a gtknotebook (I've tried a vbox as well).

After about 20/30 add/deletes I get a segv - it looks like gdk_colormap_unref
 has been called (for the first time) with a trashed pointer.

Aha - I think, time to get out purify and find out where the memory is being
 overwritten. But every purify-ed binary I produce hangs in gdk_visual_init
 (apparently on the first switch statement - no matter what I do I cannot get
 past this).

I am running gtk+-1.0.1, gcc-2.7.3.2/2.8.1, purify 4.0.1/4.1 on Solari 2.5

Has anyone else experienced problems with purify ?

Has anyone else come across this gdk_colormap_unref problem ?

Any help would be appreciated - I'm at my wits end.



Jules


Program received signal SIGBUS, Bus error.
gdk_colormap_unref (cmap=0x3ff) at gdkcolor.c:162
(gdb) set height 0
(gdb) where
#0  gdk_colormap_unref (cmap=0x3ff) at gdkcolor.c:162
#1  0xef78a984 in gdk_window_internal_destroy (window=0x47eb0, xdestroy=0
 '\000', our_destroy=0 '\000') at gdkwindow.c:612
#2  0xef78aa74 in gdk_window_destroy_notify (window=0x47eb0) at gdkwindow.c:652
#3  0xef77af98 in gdk_event_translate (event=0x4ad10, xevent=0xefffada0) at
 gdk.c:2498
#4  0xef778df4 in gdk_event_get () at gdk.c:837
#5  0xef6ce098 in gtk_main_iteration_do (blocking=1 '\001') at gtkmain.c:571
#6  0xef6cdf94 in gtk_main_iteration () at gtkmain.c:503
#7  0xef6cdd10 in gtk_main () at gtkmain.c:409
#8  0x12bc0 in main (argc=1, argv=0xefffb054) at wmroot_test.c:87
(gdb) 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]