Bug 244244

Summary: Solid crash while application is idle
Product: [Applications] kontact Reporter: Ryan Rix <ry>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash    
Priority: NOR    
Version: 4.5 pre   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ryan Rix 2010-07-11 18:43:57 UTC
Application: kontact (4.5 pre)
KDE Platform Version: 4.5.60 (KDE 4.5.60 (KDE 4.6 >= 20100627)) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.33.5-124.fc13.x86_64 x86_64
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
- What I was doing when the application crashed:
When starting kontact with a custom summaryview plugin for my Summer of Code work, Kontact crashes with the attached backtrace. It is some sort of issue inside of Solid, but only manifests itself in the Plasma shell embedded in my kontact summaryview plugin. I don't know enough (anything) about Solid to be able to debug this properly, though. :( Feel free to harass me in various places in IRC, my nick is rrix.

- kpart which kontact plugin uses: trunk/playground/base/plasma/shells/kpart/
- summary plugin: branches/soc-pim/kdepim/kontact/plugins/summary/

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f53209e4820 (LWP 31027))]

Thread 4 (Thread 0x7f531558f710 (LWP 31033)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003d6460ca9e in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib64/libQtWebKit.so.4
#2  0x0000003d6460cbb9 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#3  0x0000003a71c07761 in start_thread (arg=0x7f531558f710) at pthread_create.c:301
#4  0x0000003a710e14dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f5305c11710 (LWP 31062)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003d5a07361b in wait (this=<value optimized out>, mutex=0x47bede8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x47bede8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f53064b0603 in WiFiScan::run (this=0x47bedd0) at /home/rrix/dev/trunk/plasma/dataengines/geolocation-wifi/location_wifi.cpp:142
#4  0x0000003d5a072afe in QThreadPrivate::start (arg=0x47bedd0) at thread/qthread_unix.cpp:266
#5  0x0000003a71c07761 in start_thread (arg=0x7f5305c11710) at pthread_create.c:301
#6  0x0000003a710e14dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f5304bdd710 (LWP 31420)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x0000003d5a073582 in wait (this=<value optimized out>, mutex=0x2779b80, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2779b80, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x0000003d5a068fca in QThreadPoolThread::run (this=0x47205b0) at concurrent/qthreadpool.cpp:140
#4  0x0000003d5a072afe in QThreadPrivate::start (arg=0x47205b0) at thread/qthread_unix.cpp:266
#5  0x0000003a71c07761 in start_thread (arg=0x7f5304bdd710) at pthread_create.c:301
#6  0x0000003a710e14dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f53209e4820 (LWP 31027)):
[KCrash Handler]
#6  0x00007f530628563f in qobject_cast<Solid::Control::Ifaces::AccessPoint*> (this=<value optimized out>, object=0x47c9310)
    at /home/rrix/dev/trunk/kdebase/workspace/libs/solid/control/ifaces/wirelessaccesspoint.h:159
#7  Solid::Control::WirelessNetworkInterface::_k_destroyed (this=<value optimized out>, object=0x47c9310) at /home/rrix/dev/trunk/kdebase/workspace/libs/solid/control/wirelessnetworkinterface.cpp:173
#8  0x00007f5306285794 in Solid::Control::WirelessNetworkInterface::qt_metacall (this=0x47bc070, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x697e200)
    at /home/rrix/dev/build/trunk/kdebase/workspace/libs/solid/control/wirelessnetworkinterface.moc:117
#9  0x0000003d5a169441 in QObject::event (this=0x47bc070, e=0x47cec10) at kernel/qobject.cpp:1244
#10 0x0000003d5a7b15fc in QApplicationPrivate::notify_helper (this=0x20cbe20, receiver=0x47bc070, e=0x47cec10) at kernel/qapplication.cpp:4345
#11 0x0000003d5a7b749d in QApplication::notify (this=<value optimized out>, receiver=0x47bc070, e=0x47cec10) at kernel/qapplication.cpp:4228
#12 0x00007f5322ab36e6 in KApplication::notify (this=0x7fff849f0790, receiver=0x47bc070, event=0x47cec10) at /home/rrix/dev/trunk/kdelibs/kdeui/kernel/kapplication.cpp:309
#13 0x0000003d5a157e9c in QCoreApplication::notifyInternal (this=0x7fff849f0790, receiver=0x47bc070, event=0x47cec10) at kernel/qcoreapplication.cpp:726
#14 0x0000003d5a15abf4 in sendEvent (receiver=0x0, event_type=0, data=0x209fec0) at kernel/qcoreapplication.h:215
#15 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x209fec0) at kernel/qcoreapplication.cpp:1367
#16 0x0000003d5a17fee3 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#17 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#18 0x0000003a7343bd02 in g_main_dispatch (context=0x20d0000) at gmain.c:1960
#19 IA__g_main_context_dispatch (context=0x20d0000) at gmain.c:2513
#20 0x0000003a7343fae8 in g_main_context_iterate (context=0x20d0000, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#21 0x0000003a7343fc9c in IA__g_main_context_iteration (context=0x20d0000, may_block=1) at gmain.c:2654
#22 0x0000003d5a17fa23 in QEventDispatcherGlib::processEvents (this=0x209f670, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#23 0x0000003d5a85228e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x0000003d5a156cf2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#25 0x0000003d5a156fbc in QEventLoop::exec (this=0x7fff849f06d0, flags=...) at kernel/qeventloop.cpp:201
#26 0x0000003d5a15aedb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#27 0x0000000000403c77 in main (argc=1, argv=0x7fff849f0d78) at /home/rrix/dev/trunk/kdepim/kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Christophe Marin 2010-09-19 15:38:40 UTC
Adding ervin
Comment 2 Denis Kurz 2016-09-24 19:26:52 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 21:30:06 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.