Summary: | Crash in Nepomuk::Resource::~Resource | ||
---|---|---|---|
Product: | [Unmaintained] nepomuk | Reporter: | Ivan D Vasin <ivan> |
Component: | libnepomukcore | Assignee: | Sebastian Trueg <trueg> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | abyss.andrey, asraniel, daramas444, faure, kde, mail, me, neograven, null, spearhead2k3, tek, vivo75+kde, walter.von.entferndt, wyxknouth, xa.kasprzyk |
Priority: | NOR | ||
Version: | 4.9 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/nepomuk-core/712879840c661b1246e1c69cf338fb6c36aee51e | Version Fixed In: | 4.10 |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Ivan D Vasin
2012-01-31 20:03:44 UTC
Created attachment 68591 [details]
New crash information added by DrKonqi
kontact (4.8.0) on KDE Platform 4.8.00 (4.8.0 using Qt 4.7.4
- What I was doing when the application crashed:
I closed kontact and then kontact crashed.
-- Backtrace (Reduced):
#6 0x00007f71762cb23c in QMutex::lock (this=0x2424f90) at thread/qmutex.cpp:151
#7 0x00007f716e63da23 in QMutexLocker (m=0x2424f90, this=<synthetic pointer>) at /usr/include/qt4/QtCore/qmutex.h:102
#8 Nepomuk::Resource::~Resource (this=0x3587530, __in_chrg=<optimized out>) at ../../nepomuk/core/resource.cpp:140
#9 0x00007f716e63e1f9 in Nepomuk::Resource::~Resource (this=0x3587530, __in_chrg=<optimized out>) at ../../nepomuk/core/resource.cpp:145
[...]
#12 0x00007f71763b9d6e in QCoreApplicationPrivate::~QCoreApplicationPrivate (this=0x1d959e0, __in_chrg=<optimized out>) at kernel/qcoreapplication.cpp:357
*** Bug 294000 has been marked as a duplicate of this bug. *** *** Bug 301538 has been marked as a duplicate of this bug. *** *** Bug 284696 has been marked as a duplicate of this bug. *** *** Bug 307551 has been marked as a duplicate of this bug. *** *** Bug 305282 has been marked as a duplicate of this bug. *** *** Bug 305828 has been marked as a duplicate of this bug. *** Confirmed by several duplicates. *** Bug 305401 has been marked as a duplicate of this bug. *** Looks like m_data is dangling, in Resource, or ResourceManager is already deleted. *** Bug 309671 has been marked as a duplicate of this bug. *** *** Bug 308631 has been marked as a duplicate of this bug. *** *** Bug 308187 has been marked as a duplicate of this bug. *** Git commit 712879840c661b1246e1c69cf338fb6c36aee51e by Vishesh Handa. Committed on 04/12/2012 at 12:20. Pushed by vhanda into branch 'master'. ResourceManager: Cleanup out all the existing Resources before exit Ideally, there should be no ResourceData* in the cache when the ResourceManager is being destroyed. However, they can be cases when a Resource has been allocated statically and it is destroyed after the ResourceManager. In that case, when the Resource is eventually destroyed, it will crash as it will try to access the deleted ResourceManager. In order to fix this, we connect to QCoreApplication::aboutToQuit signal and set all the Resource::m_data = 0. This results in the Resource class not doing anything during its destruction and therefore not crashing. We also delete all the ResourceData pointers. This cleanUpResource() cannot be done in the ResourceManager destructor cause ResourceData::resetAll accesses NIE::url() and NAO::identifier(), both of which are also static variables and could have been destroyed before. FIXED-IN: 4.10 REVIEW: 107575 M +2 -0 libnepomukcore/resource/resource.h M +20 -0 libnepomukcore/resource/resourcemanager.cpp M +7 -0 libnepomukcore/resource/resourcemanager.h http://commits.kde.org/nepomuk-core/712879840c661b1246e1c69cf338fb6c36aee51e Created attachment 77478 [details]
New crash information added by DrKonqi
gwenview (4.10.0) on KDE Platform 4.10.00 "release 546" using Qt 4.8.4
- What I was doing when the application crashed:
I removed the mass storage device while a picture was open in Gwenview and after it crashed.
Interestingly, it happened in KDE 4.10. Please, examine this backtrace and reopen the bug if necessary.
-- Backtrace (Reduced):
#6 0x00007febb7421cd7 in lockInline (this=0x11804f8) at /usr/include/QtCore/qmutex.h:187
#7 QMutexLocker (m=0x11804f8, this=<synthetic pointer>) at /usr/include/QtCore/qmutex.h:109
#8 Nepomuk::Resource::~Resource (this=0x7feb88013850, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.0/nepomuk/core/resource.cpp:142
#9 0x00007febb7421f89 in Nepomuk::Resource::~Resource (this=0x7feb88013850, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.0/nepomuk/core/resource.cpp:147
[...]
#12 0x00007febb7c61c38 in QCoreApplicationPrivate::~QCoreApplicationPrivate (this=0x10298f0, __in_chrg=<optimized out>) at kernel/qcoreapplication.cpp:480
(In reply to comment #15) > > Interestingly, it happened in KDE 4.10. Please, examine this backtrace and > reopen the bug if necessary. Gwenview (4.10) is still using kdelibs/nepomuk, instead of nepomuk-core. They have now migrated (4.11), and this crash shouldn't be a problem. This crash cannot be fixed in kdelibs/nepomuk cause the code has diverged a lot. *** Bug 315753 has been marked as a duplicate of this bug. *** Created attachment 78266 [details]
New crash information added by DrKonqi
gwenview (4.10.1) on KDE Platform 4.10.1 "release 545" using Qt 4.8.4
- What I was doing when the application crashed:
I opened Gwenview to see some images.
Then I closed it and Gwenview crashed.
Thats all.
-- Backtrace (Reduced):
#6 0x00007f1e873c7d67 in lockInline (this=0x1827798) at /usr/include/QtCore/qmutex.h:187
#7 QMutexLocker (m=0x1827798, this=<synthetic pointer>) at /usr/include/QtCore/qmutex.h:109
#8 Nepomuk::Resource::~Resource (this=0x7f1e6403bea0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.1/nepomuk/core/resource.cpp:142
#9 0x00007f1e873c8019 in Nepomuk::Resource::~Resource (this=0x7f1e6403bea0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.1/nepomuk/core/resource.cpp:147
[...]
#12 0x00007f1e87c07cd8 in QCoreApplicationPrivate::~QCoreApplicationPrivate (this=0x1686f80, __in_chrg=<optimized out>) at kernel/qcoreapplication.cpp:480
*** Bug 318490 has been marked as a duplicate of this bug. *** *** Bug 318632 has been marked as a duplicate of this bug. *** |