Bug 286627

Summary: Using dolphin crashes nepomuk
Product: [Unmaintained] nepomuk Reporter: uwe.haider
Component: fileindexerAssignee: Sebastian Trueg <trueg>
Status: RESOLVED FIXED    
Severity: crash CC: arne_bab, bruno, cyrille.dunant, endymion+kde, fonsocm, h.becker, jemand, jjm, kredba, luca.andreatta71, martin, me, mgolden, mike2.schneider, neo6238-kde, null, olivier.lahaye1, peter.buckenleib, pranaxama, remygauthier, rossi.f, steve.doc.brown, sven.burmeister, sven, trueg, upscope, whasup, wstephenson, wzab01
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Patch against soprano 2.7
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description uwe.haider 2011-11-14 21:09:12 UTC
Application: nepomukservicestub (0.2)
KDE Platform Version: 4.7.3 (4.7.3) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.39-gentoo-r3 x86_64
Distribution: "Gentoo Base System release 2.0.3"

-- Information about the crash:
- What I was doing when the application crashed:
I've started dolphin to seek several pdfs. Sorting the pdfs by date  causes nepomuk to crash.

- Unusual behavior I noticed:
nepomuk and strigi are crashing several times a day...

The crash can be reproduced every time.

-- Backtrace:
Application: Nepomuk-Dienst (nepomukservicestub), signal: Segmentation fault
pthread_cond_wait () 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 0x7ff4a1e97760 (LWP 13556))]

Thread 2 (Thread 0x7ff4935df700 (LWP 13576)):
[KCrash Handler]
#6  0x00007ff4a189b64c in QMutex::lock (this=0x21e6cf8) at thread/qmutex.cpp:151
#7  0x00007ff49ba4f691 in QMutexLocker (this=0x7ff48c003380, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qmutex.h:102
#8  Soprano::Client::SocketHandler::~SocketHandler (this=0x7ff48c003380, __in_chrg=<value optimized out>) at /var/tmp/portage/dev-libs/soprano-2.7.3/work/soprano-2.7.3/client/clientconnection.cpp:58
#9  0x00007ff49ba4f769 in Soprano::Client::SocketHandler::~SocketHandler (this=0x7ff48c003380, __in_chrg=<value optimized out>) at /var/tmp/portage/dev-libs/soprano-2.7.3/work/soprano-2.7.3/client/clientconnection.cpp:61
#10 0x00007ff4a189ee96 in QThreadStorageData::finish (p=<value optimized out>) at thread/qthreadstorage.cpp:202
#11 0x00007ff4a18a0331 in QThreadPrivate::finish (arg=<value optimized out>) at thread/qthread_unix.cpp:360
#12 0x00007ff4a18a0b0d in ~__pthread_cleanup_class (arg=0x21dda70) at /usr/include/pthread.h:545
#13 QThreadPrivate::start (arg=0x21dda70) at thread/qthread_unix.cpp:325
#14 0x00007ff4a160ddba in start_thread (arg=<value optimized out>) at pthread_create.c:301
#15 0x00007ff49f2ae02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7ff4a1e97760 (LWP 13556)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff4a18a166b in wait (this=<value optimized out>, mutex=0x21df950, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x21df950, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007ff4a18a0754 in QThread::wait (this=<value optimized out>, time=18446744073709551615) at thread/qthread_unix.cpp:722
#4  0x00007ff4946d7907 in Nepomuk::StrigiService::~StrigiService (this=0x219f9f0, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/nepomuk-4.7.3/work/nepomuk-4.7.3/nepomuk/services/strigi/strigiservice.cpp:106
#5  0x00007ff4946d7929 in Nepomuk::StrigiService::~StrigiService (this=0x219f9f0, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/nepomuk-4.7.3/work/nepomuk-4.7.3/nepomuk/services/strigi/strigiservice.cpp:109
#6  0x00007ff4a19a37ee in QObjectPrivate::deleteChildren (this=0x219cab0) at kernel/qobject.cpp:1955
#7  0x00007ff4a19aae23 in QObject::~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:946
#8  0x0000000000404be9 in Nepomuk::ServiceControl::~ServiceControl (this=0x2199210, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/nepomuk-4.7.3/work/nepomuk-4.7.3/nepomuk/servicestub/servicecontrol.cpp:39
#9  0x00007ff4a19a37ee in QObjectPrivate::deleteChildren (this=0x1fe4cd0) at kernel/qobject.cpp:1955
#10 0x00007ff4a19aae23 in QObject::~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:946
#11 0x00007ff49fa262e5 in QApplication::~QApplication (this=0x7fff20268af0, __in_chrg=<value optimized out>) at kernel/qapplication.cpp:1204
#12 0x00000000004044bf in main (argc=42, argv=0x7fff20268f38) at /var/tmp/portage/kde-base/nepomuk-4.7.3/work/nepomuk-4.7.3/nepomuk/servicestub/main.cpp:105

Possible duplicates by query: bug 284044, bug 283868, bug 281492, bug 278945, bug 271599.

Reported using DrKonqi
Comment 1 Sebastian Trueg 2011-11-18 08:21:08 UTC
Created attachment 65805 [details]
Patch against soprano 2.7

Please see if the attached patch for Soprano fixes the crash.
Comment 2 Sebastian Trueg 2011-11-18 08:22:42 UTC
*** Bug 251795 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Trueg 2011-11-18 12:45:20 UTC
*** Bug 284778 has been marked as a duplicate of this bug. ***
Comment 4 Beat Wolf 2011-11-21 14:18:23 UTC
*** Bug 286863 has been marked as a duplicate of this bug. ***
Comment 5 Aaron J. Seigo 2011-12-03 09:25:32 UTC
*** Bug 288100 has been marked as a duplicate of this bug. ***
Comment 6 Vincent-Xavier JUMEL 2011-12-05 12:17:35 UTC
Created attachment 66401 [details]
New crash information added by DrKonqi

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

nepomuk token crashes after few minutes of usage.

-- Backtrace (Reduced):
#6  0x00007f4147d2b0ec in QMutex::lock (this=0x9a9bc8) at thread/qmutex.cpp:151
#7  0x00007f4141ead4dd in QMutexLocker (m=0x9a9bc8, this=<synthetic pointer>) at /usr/include/qt4/QtCore/qmutex.h:102
#8  Soprano::Client::SocketHandler::~SocketHandler (this=0xa16df0, __in_chrg=<optimized out>) at /var/tmp/portage/dev-libs/soprano-2.7.3/work/soprano-2.7.3/client/clientconnection.cpp:58
#9  0x00007f4141ead609 in Soprano::Client::SocketHandler::~SocketHandler (this=0xa16df0, __in_chrg=<optimized out>) at /var/tmp/portage/dev-libs/soprano-2.7.3/work/soprano-2.7.3/client/clientconnection.cpp:61
#10 0x00007f4147d2e149 in QThreadStorageData::finish (p=0x9e2f70) at thread/qthreadstorage.cpp:202
Comment 7 Sebastian Trueg 2011-12-12 10:13:06 UTC
*** Bug 288779 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Marin 2012-01-02 12:43:40 UTC
*** Bug 290260 has been marked as a duplicate of this bug. ***
Comment 9 Thijs 2012-01-03 08:55:27 UTC
*** Bug 290201 has been marked as a duplicate of this bug. ***
Comment 10 Christophe Marin 2012-01-17 13:07:13 UTC
*** Bug 291753 has been marked as a duplicate of this bug. ***
Comment 11 Sven Eden 2012-01-24 08:46:36 UTC
Created attachment 68131 [details]
New crash information added by DrKonqi

kontact (4.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4

- What I was doing when the application crashed:
I just finished a report about nepomukservicestub crashing and told DrKonqi to restart the application. A few seconds later kontact crashed.

This didn't happen before, and I can't remember to have ever seen a Backtrace like this.

I came to this bug report through a different one that was marked as a duplicate of this one.

-- Backtrace (Reduced):
#6  0x00007f557060f8dc in QMutex::lock (this=0x25af7b8) at thread/qmutex.cpp:151
#7  0x00007f5564e002a1 in QMutexLocker (m=0x25af7b8, this=0x7fffa645d830) at /usr/include/qt4/QtCore/qmutex.h:102
#8  Soprano::Client::SocketHandler::~SocketHandler (this=0x25cd270, __in_chrg=<optimized out>) at /var/tmp/portage/dev-libs/soprano-2.7.3/work/soprano-2.7.3/client/clientconnection.cpp:58
#9  0x00007f5564e00369 in Soprano::Client::SocketHandler::~SocketHandler (this=0x25cd270, __in_chrg=<optimized out>) at /var/tmp/portage/dev-libs/soprano-2.7.3/work/soprano-2.7.3/client/clientconnection.cpp:61
#10 0x00007f55706124b2 in QThreadStorageData::set (this=0x2d59ef0, p=0x2cb76f0) at thread/qthreadstorage.cpp:165
Comment 12 Christophe Marin 2012-02-04 11:21:46 UTC
*** Bug 293255 has been marked as a duplicate of this bug. ***
Comment 13 Bruno Friedmann 2012-02-21 07:47:32 UTC
Created attachment 68975 [details]
New crash information added by DrKonqi

akonadi_nepomuk_feeder (4.8) on KDE Platform 4.8.00 (4.8.0 "release 2" using Qt 4.8.0

- What I was doing when the application crashed: This time the crash happen when you close the kde session by asking a poweroff. 
Kontact was closed manually before that.

-- Backtrace (Reduced):
#6  0x00007f573f0317ca in lockInline (this=0x8caac8) at /usr/include/QtCore/qmutex.h:187
#7  QMutexLocker (m=0x8caac8, this=<synthetic pointer>) at /usr/include/QtCore/qmutex.h:109
#8  Soprano::Client::SocketHandler::~SocketHandler (this=0x9fb9f0, __in_chrg=<optimized out>) at /usr/src/debug/soprano-2.7.4/client/clientconnection.cpp:58
#9  0x00007f573f031909 in Soprano::Client::SocketHandler::~SocketHandler (this=0x9fb9f0, __in_chrg=<optimized out>) at /usr/src/debug/soprano-2.7.4/client/clientconnection.cpp:61
#10 0x00007f5744e4b52d in QThreadStorageData::set (this=0x678cf0, p=0x0) at thread/qthreadstorage.cpp:165
Comment 14 neo6238-kde 2012-02-22 14:47:33 UTC
Created attachment 69007 [details]
New crash information added by DrKonqi

akonadi_nepomuk_feeder (4.8) on KDE Platform 4.8.00 (4.8.0 "release 2" using Qt 4.8.0

- What I was doing when the application crashed:

It still seems not to be fixed in KDE 4.8.0.

-- Backtrace (Reduced):
#6  0xb525109b in lockInline (this=0x81bf7b4) at /usr/include/QtCore/qmutex.h:187
#7  QMutexLocker (m=0x81bf7b4, this=<synthetic pointer>) at /usr/include/QtCore/qmutex.h:109
#8  Soprano::Client::SocketHandler::~SocketHandler (this=0x81d3b48, __in_chrg=<optimized out>) at /usr/src/debug/soprano-2.7.4/client/clientconnection.cpp:58
#9  0xb52511e2 in Soprano::Client::SocketHandler::~SocketHandler (this=0x81d3b48, __in_chrg=<optimized out>) at /usr/src/debug/soprano-2.7.4/client/clientconnection.cpp:61
#10 0xb5251213 in qThreadStorage_deleteData<Soprano::Client::SocketHandler> (d=0x81d3b48) at /usr/include/QtCore/qthreadstorage.h:97
Comment 15 Henning Becker 2012-02-29 07:21:19 UTC
(In reply to comment #1)
> Created an attachment (id=65805) [details]
> Patch against soprano 2.7
> 
> Please see if the attached patch for Soprano fixes the crash.

Hi Sebastian,
i tried your patch and it seems to work. No more soprano crash since
patch installation.

I'm going to test my self compiled package once again without your patch, to clarify that there was no other influence, which helped to solve the issue.

I will inform you.

Greets,
Henning
Comment 16 Olivier LAHAYE 2012-02-29 13:51:44 UTC
Tested the patch and I still had crashes, but removing ~/.kde4/share/apps/nepomuk/repository/main/data seems to have fixed it once for all (while in the past, the error reappeared shortly after having erased the files).

system:

Mandriva cooker with latest updates on Feb 29th + recompiled soprano rpm V2.7.4-2
Comment 17 Henning Becker 2012-03-01 16:10:43 UTC
To me the patch works. I have tested once again some hours without Sebastian's patch and several crashes occured (especially Kontact related to Soprano-SocketHandler).

Greets,
Henning
Comment 18 Olivier LAHAYE 2012-03-02 11:55:14 UTC
Tested updated mandriva packages, and it seems to work like a charm. Still no crashes, dmesg empty (no segfaults)
Comment 19 Christophe Marin 2012-03-08 21:42:24 UTC
*** Bug 295200 has been marked as a duplicate of this bug. ***
Comment 20 Christophe Marin 2012-03-08 21:43:16 UTC
*** Bug 295120 has been marked as a duplicate of this bug. ***
Comment 21 Christophe Marin 2012-03-08 21:44:05 UTC
*** Bug 295107 has been marked as a duplicate of this bug. ***
Comment 22 Christophe Marin 2012-03-08 21:46:58 UTC
*** Bug 294765 has been marked as a duplicate of this bug. ***
Comment 23 Jonathan Marten 2012-05-16 14:57:29 UTC
Still experiencing this crash as of today with current Soprano 2.7 branch (917c07797292f41ba175f936623876152423709c).  Applying the patch as in comment #1 fixes the problem.  Time to commit this fix?
Comment 24 Vishesh Handa 2012-06-17 18:00:11 UTC
Fixed in Soprano trunk.

This fix will be there in Soprano 2.8
Comment 25 Vishesh Handa 2012-06-21 23:51:42 UTC
*** Bug 294849 has been marked as a duplicate of this bug. ***
Comment 26 Vishesh Handa 2012-06-21 23:52:05 UTC
*** Bug 302272 has been marked as a duplicate of this bug. ***
Comment 27 Jekyll Wu 2012-07-03 16:36:22 UTC
*** Bug 294571 has been marked as a duplicate of this bug. ***
Comment 28 Jekyll Wu 2012-07-03 16:36:50 UTC
*** Bug 294522 has been marked as a duplicate of this bug. ***
Comment 29 Jekyll Wu 2012-07-06 18:06:33 UTC
*** Bug 289993 has been marked as a duplicate of this bug. ***
Comment 30 Jekyll Wu 2012-07-10 20:58:46 UTC
*** Bug 295083 has been marked as a duplicate of this bug. ***
Comment 31 Jekyll Wu 2012-07-31 20:27:58 UTC
*** Bug 304354 has been marked as a duplicate of this bug. ***
Comment 32 Myriam Schweingruber 2012-09-02 06:44:05 UTC
*** Bug 306017 has been marked as a duplicate of this bug. ***
Comment 33 Jekyll Wu 2012-11-16 10:05:25 UTC
*** Bug 310195 has been marked as a duplicate of this bug. ***