#12 Bug in the serial terminal

v0.7.1
closed
None
5
2007-03-08
2007-03-08
Martin Strasser
No

There is a bug making KLab crash sometimes. The exact way this bug happened is not totally clear, though, there is a stack trace:

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1234229568 (LWP 4827)]
[KCrash handler]
#5 0x080fa097 in KLSerialPortListener::~KLSerialPortListener ()
#6 0x080f7207 in KLSerialTerminalWidget::slotOpenClose ()
#7 0x0813d591 in KLSerialTerminalWidgetBase::qt_invoke ()
#8 0x080f6750 in KLSerialTerminalWidget::qt_invoke ()
#9 0xb6f23d4f in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#10 0xb6f247e0 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#11 0xb72b5de7 in QButton::clicked () from /usr/lib/libqt-mt.so.3
#12 0xb6fc0cf6 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#13 0xb6f5a6f0 in QWidget::event () from /usr/lib/libqt-mt.so.3
#14 0xb6ebbc26 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#15 0xb6ebddc9 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#16 0xb766ce0e in KApplication::notify () from /usr/lib/libkdecore.so.4
#17 0xb6e4f495 in QApplication::sendSpontaneousEvent ()
from /usr/lib/libqt-mt.so.3
#18 0xb6e4e12f in QETWidget::translateMouseEvent ()
from /usr/lib/libqt-mt.so.3
#19 0xb6e4c6b0 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#20 0xb6e62d02 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#21 0xb6ed6179 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#22 0xb6ed5f9a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#23 0xb6ebd7bf in QApplication::exec () from /usr/lib/libqt-mt.so.3
#24 0x0805ca24 in main ()

Discussion

  • Logged In: YES
    user_id=902327
    Originator: YES

    There was an unneeded timer, which was deleted before creating it. It's a wonder it didn't crash previously.

     
    • status: open --> closed
     
    • status: closed --> open
     
  • Logged In: YES
    user_id=902327
    Originator: YES

    Fixed with revision 107.

    The changed file is:
    src/klserialportlistener.h

     
    • status: open --> closed