<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>279492</bug_id>
          
          <creation_ts>2011-08-05 23:52:05 +0000</creation_ts>
          <short_desc>Nepomuk stub crashed on log out</short_desc>
          <delta_ts>2011-09-29 14:06:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>nepomuk</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Chernov">4ernov</reporter>
          <assigned_to name="Sebastian Trueg">trueg</assigned_to>
          <cc>me</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>4.7.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1150504</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Chernov">4ernov</who>
    <bug_when>2011-08-05 23:52:05 +0000</bug_when>
    <thetext>Application: nepomukservicestub (0.2)
KDE Platform Version: 4.7.00 (4.7.0) (Compiled from sources)
Qt Version: 4.7.3
Operating System: Linux 2.6.39.1 x86_64

-- Information about the crash:
- What I was doing when the application crashed:
Nepomuk stub suddenly crashed when I was logging out of KDE. It seems that all the programs were already closed and last KDE services were stopping (i.e. late stages of log out).

-- Backtrace:
Application: Заглушка службы Nepomuk (nepomukservicestub), signal: Segmentation fault
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
[Current thread is 1 (Thread 0x7f36e7d90760 (LWP 18985))]

Thread 4 (Thread 0x7f36c5543710 (LWP 19139)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f36c5542ad0 in ?? ()
#2  0x00007fff888d6782 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7f36b79c9710 (LWP 19172)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f36e789661b in QWaitConditionPrivate::wait (this=&lt;value optimized out&gt;, mutex=0xa03690, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, mutex=0xa03690, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f36e7888b19 in QThreadPoolThread::run (this=0xf62710) at concurrent/qthreadpool.cpp:140
#4  0x00007f36e789591a in QThreadPrivate::start (arg=0xf62710) at thread/qthread_unix.cpp:320
#5  0x00007f36e75f3aca in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:297
#6  0x00007f36e45cb58d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f36b71c8710 (LWP 19182)):
[KCrash Handler]
#6  0x0000000000fa92c0 in ?? ()
#7  0x00007f36e6093aeb in Soprano::FilterModel::executeQuery(QString const&amp;, Soprano::Query::QueryLanguage, QString const&amp;) const () from /usr/lib/libsoprano.so.4
#8  0x00007f36c8d1690a in CrappyInferencer2::removeAllStatements (this=0x9b4bb0, statement=...) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/crappyinferencer2.cpp:398
#9  0x00007f36e6093e68 in Soprano::FilterModel::removeAllStatements(Soprano::Statement const&amp;) () from /usr/lib/libsoprano.so.4
#10 0x00007f36c8d1c51b in Nepomuk::RemovableMediaModel::removeAllStatements (this=0x9b76c0, statement=...)
    at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/removablemediamodel.cpp:173
#11 0x00007f36e6093e68 in Soprano::FilterModel::removeAllStatements(Soprano::Statement const&amp;) () from /usr/lib/libsoprano.so.4
#12 0x00007f36e6093e68 in Soprano::FilterModel::removeAllStatements(Soprano::Statement const&amp;) () from /usr/lib/libsoprano.so.4
#13 0x00007f36e60e0707 in Soprano::NRLModel::removeAllStatements(Soprano::Statement const&amp;) () from /usr/lib/libsoprano.so.4
#14 0x00007f36e6093e68 in Soprano::FilterModel::removeAllStatements(Soprano::Statement const&amp;) () from /usr/lib/libsoprano.so.4
#15 0x00007f36e6077f92 in Soprano::Model::removeAllStatements(Soprano::Node const&amp;, Soprano::Node const&amp;, Soprano::Node const&amp;, Soprano::Node const&amp;) () from /usr/lib/libsoprano.so.4
#16 0x00007f36e6093f29 in Soprano::FilterModel::removeAllStatements(Soprano::Node const&amp;, Soprano::Node const&amp;, Soprano::Node const&amp;, Soprano::Node const&amp;) () from /usr/lib/libsoprano.so.4
#17 0x00007f36c8d2650c in Nepomuk::DataManagementModel::removeDataByApplication (this=0x9f8bc0, resources=..., flags=..., app=...)
    at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/datamanagementmodel.cpp:1081
#18 0x00007f36c8d41c73 in Nepomuk::RemoveResourcesByApplicationCommand::runCommand (this=0x10dd420)
    at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/datamanagementcommand.h:215
#19 0x00007f36c8d43942 in Nepomuk::DataManagementCommand::run (this=0x10dd420) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/datamanagementcommand.cpp:62
#20 0x00007f36e7888a63 in QThreadPoolThread::run (this=0x1038d40) at concurrent/qthreadpool.cpp:106
#21 0x00007f36e789591a in QThreadPrivate::start (arg=0x1038d40) at thread/qthread_unix.cpp:320
#22 0x00007f36e75f3aca in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:297
#23 0x00007f36e45cb58d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f36e7d90760 (LWP 18985)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f36e789661b in QWaitConditionPrivate::wait (this=&lt;value optimized out&gt;, mutex=0xa03690, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, mutex=0xa03690, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f36e7888efb in QThreadPoolPrivate::waitForDone (this=0xa03600) at concurrent/qthreadpool.cpp:295
#4  0x00007f36e7888fcf in ~QThreadPool (this=0xa035e0, __in_chrg=&lt;value optimized out&gt;) at concurrent/qthreadpool.cpp:428
#5  0x00007f36e79a8ba0 in QObjectPrivate::deleteChildren (this=0xa03460) at kernel/qobject.cpp:1955
#6  0x00007f36e79b240b in ~QObject (this=&lt;value optimized out&gt;, __in_chrg=&lt;value optimized out&gt;) at kernel/qobject.cpp:946
#7  0x00007f36c8d3f7da in ~DataManagementAdaptor (this=0x9f8110, __in_chrg=&lt;value optimized out&gt;)
    at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/datamanagementadaptor.cpp:64
#8  0x00007f36e79a8ba0 in QObjectPrivate::deleteChildren (this=0x9fc740) at kernel/qobject.cpp:1955
#9  0x00007f36e79b240b in ~QObject (this=&lt;value optimized out&gt;, __in_chrg=&lt;value optimized out&gt;) at kernel/qobject.cpp:946
#10 0x00007f36e60776d7 in Soprano::Model::~Model() () from /usr/lib/libsoprano.so.4
#11 0x00007f36e60931c8 in Soprano::FilterModel::~FilterModel() () from /usr/lib/libsoprano.so.4
#12 0x00007f36c8d1eede in ~DataManagementModel (this=0x9f8bc0, __in_chrg=&lt;value optimized out&gt;) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/datamanagementmodel.cpp:201
#13 0x00007f36e79a8ba0 in QObjectPrivate::deleteChildren (this=0x93d710) at kernel/qobject.cpp:1955
#14 0x00007f36e79b240b in ~QObject (this=&lt;value optimized out&gt;, __in_chrg=&lt;value optimized out&gt;) at kernel/qobject.cpp:946
#15 0x00007f36e60776d7 in Soprano::Model::~Model() () from /usr/lib/libsoprano.so.4
#16 0x00007f36e60931c8 in Soprano::FilterModel::~FilterModel() () from /usr/lib/libsoprano.so.4
#17 0x00007f36c8d033ab in ~Repository (this=0x93a610, __in_chrg=&lt;value optimized out&gt;) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/repository.cpp:75
#18 0x00007f36c8a9071f in void qDeleteAll&lt;QHash&lt;QString, Soprano::Model*&gt;::const_iterator&gt;(QHash&lt;QString, Soprano::Model*&gt;::const_iterator, QHash&lt;QString, Soprano::Model*&gt;::const_iterator) ()
   from /usr/lib/libsopranoserver.so.1
#19 0x00007f36c8a8f86e in void qDeleteAll&lt;QHash&lt;QString, Soprano::Model*&gt; &gt;(QHash&lt;QString, Soprano::Model*&gt; const&amp;) () from /usr/lib/libsopranoserver.so.1
#20 0x00007f36c8a8ce51 in Soprano::Server::ServerCore::~ServerCore() () from /usr/lib/libsopranoserver.so.1
#21 0x00007f36c8d01748 in ~Core (this=0x9186d0, __in_chrg=&lt;value optimized out&gt;) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/nepomukcore.cpp:48
#22 0x00007f36e79a8ba0 in QObjectPrivate::deleteChildren (this=0x919730) at kernel/qobject.cpp:1955
#23 0x00007f36e79b240b in ~QObject (this=&lt;value optimized out&gt;, __in_chrg=&lt;value optimized out&gt;) at kernel/qobject.cpp:946
#24 0x00007f36e63adbfa in ~Service (this=0x90b980, __in_chrg=&lt;value optimized out&gt;) at /usr/src/packages/kde4/4.7.0/kdelibs-4.7.0/nepomuk/core/nepomukservice.cpp:44
#25 0x00007f36c8d00810 in ~Storage (this=0x90b980, __in_chrg=&lt;value optimized out&gt;) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/services/storage/storage.cpp:56
#26 0x00007f36e79a8ba0 in QObjectPrivate::deleteChildren (this=0x91aa90) at kernel/qobject.cpp:1955
#27 0x00007f36e79b240b in ~QObject (this=&lt;value optimized out&gt;, __in_chrg=&lt;value optimized out&gt;) at kernel/qobject.cpp:946
#28 0x0000000000405deb in ~ServiceControl (this=0x90c7d0, __in_chrg=&lt;value optimized out&gt;) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/servicestub/servicecontrol.cpp:39
#29 0x00007f36e79a8ba0 in QObjectPrivate::deleteChildren (this=0x7c9b70) at kernel/qobject.cpp:1955
#30 0x00007f36e79b240b in ~QObject (this=&lt;value optimized out&gt;, __in_chrg=&lt;value optimized out&gt;) at kernel/qobject.cpp:946
#31 0x00007f36e5464fae in ~QApplication (this=0x7fff888b61f0, __in_chrg=&lt;value optimized out&gt;) at kernel/qapplication.cpp:1204
#32 0x00007f36e68e222b in ~KApplication (this=0x7fff888b61f0, __in_chrg=&lt;value optimized out&gt;) at /usr/src/packages/kde4/4.7.0/kdelibs-4.7.0/kdeui/kernel/kapplication.cpp:911
#33 0x0000000000404806 in main (argc=2, argv=0x7fff888b66e8) at /usr/src/packages/kde4/4.7.0/kde-runtime-4.7.0/nepomuk/servicestub/main.cpp:167

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1164839</commentid>
    <comment_count>1</comment_count>
      <attachid>63795</attachid>
    <who name="Sebastian Trueg">trueg</who>
    <bug_when>2011-09-20 12:08:07 +0000</bug_when>
    <thetext>Created attachment 63795
Patch against kde-runtime

If you can reproduce this crash then please apply this patch to kde-runtime and see if it fixes the crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168239</commentid>
    <comment_count>2</comment_count>
    <who name="Sebastian Trueg">trueg</who>
    <bug_when>2011-09-29 13:41:34 +0000</bug_when>
    <thetext>Git commit 4c2238bd96bb3582929b8d0c77927ecd3d51e712 by Sebastian Trueg.
Committed on 29/09/2011 at 15:39.
Pushed by trueg into branch &apos;KDE/4.7&apos;.

Make sure all commands are finished before shutting down.

This fixes a potential crash when the DMS model is deleted while
another thread is still working on some command.
BUG: 279492

M  +2    -0    nepomuk/services/storage/datamanagementadaptor.cpp
M  +7    -0    nepomuk/services/storage/repository.cpp

http://commits.kde.org/kde-runtime/4c2238bd96bb3582929b8d0c77927ecd3d51e712</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168240</commentid>
    <comment_count>3</comment_count>
    <who name="Sebastian Trueg">trueg</who>
    <bug_when>2011-09-29 13:41:48 +0000</bug_when>
    <thetext>Git commit bb01696d5ade8f92f85a87db867e36a502f2676f by Sebastian Trueg.
Committed on 29/09/2011 at 15:39.
Pushed by trueg into branch &apos;master&apos;.

Make sure all commands are finished before shutting down.

This fixes a potential crash when the DMS model is deleted while
another thread is still working on some command.
BUG: 279492

M  +2    -0    nepomuk/services/storage/datamanagementadaptor.cpp
M  +7    -0    nepomuk/services/storage/repository.cpp

http://commits.kde.org/kde-runtime/bb01696d5ade8f92f85a87db867e36a502f2676f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168247</commentid>
    <comment_count>4</comment_count>
    <who name="Sebastian Trueg">trueg</who>
    <bug_when>2011-09-29 13:52:48 +0000</bug_when>
    <thetext>Git commit 6611c4b3b556a30f88572f02d205570c99eacfd1 by Sebastian Trueg.
Committed on 20/09/2011 at 14:11.
Pushed by trueg into branch &apos;master&apos;.

Make sure all commands are finished before shutting down.

This fixes a potential crash when the DMS model is deleted while
another thread is still working on some command.
BUG: 279492

M  +2    -0    services/storage/datamanagementadaptor.cpp
M  +7    -0    services/storage/repository.cpp

http://commits.kde.org/nepomuk-core/6611c4b3b556a30f88572f02d205570c99eacfd1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168250</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Chernov">4ernov</who>
    <bug_when>2011-09-29 13:58:38 +0000</bug_when>
    <thetext>Thanks, Sebastian.

Unfortunately (or fortunately) the crash is hard to reproduce as it happens very seldom. I updated to 4.7.1 recently and didn&apos;t experienced this. I think, you commit will be included in 4.7.2 so if the bug appears again I&apos;ll write here.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>63795</attachid>
            <date>2011-09-20 12:08:07 +0000</date>
            <delta_ts>2011-09-20 12:08:07 +0000</delta_ts>
            <desc>Patch against kde-runtime</desc>
            <filename>1.diff</filename>
            <type>text/plain</type>
            <size>1278</size>
            <attacher name="Sebastian Trueg">trueg</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL25lcG9tdWsvc2VydmljZXMvc3RvcmFnZS9kYXRhbWFuYWdlbWVudGFkYXB0
b3IuY3BwIGIvbmVwb211ay9zZXJ2aWNlcy9zdG9yYWdlL2RhdGFtYW5hZ2VtZW50YWRhcHRvci5j
cHAKaW5kZXggNGNhODExNC4uMjYzNGU0NSAxMDA2NDQKLS0tIGEvbmVwb211ay9zZXJ2aWNlcy9z
dG9yYWdlL2RhdGFtYW5hZ2VtZW50YWRhcHRvci5jcHAKKysrIGIvbmVwb211ay9zZXJ2aWNlcy9z
dG9yYWdlL2RhdGFtYW5hZ2VtZW50YWRhcHRvci5jcHAKQEAgLTYxLDYgKzYxLDggQEAgTmVwb211
azo6RGF0YU1hbmFnZW1lbnRBZGFwdG9yOjpEYXRhTWFuYWdlbWVudEFkYXB0b3IoTmVwb211azo6
RGF0YU1hbmFnZW1lbnRNb2QKIAogTmVwb211azo6RGF0YU1hbmFnZW1lbnRBZGFwdG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