[gtkmm] Gtkmm-forge digest, Vol 1 #722 - 4 msgs



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. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 145571] New:  - sigc::connection::disconnect() causes crash (bugzilla-daemon bugzilla gnome org)
   2. [Bug 145571]  - sigc::connection::disconnect() causes crash (bugzilla-daemon bugzilla gnome org)
   3. [Bug 145594] New:  - Missing protected constructor in Gtk::ActionGroup and Gtk::EntryCompletion (bugzilla-daemon bugzilla gnome org)
   4. [Bug 145594]  - Missing protected constructor in Gtk::ActionGroup and Gtk::EntryCompletion (bugzilla-daemon bugzilla gnome org)

--__--__--

Message: 1
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  7 Jul 2004 09:55:51 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 145571] New:  - sigc::connection::disconnect() causes crash

http://bugzilla.gnome.org/show_bug.cgi?id=145571
gtkmm | general | Ver: 2.4

           Summary: sigc::connection::disconnect() causes crash
           Product: gtkmm
           Version: 2.4
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: olau hardworking dk


I've recently ported an application to gtkmm 2.4 from gtkmm 2.2 and have started
experiencing crashes in the preferences window in the code that let users choose
keyboard keys. The idea in that code is to use Gtk::Buttons to represent keys -
when a button is pressed, the focus is grabbed until a new key is pressed which
then replaces the contents of the button.

More specifically, I connect a handler to the clicked signal of a button. That
handler clears the text of the button, adds a modal grab and installs a callback
on the signal_key_press_event(), saving the sigc::connection. The callback then
removes the modal grab, calls the disconnect() method on the saved connection
and puts a textual representation of the pressed key inside the button (so it is
a one-shot callback).

The problem is that the above has stopped working in gtkmm 2.4 - instead it
seems to cause memory corruption. The attached test program shows this. I had to
 allocate the button dynamically for the error to show up. Compile it with

  g++ base.cc -o base -g -Wall `pkg-config --libs --cflags gtkmm-2.4`

run it with ./base and it crashes horribly. This is with gtkmm-2.4.4 and
sigc++-2.0.3 on Debian unstable. I have no idea where the problem is. The
backtrace is pretty boring:

(gdb) run
Starting program: /home/ole/tmp/base
Button clicked
Key event cb

Program received signal SIGSEGV, Segmentation fault.
0x40666bd3 in sigc::slot_base::~slot_base () from /usr/lib/libsigc-2.0.so.0
(gdb) bt
#0  0x40666bd3 in sigc::slot_base::~slot_base () from /usr/lib/libsigc-2.0.so.0
#1  0x4064cd87 in Glib::SignalProxyConnectionNode::destroy_notify_handler ()
   from /usr/lib/libglibmm-2.4.so.1
#2  0x4075b275 in g_signal_type_cclosure_new ()
   from /usr/lib/libgobject-2.0.so.0
#3  0x080b2100 in ?? ()
#4  0x00000000 in ?? ()
#5  0x080b2a28 in ?? ()
#6  0x080b2100 in ?? ()
#7  0x00000000 in ?? ()
#8  0xbfffee38 in ?? ()
#9  0x4075a68e in g_closure_unref () from /usr/lib/libgobject-2.0.so.0
Previous frame inner to this frame (corrupt stack?)
(gdb)

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 2
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  7 Jul 2004 09:56:55 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 145571]  - sigc::connection::disconnect() causes crash

http://bugzilla.gnome.org/show_bug.cgi?id=145571
gtkmm | general | Ver: 2.4





------- Additional Comments From olau hardworking dk  2004-07-07 09:56 -------
Created an attachment (id=29319)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=29319&action=view)
Test case that crashes


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 3
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  7 Jul 2004 19:57:43 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 145594] New:  - Missing protected constructor in Gtk::ActionGroup and Gtk::EntryCompletion

http://bugzilla.gnome.org/show_bug.cgi?id=145594
gtkmm | general | Ver: 2.4

           Summary: Missing protected constructor in Gtk::ActionGroup and
                    Gtk::EntryCompletion
           Product: gtkmm
           Version: 2.4
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: palm nogui se


After the 2.4.4 update, Gtk::ActionGroup and Gtk::EntryCompletion are still
missing a protected constructor, making it impossible to derive from these classes.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 4
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Wed,  7 Jul 2004 20:02:05 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 145594]  - Missing protected constructor in Gtk::ActionGroup and Gtk::EntryCompletion

http://bugzilla.gnome.org/show_bug.cgi?id=145594
gtkmm | general | Ver: 2.4





------- Additional Comments From palm nogui se  2004-07-07 20:02 -------
Created an attachment (id=29332)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=29332&action=view)
Patch for  Bug #145594

Here's a patch to fix that.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



--__--__--

_______________________________________________
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]