Bug 132697

Summary: crash of licq, suspectinq qt-libs
Product: [openSUSE] SUSE Linux 10.1 Reporter: Ladislav Michnovic <lmichnovic>
Component: X11 ApplicationsAssignee: Ladislav Michnovic <lmichnovic>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None    
Version: Alpha 2plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: core

Description Ladislav Michnovic 2005-11-08 12:14:40 UTC
Using licq, after several hours sigsev of program occured:
 licq -p qt-gui
It looks like problem of qt-libs. After reinstaling licq with debuginfo, I cannot reproduce sigsev. Maybe after several hours i will. 
-------------------------------------------------------------------------------
Licq Segmentation Violation Detected.
Backtrace:
licq(licq_handle_sigsegv+0xfb) [0x80f382b]
[0xffffe420]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN13QListViewItemD2Ev+0xc1) [0x40943731]
/usr/lib/licq/licq_qt-gui.so(_ZN13CUserViewItemD0Ev+0x1a3) [0x405423f3]
/usr/lib/licq/licq_qt-gui.so(_ZN11CMainWindow16slot_updatedUserEP10CICQSignal+0x                                                                     72c) [0x404f1f4c]
/usr/lib/licq/licq_qt-gui.so(_ZN11CMainWindow9qt_invokeEiP8QUObject+0x275) [0x40                                                                     4f8085]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEP15QConnectionListP8                                                                     QUObject+0x169) [0x40854b99]
/usr/lib/licq/licq_qt-gui.so(_ZN14CSignalManager18signal_updatedUserEP10CICQSign                                                                     al+0x8f) [0x4052647f]
/usr/lib/licq/licq_qt-gui.so(_ZN14CSignalManager13ProcessSignalEP10CICQSignal+0x                                                                     23c) [0x4052747c]
/usr/lib/licq/licq_qt-gui.so(_ZN14CSignalManager13slot_incomingEv+0xee) [0x40527                                                                     64e]
/usr/lib/licq/licq_qt-gui.so(_ZN14CSignalManager9qt_invokeEiP8QUObject+0x32) [0x                                                                     40527692]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEP15QConnectionListP8                                                                     QUObject+0x169) [0x40854b99]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEii+0x142) [0x4085526                                                                     2]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN15QSocketNotifier9activatedEi+0x30) [0x40b89e3                                                                     0]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN15QSocketNotifier5eventEP6QEvent+0x50) [0x4087                                                                     2960]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN12QApplication14internalNotifyEP7QObjectP6QEve                                                                     nt+0x97) [0x407f6117]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x71)                                                                      [0x407f6db1]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN10QEventLoop23activateSocketNotifiersEv+0xf1)                                                                      [0x407eaee1]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN10QEventLoop13processEventsEj+0x6ae) [0x407a56                                                                     3e]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN10QEventLoop9enterLoopEv+0x51) [0x4080cc61]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN10QEventLoop4execEv+0x2e) [0x4080cade]
/usr/lib/qt3/lib/libqt-mt.so.3(_ZN12QApplication4execEv+0x1f) [0x407f5bbf]
/usr/lib/licq/licq_qt-gui.so(_ZN8CLicqGui3RunEP10CICQDaemon+0x130) [0x404d85c0]
/usr/lib/licq/licq_qt-gui.so(LP_Main+0x5b) [0x404d9a3b]
/usr/lib/licq/licq_qt-gui.so(LP_Main_tep+0x1d) [0x404d9a8d]
/lib/libpthread.so.0 [0x40198297]
/lib/libc.so.6(__clone+0x5e) [0x403aaa8e]
Attempting to generate core file.
Comment 1 Ladislav Michnovic 2005-11-08 12:21:10 UTC
Created attachment 56672 [details]
core
Comment 2 Michael Gross 2005-11-08 12:56:21 UTC
I'm also using licq and unfortunately it isn't the most stable piece of software, I also have crashes from time to time. I imagine this would be hard to locate and have several reasons.

KDE-Maintainers: Can you help here? If not, please assign it back to the screening-team.
Comment 3 Ladislav Michnovic 2005-11-10 16:08:29 UTC
I have backtrace. I'm not sure if the problem is in QTlibs. If not, reassign this bug to me. 

(gdb) bt
#0  0x409347f6 in QListViewItem::takeItem ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#1  0x40945731 in QListViewItem::~QListViewItem ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#2  0x405433f3 in ~CUserViewItem (this=0x8243f28) at userbox.cpp:252
#3  0x404f2f4c in CMainWindow::slot_updatedUser (this=0x8229f58, sig=0x826f6e8)
    at mainwin.cpp:1595
#4  0x404f9085 in CMainWindow::qt_invoke (this=0x8229f58, _id=53, 
    _o=0x4185ee94) at mainwin.moc:504
#5  0x40856b99 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#6  0x4052747f in CSignalManager::signal_updatedUser (this=0x820ef60, 
    t0=0x826f6e8) at sigman.moc:201
#7  0x4052847c in CSignalManager::ProcessSignal (this=0x820ef60, s=0x826f6e8)
    at sigman.cpp:88
#8  0x4052864e in CSignalManager::slot_incoming (this=0x820ef60)
    at sigman.cpp:52
#9  0x40528692 in CSignalManager::qt_invoke (this=0x820ef60, _id=2, 
    _o=0x4185efe4) at sigman.moc:411
#10 0x40856b99 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0x40857262 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
#12 0x40b8be30 in QSocketNotifier::activated ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x40874960 in QSocketNotifier::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x407f8117 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x407f8db1 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x407ecee1 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x407a763e in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x4080ec61 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x4080eade in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x407f7bbf in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x404d95c0 in CLicqGui::Run (this=0x8187a60, _licqDaemon=0x8186d90)
    at licqgui.cpp:411
#22 0x404daa3b in LP_Main (_licqDaemon=0x8186d90) at licqgui.cpp:174
#23 0x404daa8d in LP_Main_tep (p=0x8186d90) at licq_plugin.h:119
#24 0x40199297 in start_thread () from /lib/libpthread.so.0
#25 0x403aba8e in clone () from /lib/libc.so.6
#26 0x4185fbb0 in ?? ()
Comment 4 Dirk Mueller 2005-11-10 16:29:00 UTC
its not necessarily Qt libs, actually quite unlikely. more looks like the plugin got a message for a nick list entry update and it crashes while performing the update. it could be anything, from a memory corruption to an error in the licq state handling. 

is it reproducible? do you know when it happens? I was a licq hacker back in the dark times.. ;)

Comment 5 Ladislav Michnovic 2005-11-10 18:24:27 UTC
It's random, but in this time more likely. It crashes always right after login to the ICQ server. More likely it is my problem, not QT's problem. So you can reassign this bug to me. I'm just trying ElectricFence, but without any clue to the problem.
Comment 6 Dirk Mueller 2005-11-10 18:37:49 UTC
you can reassign on your own ;)

better use valgrind btw 
Comment 7 Ladislav Michnovic 2005-11-10 18:54:00 UTC
I've got it. If a pending message arrives, licq crashes. 
 Sorry for disturbing.
Comment 8 Ladislav Michnovic 2005-11-24 18:45:17 UTC
It lookes like it is a problem of qt 3.3.5.
Please see this url
http://lists.trolltech.com/qt-interest/2005-11/thread00128-0.html
 What is your opinion?
Comment 9 Dirk Mueller 2005-11-24 19:38:24 UTC
we've aleady added the fix for this to our qt3 package. 

-------------------------------------------------------------------
Fri Nov 11 15:48:07 CET 2005 - dmueller@suse.de

- avoid crashes after QListView::clear()
Comment 10 Ladislav Michnovic 2005-11-24 19:54:38 UTC
You could told me. Therefore I was asking if it is a QT bug or not. I spend hours debuging licq in vain. 
Comment 11 Ladislav Michnovic 2005-11-24 19:55:54 UTC
I'm going to test if it still crashes.
Comment 12 Dirk Mueller 2005-11-24 20:28:02 UTC
sorry :)

for my defense, you asked me before I was aware of the bug :)
Comment 13 Ladislav Michnovic 2005-11-29 09:58:13 UTC
With patched qt3, licq doesn't crash anymore.