Bug 259 - WorkRave 1.2.2 segfault
Status:
RESOLVED WORKSFORME
Component:
Core
Version:
1.2.2
Hardware:
PC Linux
Importance:
P2 normal
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Jul 1 2003 00:05:39 UTC
by:
Jos Visser
Modified:
Sep 4 2003 11:50:16 UTC
WhoWhenWhatRemovedAdded
Rob CaelersJul 3 2003 12:40:07 UTCstatusNEWASSIGNED
Raymond PennersSep 4 2003 11:50:16 UTCstatusASSIGNEDRESOLVED
resolutionWORKSFORME
Description
Jos Visser  Jul 1 2003 00:05:40 UTC
WR 1.2.2 segfaults. GDB backtrace of the core dump says:

#0  0x4091ae16 in free () from /lib/libc.so.6
#1  0x4091ace3 in free () from /lib/libc.so.6
#2  0x40894c04 in __builtin_delete (ptr=0x8380900) at ./cp/new2.cc:54
#3  0x407712cc in SigC::NodeBase::~NodeBase (this=0x8380900, __in_chrg=3) at node.cc:42
#4  0x407714b0 in SigC::SlotNode::~SlotNode (this=0x8380900, __in_chrg=3) at slot.cc:31
#5  0x40772397 in SigC::ObjectSlotNode::~ObjectSlotNode (this=0x8380900, __in_chrg=3) at object_slot.cc:30
#6  0x4077135b in SigC::Node::clear (this=0xbffff0d8) at node.cc:66
#7  0x40771631 in SigC::SlotNode::notify (this=0x8380900, from_child=false) at ../sigc++/node.h:83
#8  0x4077234a in SigC::ObjectSlotNode::notify (this=0x8380900, from_child=false) at object_slot.cc:24
#9  0x40772641 in SigC::Control_::destroy (this=0x8373f58) at object.cc:70
#10 0x4077280f in SigC::ObjectBase::~ObjectBase (this=0x8373294, __in_chrg=0) at object.cc:116
#11 0x0807cfde in MicroPauseWindow::~MicroPauseWindow ()
#12 0x0807d095 in MicroPauseWindow::destroy ()
#13 0x080ac358 in BreakControl::collect_garbage ()
#14 0x080ab67b in BreakControl::heartbeat ()
#15 0x080a428a in GUIControl::heartbeat ()
#16 0x0807aade in GUI::on_timer ()
#17 0x0807b3e4 in SigC::ObjectSlot0_<bool, GUI>::proxy ()
#18 0x4074528c in {anonymous}::glibmm_source_callback (data=0x8265900) at /usr/include/sigc++-1.2/sigc++/slot.h:196
#19 0x40435f8c in g_timeout_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x40432e84 in g_main_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x4043401c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0x4043449b in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#23 0x40434de3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#24 0x4010eaec in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x4057c5b4 in Gtk::Main::run_impl (this=0xbffff54c) at main.cc:470
#26 0x4057c2ff in Gtk::Main::run () at main.cc:417
#27 0x0807a989 in GUI::main ()
#28 0x0807460c in run ()
#29 0x08074692 in main ()
#30 0x408c4536 in __libc_start_main () from /lib/libc.so.6

(seems more like a libsigc++ bug... :-)
Comment 1
Rob Caelers  Jul 3 2003 12:40:07 UTC
I've seen similar traces caused by signals that were still connected when the
object got destructed. disconnecting the signal in the destructor solved the
problem. I will have a look at this problem. btw, what version of gtkmm and
sigc++ are you using?
Comment 2
Jos Visser  Jul 5 2003 00:06:31 UTC
I comiled WorkRave from the following components:

libsigc++-1.2.5
gtkmm-2.2.3
libIDL-0.8.2
ORBit2-2.7.2
GConf-2.3.3
workrave-1.2.2
Comment 3
Raymond Penners  Aug 25 2003 02:06:13 UTC
1.2.2 is obsolete now that 1.4.0 is out.

Can we close this bug, or does 1.4.0 have similar problems?
Comment 4
Jos Visser  Aug 25 2003 02:14:04 UTC
Good question. I will investigate...
Comment 5
Raymond Penners  Sep 4 2003 11:50:16 UTC
Closing, we haven't received any complaints since 1.4.0...