Bug 286218

Summary: Neopmuk crash on shutdown
Product: [Unmaintained] nepomuk Reporter: richard virden <richard.virden>
Component: storageAssignee: Sebastian Trueg <sebastian>
Status: RESOLVED DUPLICATE    
Severity: crash CC: me, paul.erntges, trueg
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description richard virden 2011-11-09 20:56:20 UTC
Application: nepomukservicestub (0.2)
KDE Platform Version: 4.6.00 (4.6.0) "release 6"
Qt Version: 4.7.1
Operating System: Linux 2.6.37.6-0.9-default i686
Distribution: "openSUSE 11.4 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:
Shutting down after closing applications in active windows. Shutdown began, then crashed.

-- Backtrace:
Application: Nepomuk Service Stub (nepomukservicestub), signal: Segmentation fault
[Current thread is 1 (Thread 0xb55eb710 (LWP 4400))]

Thread 4 (Thread 0xadfceb70 (LWP 4735)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0xb7615fbe in QCoreApplication::notifyInternal (this=0xbfec9d78, receiver=0x80f7620, event=0xadfce084) at kernel/qcoreapplication.cpp:732
#9  0xb76440e8 in sendEvent (source=0x82fe900) at kernel/qcoreapplication.h:215
#10 socketNotifierSourceDispatch (source=0x82fe900) at kernel/qeventdispatcher_glib.cpp:110
#11 0xb5e94509 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#12 0xb5e94d10 in ?? () from /lib/libglib-2.0.so.0
#13 0xb5e94fce in g_main_context_iteration () from /lib/libglib-2.0.so.0
#14 0xb764474b in QEventDispatcherGlib::processEvents (this=0x8263698, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#15 0xb761529d in QEventLoop::processEvents (this=0xadfce290, flags=...) at kernel/qeventloop.cpp:149
#16 0xb76154c9 in QEventLoop::exec (this=0xadfce290, flags=...) at kernel/qeventloop.cpp:201
#17 0xb75167b9 in QThread::exec (this=0x80f6438) at thread/qthread.cpp:490
#18 0xb28fa718 in Soprano::Server::ServerConnection::run (this=0x80f6438) at /usr/src/debug/soprano-2.5.63/server/serverconnection.cpp:151
#19 0xb75193aa in QThreadPrivate::start (arg=0x80f6438) at thread/qthread_unix.cpp:285
#20 0xb749eb05 in start_thread () from /lib/libpthread.so.0
#21 0xb6045d1e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xad7cdb70 (LWP 8123)):
#0  0xb74a2474 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0xb5e9417b in g_main_context_check () from /lib/libglib-2.0.so.0
#2  0xb5e94ac8 in ?? () from /lib/libglib-2.0.so.0
#3  0xb5e94fce in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0xb7644797 in QEventDispatcherGlib::processEvents (this=0x818be58, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0xb761529d in QEventLoop::processEvents (this=0xad7cd290, flags=...) at kernel/qeventloop.cpp:149
#6  0xb76154c9 in QEventLoop::exec (this=0xad7cd290, flags=...) at kernel/qeventloop.cpp:201
#7  0xb75167b9 in QThread::exec (this=0x80ef8f8) at thread/qthread.cpp:490
#8  0xb28fa718 in Soprano::Server::ServerConnection::run (this=0x80ef8f8) at /usr/src/debug/soprano-2.5.63/server/serverconnection.cpp:151
#9  0xb75193aa in QThreadPrivate::start (arg=0x80ef8f8) at thread/qthread_unix.cpp:285
#10 0xb749eb05 in start_thread () from /lib/libpthread.so.0
#11 0xb6045d1e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xacfccb70 (LWP 8126)):
#0  0xb5f46a4a in __i686.get_pc_thunk.bx () from /lib/librt.so.1
#1  0xb5f49203 in clock_gettime () from /lib/librt.so.1
#2  0xb7572ae5 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0xb7645706 in updateCurrentTime (this=0x835b4bc, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#5  QTimerInfoList::timerWait (this=0x835b4bc, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0xb7643f4b in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xacfcc0fc) at kernel/qeventdispatcher_glib.cpp:136
#7  0xb7643fed in timerSourcePrepare (source=0x835b488, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0xb5e93a70 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#9  0xb5e948e2 in ?? () from /lib/libglib-2.0.so.0
#10 0xb5e94fce in g_main_context_iteration () from /lib/libglib-2.0.so.0
#11 0xb7644797 in QEventDispatcherGlib::processEvents (this=0x83d2228, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#12 0xb761529d in QEventLoop::processEvents (this=0xacfcc290, flags=...) at kernel/qeventloop.cpp:149
#13 0xb76154c9 in QEventLoop::exec (this=0xacfcc290, flags=...) at kernel/qeventloop.cpp:201
#14 0xb75167b9 in QThread::exec (this=0x80c5f88) at thread/qthread.cpp:490
#15 0xb28fa718 in Soprano::Server::ServerConnection::run (this=0x80c5f88) at /usr/src/debug/soprano-2.5.63/server/serverconnection.cpp:151
#16 0xb75193aa in QThreadPrivate::start (arg=0x80c5f88) at thread/qthread_unix.cpp:285
#17 0xb749eb05 in start_thread () from /lib/libpthread.so.0
#18 0xb6045d1e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb55eb710 (LWP 4400)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb74a3105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7519ab0 in wait (this=0x82b2768, mutex=0x82b2750, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0x82b2768, mutex=0x82b2750, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0xb7518ad5 in QThread::wait (this=0x80f6438, time=4294967295) at thread/qthread_unix.cpp:683
#5  0xb28fa3da in Soprano::Server::ServerConnection::~ServerConnection (this=0x80f6438, __in_chrg=<value optimized out>) at /usr/src/debug/soprano-2.5.63/server/serverconnection.cpp:124
#6  0xb290248a in ~LocalServerConnection (this=0x80f6438, __in_chrg=<value optimized out>) at /usr/src/debug/soprano-2.5.63/server/localserver.cpp:31
#7  (anonymous namespace)::LocalServerConnection::~LocalServerConnection (this=0x80f6438, __in_chrg=<value optimized out>) at /usr/src/debug/soprano-2.5.63/server/localserver.cpp:31
#8  0xb28f4996 in qDeleteAll<QList<Soprano::Server::ServerConnection*>::const_iterator> (this=0x810a7b8, __in_chrg=<value optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#9  qDeleteAll<QList<Soprano::Server::ServerConnection*> > (this=0x810a7b8, __in_chrg=<value optimized out>) at /usr/include/QtCore/qalgorithms.h:330
#10 Soprano::Server::ServerCore::~ServerCore (this=0x810a7b8, __in_chrg=<value optimized out>) at /usr/src/debug/soprano-2.5.63/server/servercore.cpp:76
#11 0xb2941dfc in ?? () from /usr/lib/kde4/nepomukstorage.so
#12 0xb2941ea2 in ?? () from /usr/lib/kde4/nepomukstorage.so
#13 0xb7629d04 in QObjectPrivate::deleteChildren (this=0x810a8e8) at kernel/qobject.cpp:1949
#14 0xb762eb8c in QObject::~QObject (this=0x80fec40, __in_chrg=<value optimized out>) at kernel/qobject.cpp:945
#15 0xb6cb17f8 in Nepomuk::Service::~Service (this=0x80fec40, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/nepomuk/core/nepomukservice.cpp:41
#16 0xb2940d8a in ?? () from /usr/lib/kde4/nepomukstorage.so
#17 0xb7629d04 in QObjectPrivate::deleteChildren (this=0x80ff188) at kernel/qobject.cpp:1949
#18 0xb762eb8c in QObject::~QObject (this=0x80fc1d0, __in_chrg=<value optimized out>) at kernel/qobject.cpp:945
#19 0x0804bcc0 in _start ()

This bug may be a duplicate of or related to bug 286126.

Possible duplicates by query: bug 286141, bug 286126, bug 286059, bug 285959, bug 285934.

Reported using DrKonqi
Comment 1 paul.erntges 2011-11-18 00:54:53 UTC
Created attachment 65804 [details]
New crash information added by DrKonqi

nepomukservicestub (0.2) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4

- What I was doing when the application crashed:

Trying to shut down kubuntu Nepomuk crashed. Definetly a duplicate of the bug this report is attached to.

-- Backtrace (Reduced):
#7  0x00007f6ef49f0afc in QCoreApplication::notifyInternal (this=0x7fff1b4cc260, receiver=0x1c1f090, event=0x7f6ed7ffeb50) at kernel/qcoreapplication.cpp:787
#8  0x00007f6ef4a1b5b7 in sendEvent (event=0x7f6ed7ffeb50, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#9  socketNotifierSourceDispatch (source=0x1c721d0) at kernel/qeventdispatcher_glib.cpp:110
[...]
#13 0x00007f6ef4a1bed6 in QEventDispatcherGlib::processEvents (this=0x2165c10, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#14 0x00007f6ef49efcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
Comment 2 Sebastian Trueg 2011-11-18 09:39:09 UTC
The backtrace might be slightly different, the problem is the same: The QCoreApplication destructor is in process while another thread tries to use it.

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