Bug 305282 - Crash in Resource destruction -> ResourceManager mutex locking
Summary: Crash in Resource destruction -> ResourceManager mutex locking
Status: RESOLVED DUPLICATE of bug 292996
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: libnepomukcore (show other bugs)
Version: 4.9
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Nepomuk Bugs Coordination
URL:
Keywords:
: 305752 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-16 19:09 UTC by Robert Evans
Modified: 2012-09-30 10:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Evans 2012-08-16 19:09:55 UTC
Application: kontact (4.9)
KDE Platform Version: 4.9.00
Qt Version: 4.8.1
Operating System: Linux 3.2.0-29-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:

Closing KDE PIM by right clicking the tray icon and selecting 'Quit'

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fae2858c7c0 (LWP 2198))]

Thread 3 (Thread 0x7fae0bb08700 (LWP 2199)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fae24d80dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fae24d80f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fae20230e9a in start_thread (arg=0x7fae0bb08700) at pthread_create.c:308
#4  0x00007fae25ab24bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fadbd87d700 (LWP 2204)):
#0  0x00007fae25aa6b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fae1fd64036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fae1fd64164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fae26227426 in QEventDispatcherGlib::processEvents (this=0x7fadb80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fae261f6c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fae261f6ed7 in QEventLoop::exec (this=0x7fadbd87cd90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fae260f5fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fae261d69ff in QInotifyFileSystemWatcherEngine::run (this=0x1f56290) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fae260f8fcb in QThreadPrivate::start (arg=0x1f56290) at thread/qthread_unix.cpp:298
#9  0x00007fae20230e9a in start_thread (arg=0x7fadbd87d700) at pthread_create.c:308
#10 0x00007fae25ab24bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fae2858c7c0 (LWP 2198)):
[KCrash Handler]
#6  0x00007fae1e310082 in lockInline (this=0x1f007d8) at /usr/include/qt4/QtCore/qmutex.h:187
#7  QMutexLocker (m=0x1f007d8, this=<synthetic pointer>) at /usr/include/qt4/QtCore/qmutex.h:109
#8  Nepomuk::Resource::~Resource (this=0x7fadb000a9a0, __in_chrg=<optimized out>) at ../../nepomuk/core/resource.cpp:142
#9  0x00007fae1e310309 in Nepomuk::Resource::~Resource (this=0x7fadb000a9a0, __in_chrg=<optimized out>) at ../../nepomuk/core/resource.cpp:147
#10 0x00007fae262088a9 in QMetaCallEvent::~QMetaCallEvent (this=0x7fadb0002800, __in_chrg=<optimized out>) at kernel/qobject.cpp:509
#11 0x00007fae26208909 in QMetaCallEvent::~QMetaCallEvent (this=0x7fadb0002800, __in_chrg=<optimized out>) at kernel/qobject.cpp:518
#12 0x00007fae261fc3ff in QCoreApplication::removePostedEvents (receiver=0x20ced40, eventType=0) at kernel/qcoreapplication.cpp:1630
#13 0x00007fae2620e4cb in QObjectPrivate::~QObjectPrivate (this=0x20d7a10, __in_chrg=<optimized out>) at kernel/qobject.cpp:171
#14 0x00007fae2620e549 in QObjectPrivate::~QObjectPrivate (this=0x20d7a10, __in_chrg=<optimized out>) at kernel/qobject.cpp:186
#15 0x00007fae26210bd0 in cleanup (pointer=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#16 ~QScopedPointer (this=0x20ced48, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#17 QObject::~QObject (this=0x20ced40, __in_chrg=<optimized out>) at kernel/qobject.cpp:817
#18 0x00007fae1e316669 in Nepomuk::ResourceWatcher::~ResourceWatcher (this=0x20ced40, __in_chrg=<optimized out>) at ../../nepomuk/core/resourcewatcher.cpp:81
#19 0x00007fae2620a935 in QObjectPrivate::deleteChildren (this=0x1f01190) at kernel/qobject.cpp:1908
#20 0x00007fae26210b9c in QObject::~QObject (this=0x1d5e3a0, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#21 0x00007fae1e304d79 in Nepomuk::ResourceManager::~ResourceManager (this=0x1d5e3a0, __in_chrg=<optimized out>) at ../../nepomuk/core/resourcemanager.cpp:289
#22 0x00007fae2620a935 in QObjectPrivate::deleteChildren (this=0x18404d0) at kernel/qobject.cpp:1908
#23 0x00007fae26210b9c in QObject::~QObject (this=0x7fff287f3b10, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#24 0x00007fae26bfb44e in QApplication::~QApplication (this=0x7fff287f3b10, __in_chrg=<optimized out>) at kernel/qapplication.cpp:1103
#25 0x000000000040363f in main (argc=1, argv=0x7fff287f4138) at ../../../kontact/src/main.cpp:222

Reported using DrKonqi
Comment 1 Vishesh Handa 2012-08-20 08:20:37 UTC
Seems like a Resource is being destroyed after the ResourceManager has been destroyed. Maybe.
Comment 2 Vishesh Handa 2012-08-27 10:12:50 UTC
*** Bug 305752 has been marked as a duplicate of this bug. ***
Comment 3 Myriam Schweingruber 2012-09-30 10:41:27 UTC

*** This bug has been marked as a duplicate of bug 292996 ***