Bug 322423

Summary: Storage crash - Running ODBC command while shutting down virtuoso
Product: [Unmaintained] nepomuk Reporter: Ronald Smith <ron.smith>
Component: storageAssignee: Nepomuk Bugs Coordination <nepomuk-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: me, nepomuk-bugs, stefan.kebekus
Priority: NOR    
Version: 4.10.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ronald Smith 2013-07-16 07:25:44 UTC
Application: nepomukservicestub (0.1.0)
KDE Platform Version: 4.10.5 "release 4"
Qt Version: 4.8.5
Operating System: Linux 3.7.10-1.16-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

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

Just started a session. Clicked on background to unlock widgets.

-- Backtrace:
Application: Nepomuk Service Stub (nepomukservicestub), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa6b2700780 (LWP 2520))]

Thread 8 (Thread 0x7fa69d56c700 (LWP 2918)):
#0  0x00007fa6afaf287d in poll () from /lib64/libc.so.6
#1  0x00007fa6af349aa4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa6af349bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa6b21ec5d6 in QEventDispatcherGlib::processEvents (this=0x7fa6940008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007fa6b21bcbef in QEventLoop::processEvents (this=this@entry=0x7fa69d56bdb0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa6b21bce78 in QEventLoop::exec (this=0x7fa69d56bdb0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa6b20bf110 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007fa6a28c3114 in Soprano::Server::ServerConnection::run (this=0x27ea030) at /usr/src/debug/soprano-2.9.2/server/serverconnection.cpp:153
#8  0x00007fa6b20c20ec in QThreadPrivate::start (arg=0x27ea030) at thread/qthread_unix.cpp:338
#9  0x00007fa6b1e2be0f in start_thread () from /lib64/libpthread.so.0
#10 0x00007fa6afafb7dd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7fa69cd6b700 (LWP 2919)):
#0  0x00007fa6afaf287d in poll () from /lib64/libc.so.6
#1  0x00007fa6af349aa4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa6af349bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa6b21ec5d6 in QEventDispatcherGlib::processEvents (this=0x7fa6880008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007fa6b21bcbef in QEventLoop::processEvents (this=this@entry=0x7fa69cd6adb0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa6b21bce78 in QEventLoop::exec (this=0x7fa69cd6adb0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa6b20bf110 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007fa6a28c3114 in Soprano::Server::ServerConnection::run (this=0x2799720) at /usr/src/debug/soprano-2.9.2/server/serverconnection.cpp:153
#8  0x00007fa6b20c20ec in QThreadPrivate::start (arg=0x2799720) at thread/qthread_unix.cpp:338
#9  0x00007fa6b1e2be0f in start_thread () from /lib64/libpthread.so.0
#10 0x00007fa6afafb7dd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7fa68ffff700 (LWP 2921)):
#0  0x00007fa6afaf287d in poll () from /lib64/libc.so.6
#1  0x00007fa6af349aa4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa6af349bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa6b21ec5d6 in QEventDispatcherGlib::processEvents (this=0x7fa6840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007fa6b21bcbef in QEventLoop::processEvents (this=this@entry=0x7fa68fffedb0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa6b21bce78 in QEventLoop::exec (this=0x7fa68fffedb0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa6b20bf110 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007fa6a28c3114 in Soprano::Server::ServerConnection::run (this=0x28617b0) at /usr/src/debug/soprano-2.9.2/server/serverconnection.cpp:153
#8  0x00007fa6b20c20ec in QThreadPrivate::start (arg=0x28617b0) at thread/qthread_unix.cpp:338
#9  0x00007fa6b1e2be0f in start_thread () from /lib64/libpthread.so.0
#10 0x00007fa6afafb7dd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7fa68f7fe700 (LWP 2923)):
#0  0x00007fa6b1e2ede0 in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x00007fa6af386aa1 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa6af34997c in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa6af349bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa6b21ec5d6 in QEventDispatcherGlib::processEvents (this=0x7fa67c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#5  0x00007fa6b21bcbef in QEventLoop::processEvents (this=this@entry=0x7fa68f7fddb0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fa6b21bce78 in QEventLoop::exec (this=0x7fa68f7fddb0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fa6b20bf110 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#8  0x00007fa6a28c3114 in Soprano::Server::ServerConnection::run (this=0x28d2d10) at /usr/src/debug/soprano-2.9.2/server/serverconnection.cpp:153
#9  0x00007fa6b20c20ec in QThreadPrivate::start (arg=0x28d2d10) at thread/qthread_unix.cpp:338
#10 0x00007fa6b1e2be0f in start_thread () from /lib64/libpthread.so.0
#11 0x00007fa6afafb7dd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fa68effd700 (LWP 2926)):
#0  0x00007fa6b1e2ee0f in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x00007fa6af386aa1 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa6af34932b in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa6af3499cb in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa6af349bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fa6b21ec5d6 in QEventDispatcherGlib::processEvents (this=0x7fa6800008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007fa6b21bcbef in QEventLoop::processEvents (this=this@entry=0x7fa68effcdb0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fa6b21bce78 in QEventLoop::exec (this=0x7fa68effcdb0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fa6b20bf110 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#9  0x00007fa6a28c3114 in Soprano::Server::ServerConnection::run (this=0x2861bc0) at /usr/src/debug/soprano-2.9.2/server/serverconnection.cpp:153
#10 0x00007fa6b20c20ec in QThreadPrivate::start (arg=0x2861bc0) at thread/qthread_unix.cpp:338
#11 0x00007fa6b1e2be0f in start_thread () from /lib64/libpthread.so.0
#12 0x00007fa6afafb7dd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fa68e7fc700 (LWP 2928)):
#0  0x00007fa6b1e323fd in read () from /lib64/libpthread.so.0
#1  0x00007fa6af385e0f in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa6af349634 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa6af349a42 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa6af349bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fa6b21ec5d6 in QEventDispatcherGlib::processEvents (this=0x7fa6740008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007fa6b21bcbef in QEventLoop::processEvents (this=this@entry=0x7fa68e7fbdb0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fa6b21bce78 in QEventLoop::exec (this=0x7fa68e7fbdb0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fa6b20bf110 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#9  0x00007fa6a28c3114 in Soprano::Server::ServerConnection::run (this=0x283ff70) at /usr/src/debug/soprano-2.9.2/server/serverconnection.cpp:153
#10 0x00007fa6b20c20ec in QThreadPrivate::start (arg=0x283ff70) at thread/qthread_unix.cpp:338
#11 0x00007fa6b1e2be0f in start_thread () from /lib64/libpthread.so.0
#12 0x00007fa6afafb7dd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fa68dffb700 (LWP 2930)):
[KCrash Handler]
#6  gpf_notice (file=file@entry=0x7fa69dde692d "Dkbox.c", line=line@entry=586, text=text@entry=0x7fa69dde6935 "Double free") at Dkutil.c:84
#7  0x00007fa69dda0108 in dk_free_box (box=0x7fa6780230c0) at Dkbox.c:586
#8  dk_free_box (box=0x7fa6780230c0) at Dkbox.c:477
#9  0x00007fa69dd79a4c in set_error_ext (err=0x7fa678022e00, state=<optimized out>, virt_state=<optimized out>, message=<optimized out>, col=<optimized out>, rc=<optimized out>) at ../../libsrc/Wi/CLIuti.c:539
#10 0x00007fa69dd808f6 in virtodbc__SQLFreeStmt (hstmt=0x7fa678022e00, fOption=fOption@entry=0) at ../../libsrc/Wi/CLIsql1.c:1759
#11 0x00007fa69dd77192 in get_rdf_literal_prop (con=0x7fa67800dd80, ftype=ftype@entry=1062, key=258) at ../../libsrc/Wi/CLIodbc3.c:1375
#12 0x00007fa69dd90079 in virtodbc__SQLGetDescField (descriptorHandle=descriptorHandle@entry=0x7fa6780215d0, RecNumber=RecNumber@entry=2, FieldIdentifier=1062, ValuePtr=ValuePtr@entry=0x7fa68dffa7d0, BufferLength=BufferLength@entry=100, StringLengthPtr=StringLengthPtr@entry=0x7fa68dffa3c0) at ../../libsrc/Wi/CLIodbc3.c:2490
#13 0x00007fa69dd9032e in SQLGetDescField (descriptorHandle=0x7fa6780215d0, RecNumber=2, FieldIdentifier=<optimized out>, ValuePtr=0x7fa68dffa7d0, BufferLength=100, StringLengthPtr=0x7fa68dffa3c0) at ../../libsrc/Wi/CLIodbc3.c:2573
#14 0x00007fa69e901495 in ?? () from /usr/lib64/libiodbc.so.2
#15 0x00007fa69e901875 in SQLGetDescField () from /usr/lib64/libiodbc.so.2
#16 0x00007fa69eb47435 in Soprano::ODBC::QueryResult::getData (this=0x7fa67800ec30, colNum=<optimized out>) at /usr/src/debug/soprano-2.9.2/backends/virtuoso/odbcqueryresult.cpp:188
#17 0x00007fa69eb40134 in Soprano::Virtuoso::QueryResultIteratorBackend::binding (this=0x7fa678022280, offset=1) at /usr/src/debug/soprano-2.9.2/backends/virtuoso/virtuosoqueryresultiteratorbackend.cpp:211
#18 0x00007fa69eb3eb46 in Soprano::Virtuoso::QueryResultIteratorBackend::next (this=0x7fa678022280) at /usr/src/debug/soprano-2.9.2/backends/virtuoso/virtuosoqueryresultiteratorbackend.cpp:145
#19 0x00007fa6ac43b719 in Soprano::Iterator<Soprano::BindingSet>::next (this=this@entry=0x7fa68dffac40) at /usr/src/debug/soprano-2.9.2/soprano/iterator.h:239
#20 0x00007fa6ac43bc36 in Soprano::Iterator<Soprano::BindingSet>::allElements (this=0x7fa68dffac40) at /usr/src/debug/soprano-2.9.2/soprano/iterator.h:280
#21 0x00007fa6ac43b449 in Soprano::QueryResultIterator::allBindings (this=<optimized out>) at /usr/src/debug/soprano-2.9.2/soprano/queryresultiterator.cpp:77
#22 0x00007fa6a2b41af3 in Nepomuk2::DataManagementModel::setProperty (this=0x2899f40, resources=..., property=..., values=..., app=...) at /usr/src/debug/nepomuk-core-4.10.5/services/storage/datamanagementmodel.cpp:567
#23 0x00007fa6a2b4e510 in Nepomuk2::SetPropertyCommand::runCommand (this=<optimized out>) at /usr/src/debug/nepomuk-core-4.10.5/services/storage/datamanagementcommand.h:110
#24 0x00007fa6a2b4fb5e in Nepomuk2::DataManagementCommand::run (this=0x284ae20) at /usr/src/debug/nepomuk-core-4.10.5/services/storage/datamanagementcommand.cpp:62
#25 0x00007fa6b20b5c9d in QThreadPoolThread::run (this=0x28601b0) at concurrent/qthreadpool.cpp:107
#26 0x00007fa6b20c20ec in QThreadPrivate::start (arg=0x28601b0) at thread/qthread_unix.cpp:338
#27 0x00007fa6b1e2be0f in start_thread () from /lib64/libpthread.so.0
#28 0x00007fa6afafb7dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fa6b2700780 (LWP 2520)):
#0  0x00007fa6b1e2f964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa6b20c264b in wait (time=18446744073709551615, this=0x28a8240) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x28a9f38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa6b20b546f in QThreadPoolPrivate::waitForDone (this=this@entry=0x28a9eb0, msecs=msecs@entry=-1) at concurrent/qthreadpool.cpp:298
#4  0x00007fa6b20b6ee2 in QThreadPool::waitForDone (this=<optimized out>) at concurrent/qthreadpool.cpp:628
#5  0x00007fa6a2b4c407 in Nepomuk2::DataManagementAdaptor::~DataManagementAdaptor (this=0x28a7ca0, __in_chrg=<optimized out>) at /usr/src/debug/nepomuk-core-4.10.5/services/storage/datamanagementadaptor.cpp:67
#6  0x00007fa6a2b4c459 in Nepomuk2::DataManagementAdaptor::~DataManagementAdaptor (this=0x28a7ca0, __in_chrg=<optimized out>) at /usr/src/debug/nepomuk-core-4.10.5/services/storage/datamanagementadaptor.cpp:68
#7  0x00007fa6a2b22b14 in Nepomuk2::Repository::close (this=0x27eccc0) at /usr/src/debug/nepomuk-core-4.10.5/services/storage/repository.cpp:92
#8  0x00007fa6a2b25a27 in Nepomuk2::Repository::slotVirtuosoStopped (this=0x27eccc0, normalExit=128) at /usr/src/debug/nepomuk-core-4.10.5/services/storage/repository.cpp:438
#9  0x00007fa6b21d344f in QMetaObject::activate (sender=0x2898650, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff186285a0) at kernel/qobject.cpp:3556
#10 0x00007fa69eb34d7d in virtuosoStopped (_t1=false, this=<optimized out>) at /usr/src/debug/soprano-2.9.2/build/backends/virtuoso/virtuosomodel.moc:104
#11 qt_static_metacall (_a=<optimized out>, _o=<optimized out>, _c=<optimized out>, _id=<optimized out>) at /usr/src/debug/soprano-2.9.2/build/backends/virtuoso/virtuosomodel.moc:54
#12 Soprano::VirtuosoModel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/soprano-2.9.2/build/backends/virtuoso/virtuosomodel.moc:48
#13 0x00007fa6b21d292e in QObject::event (this=0x2898650, e=<optimized out>) at kernel/qobject.cpp:1203
#14 0x00007fa6b02a592c in QApplicationPrivate::notify_helper (this=this@entry=0x25b62b0, receiver=receiver@entry=0x2898650, e=e@entry=0x2611a40) at kernel/qapplication.cpp:4562
#15 0x00007fa6b02a9dab in QApplication::notify (this=0x7fff186290c0, receiver=0x2898650, e=0x2611a40) at kernel/qapplication.cpp:4423
#16 0x00007fa6b12bc7f6 in KApplication::notify (this=0x7fff186290c0, receiver=0x2898650, event=0x2611a40) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kapplication.cpp:311
#17 0x00007fa6b21bdf3e in QCoreApplication::notifyInternal (this=0x7fff186290c0, receiver=receiver@entry=0x2898650, event=event@entry=0x2611a40) at kernel/qcoreapplication.cpp:949
#18 0x00007fa6b21c18a1 in sendEvent (event=0x2611a40, receiver=0x2898650) at kernel/qcoreapplication.h:231
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x258d2f0) at kernel/qcoreapplication.cpp:1573
#20 0x00007fa6b21ec423 in sendPostedEvents () at kernel/qcoreapplication.h:236
#21 postEventSourceDispatch (s=0x25b06f0) at kernel/qeventdispatcher_glib.cpp:280
#22 0x00007fa6af3497d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#23 0x00007fa6af349b08 in ?? () from /usr/lib64/libglib-2.0.so.0
#24 0x00007fa6af349bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#25 0x00007fa6b21ec5b6 in QEventDispatcherGlib::processEvents (this=0x2592bc0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#26 0x00007fa6b0345e0e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007fa6b21bcbef in QEventLoop::processEvents (this=this@entry=0x7fff18628ea0, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007fa6b21bce78 in QEventLoop::exec (this=0x7fff18628ea0, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007fa6b21c1bb8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#30 0x0000000000404270 in main (argc=<optimized out>, argv=0x7fff18629308) at /usr/src/debug/nepomuk-core-4.10.5/servicestub/main.cpp:180

Reported using DrKonqi
Comment 1 Simeon Bird 2013-08-30 14:49:13 UTC
*** Bug 324099 has been marked as a duplicate of this bug. ***
Comment 2 Vishesh Handa 2015-01-23 16:22:36 UTC
Thank you for taking the time to file a bug report.

The Nepomuk project is no longer included in the KDE Software Compilation. With Plasma 5, we have replaced most of the underlying technology with Baloo and other components. Hopefully this will have addressed your concern.

We encourage you to try out Plasma 5 (+Baloo) and let us know if your problem persists.