[gtkmm] Gtkmm-forge digest, Vol 1 #341 - 1 msg



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-admin lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs.


Today's Topics:

   1. [Bug 104194] Changed - A window with an option menu seg-faults when closed. (bugzilla-daemon widget gnome org)

--__--__--

Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, jsado_sc1 earthlink net
Cc: 
Date: Sat, 25 Jan 2003 13:28:33 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 104194] Changed - A window with an option menu seg-faults when closed.

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=104194

Changed by jsado_sc1 earthlink net 

--- shadow/104194	Thu Jan 23 18:44:41 2003
+++ shadow/104194.tmp.18946	Sat Jan 25 13:28:33 2003
@@ -113,6 +113,86 @@
 
 	* gtk/gtkmm/menu_elems.cc: Element::Element(MenuItem): Use the
 	Glib::RefPtr<> constructor explicitly, for clarity, and do the
 	necessary extra ref - fixes lifetime bug 104194
 
 
+
+------- Additional Comments From jsado_sc1 earthlink net  2003-01-25 13:28 -------
+I'm still getting errors related to this bug. If I've done things
+correctly, then I'm using the latest CVS of 2.2.x. I believe I am
+using the latest CVS because I was able to get my example above to
+compile and run without any errors.
+
+The errors re-manifested themselves in my application, however. I
+investigated, and it appears that if you rearrange the order of the
+Gtk::OptionMenu, Gtk::Menu, and Gtk::MenuItem lines in the example, it
+will seg-fault (without any error messages). Specifically, I've got
+MenuItem, then Menu, then OptionMenu.
+
+I'm not sure if this is supposed to be a bug, or if the user is
+supposed to ensure that these items are constructed in the correct
+order, so that you don't have an OptionMenu being destructed before
+it's items are gone.
+
+At any rate, I ran the example through valgrind, and interestingly
+enough, when I do that the error lines from above are printed out
+(along with valgrinds info on what's going on). Here is some of what
+valgrind has to say (hopefully the important parts):
+
+==1376== Invalid read of size 4
+==1376==    at 0x408186B9: g_type_check_instance (in
+/usr/lib/libgobject-2.0.so.0.200.0)
+==1376==    Address 0x41DC5334 is 0 bytes inside a block of size 100
+free'd
+==1376==    at 0x4003DD29: free (in /usr/lib/valgrind/valgrind.so)
+==1376==    by 0x4084E295: g_free (in /usr/lib/libglib-2.0.so.0.200.0)
+==1376==    by 0x41D42F9C: ???
+==1376==    by 0xE0107000: ???
+
+(a.out:1376): GLib-GObject-WARNING **: instance with invalid (NULL)
+class pointer
+
+(a.out:1376): GLib-GObject-CRITICAL **: file gsignal.c: line 2300
+(g_signal_handlers_disconnect_matched): assertion
+`G_TYPE_CHECK_INSTANCE (instance)' failed
+==1376== 
+==1376== Invalid read of size 4
+==1376==    at 0x4058A1FE: gtk_option_menu_detacher (in
+/usr/lib/libgtk-x11-2.0.so.0.200.0)
+==1376==    by 0x40812EBB: g_cclosure_marshal_VOID__VOID (in
+/usr/lib/libgobject-2.0.so.0.200.0)
+==1376==    by 0x15B: ???
+==1376==    Address 0x41DC5334 is 0 bytes inside a block of size 100
+free'd
+==1376==    at 0x4003DD29: free (in /usr/lib/valgrind/valgrind.so)
+==1376==    by 0x4084E295: g_free (in /usr/lib/libglib-2.0.so.0.200.0)
+==1376==    by 0x41D42F9C: ???
+==1376==    by 0xE0107000: ???
+==1376== 
+==1376== Invalid read of size 4
+==1376==    at 0x40818420: g_type_check_instance_is_a (in
+/usr/lib/libgobject-2.0.so.0.200.0)
+==1376==    by 0x40812EBB: g_cclosure_marshal_VOID__VOID (in
+/usr/lib/libgobject-2.0.so.0.200.0)
+==1376==    by 0x15B: ???
+==1376==    Address 0x41DC5334 is 0 bytes inside a block of size 100
+free'd
+==1376==    at 0x4003DD29: free (in /usr/lib/valgrind/valgrind.so)
+==1376==    by 0x4084E295: g_free (in /usr/lib/libglib-2.0.so.0.200.0)
+==1376==    by 0x41D42F9C: ???
+==1376==    by 0xE0107000: ???
+
+(a.out:1376): Gtk-CRITICAL **: file gtkoptionmenu.c: line 247
+(gtk_option_menu_detacher): assertion `GTK_IS_OPTION_MENU (widget)' failed
+==1376== 
+==1376== Invalid read of size 4
+==1376==    at 0x4058B19C: gtk_option_menu_item_destroy_cb (in
+/usr/lib/libgtk-x11-2.0.so.0.200.0)
+==1376==    by 0xB33: ???
+==1376==    Address 0x41DC5378 is 68 bytes inside a block of size 100
+free'd
+==1376==    at 0x4003DD29: free (in /usr/lib/valgrind/valgrind.so)
+==1376==    by 0x4084E295: g_free (in /usr/lib/libglib-2.0.so.0.200.0)
+==1376==    by 0x41D42F9C: ???
+==1376==    by 0xE0107000: ???
+




--__--__--

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest



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