Bug 264414 - Gwenview crashes on exit
Summary: Gwenview crashes on exit
Status: RESOLVED DUPLICATE of bug 295824
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 06:17 UTC by carter
Modified: 2012-10-19 13:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (2.11 KB, text/plain)
2011-01-29 14:06 UTC, carter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description carter 2011-01-27 06:17:03 UTC
Application: gwenview (2.4.3)
KDE Platform Version: 4.4.4 (KDE 4.4.4) "release 3"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.7-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
Sometimes gwenview crashes when I close it too fast.

Consider the following scenario:
1. I open some image file like photo in a folder containing lots of other pictures.
2. When I finished with this picture, I press Esc and gwenview turns to the gallery mode and tries to show thumbnails of all pictures in this folder.
3. I immediately press Alt + F4 to completely close the application.
4. Gwenview crashes.

The crash can be reproduced some of the time.

 -- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f06b9c0d760 (LWP 11183))]

Thread 2 (Thread 0x7f06acd80710 (LWP 11202)):
#0  0x00007f06b5639eb4 in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007f06b563745c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#2  0x00007f06b8c3bd23 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f06b8c38465 in QMutex::lock() () from /usr/lib64/libQtCore.so.4
#4  0x00007f06b9557b8a in relock (this=0x7f06a81e0490) at /usr/include/QtCore/qmutex.h:120
#5  Gwenview::ThumbnailCache::run (this=0x7f06a81e0490) at /usr/src/debug/kdegraphics-4.4.4/gwenview/lib/thumbnailloadjob.cpp:131
#6  0x00007f06b8c3cbf5 in ?? () from /usr/lib64/libQtCore.so.4
#7  0x00007f06b5632a4f in start_thread () from /lib64/libpthread.so.0
#8  0x00007f06b6ace82d in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f06b9c0d760 (LWP 11183)):
[KCrash Handler]
#5  0x00007f06b6a7155b in malloc_consolidate () from /lib64/libc.so.6
#6  0x00007f06b6a72008 in _int_free () from /lib64/libc.so.6
#7  0x00007f06b6a75fcc in free () from /lib64/libc.so.6
#8  0x00007f06b72dc87d in QImageData::~QImageData (this=0x7f06a81e02f0, __in_chrg=<value optimized out>) at image/qimage.cpp:259
#9  0x00007f06b72dc983 in QImage::~QImage (this=0x7f06a81dda78, __in_chrg=<value optimized out>) at image/qimage.cpp:1304
#10 0x00007f06b951f738 in ~DocumentPrivate (this=0x7f06a8203e70, __in_chrg=<value optimized out>) at /usr/src/debug/kdegraphics-4.4.4/gwenview/lib/document/document.cpp:39
#11 Gwenview::Document::~Document (this=0x7f06a8203e70, __in_chrg=<value optimized out>) at /usr/src/debug/kdegraphics-4.4.4/gwenview/lib/document/document.cpp:90
#12 0x00007f06b951f7a9 in Gwenview::Document::~Document (this=0x7f06a8203e70, __in_chrg=<value optimized out>) at /usr/src/debug/kdegraphics-4.4.4/gwenview/lib/document/document.cpp:91
#13 0x00007f06b9521ad3 in ~KSharedPtr (begin=<value optimized out>, end=<value optimized out>) at /usr/include/ksharedptr.h:90
#14 ~DocumentInfo (begin=<value optimized out>, end=<value optimized out>) at /usr/src/debug/kdegraphics-4.4.4/gwenview/lib/document/documentfactory.cpp:49
#15 qDeleteAll<QMap<KUrl, Gwenview::DocumentInfo*>::const_iterator> (begin=<value optimized out>, end=<value optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#16 0x00007f06b9520987 in qDeleteAll<QMap<KUrl, Gwenview::DocumentInfo*> > (this=0x7f06b979a380, __in_chrg=<value optimized out>) at /usr/include/QtCore/qalgorithms.h:330
#17 Gwenview::DocumentFactory::~DocumentFactory (this=0x7f06b979a380, __in_chrg=<value optimized out>) at /usr/src/debug/kdegraphics-4.4.4/gwenview/lib/document/documentfactory.cpp:123
#18 0x00007f06b6a334e1 in __run_exit_handlers () from /lib64/libc.so.6
#19 0x00007f06b6a33535 in exit () from /lib64/libc.so.6
#20 0x00007f06b6a1cb84 in __libc_start_main () from /lib64/libc.so.6
#21 0x0000000000423cd9 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Matthias Fuchs 2011-01-29 12:49:26 UTC
I also made it to crash with trunk after some tries.
Unfortunately the backtrace is not that helpful.
I supose that when closing Gwenview the running threads have not the time to cleanup.

Btw. with the version you are using, is the backtrace always the same?

Application: Gwenview (gwenview), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff0f7bac760 (LWP 4909))]

Thread 3 (Thread 0x7ff0e4878700 (LWP 4914)):
#0  0x00007ff0f2de26d3 in select () from /lib/libc.so.6
#1  0x00007ff0f6823828 in QProcessManager::run (this=0x7ff0f6bddf80) at /home/mat-not/kde/src/kdesrc/qt-copy/src/corelib/io/qprocess_unix.cpp:245
#2  0x00007ff0f672f33c in QThreadPrivate::start (arg=0x7ff0f6bddf80) at /home/mat-not/kde/src/kdesrc/qt-copy/src/corelib/thread/qthread_unix.cpp:285
#3  0x00007ff0f647ccb0 in start_thread () from /lib/libpthread.so.0
#4  0x00007ff0f2de8aed in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff0deffd700 (LWP 4925)):
[KCrash Handler]
#6  0x00007ff0f2d88ea4 in ?? () from /lib/libc.so.6
#7  0x00007ff0f2d8b530 in malloc () from /lib/libc.so.6
#8  0x00007ff0f35cc67d in operator new(unsigned long) () from /usr/lib/libstdc++.so.6
#9  0x00007ff0f35cc799 in operator new[](unsigned long) () from /usr/lib/libstdc++.so.6
#10 0x00007ff0f6752d54 in QHashData::detach_helper2 (this=0x23ed590, node_duplicate=0x7ff0f74aa0e8 <QHash<QString, QImage>::duplicateNode(QHashData::Node*, void*)>, node_delete=0x7ff0f74a9d5a <QHash<QString, QImage>::deleteNode2(QHashData::Node*)>, nodeSize=48, nodeAlign=8) at /home/mat-not/kde/src/kdesrc/qt-copy/src/corelib/tools/qhash.cpp:217
#11 0x00007ff0f74a9db4 in QHash<QString, QImage>::detach_helper (this=0x23ed5f0) at /home/mat-not/qt-copy/include/QtCore/qhash.h:582
#12 0x00007ff0f74a9640 in QHash<QString, QImage>::detach (this=0x23ed5f0) at /home/mat-not/qt-copy/include/QtCore/qhash.h:299
#13 0x00007ff0f74a8f22 in QHash<QString, QImage>::remove (this=0x23ed5f0, akey=...) at /home/mat-not/qt-copy/include/QtCore/qhash.h:786
#14 0x00007ff0f74a5f18 in Gwenview::ThumbnailCache::run (this=0x23ed5e0) at /home/mat-not/kde/src/kdegraphics/gwenview/lib/thumbnailloadjob.cpp:130
#15 0x00007ff0f672f33c in QThreadPrivate::start (arg=0x23ed5e0) at /home/mat-not/kde/src/kdesrc/qt-copy/src/corelib/thread/qthread_unix.cpp:285
#16 0x00007ff0f647ccb0 in start_thread () from /lib/libpthread.so.0
#17 0x00007ff0f2de8aed in clone () from /lib/libc.so.6
#18 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff0f7bac760 (LWP 4909)):
#0  0x00007ff0f2df57ee in ?? () from /lib/libc.so.6
#1  0x00007ff0f2d8d662 in ?? () from /lib/libc.so.6
#2  0x00007ff0f2d8ba31 in free () from /lib/libc.so.6
#3  0x00007ff0f6728c76 in qFree (ptr=0x2230910) at /home/mat-not/kde/src/kdesrc/qt-copy/src/corelib/global/qmalloc.cpp:60
#4  0x00007ff0f67836c4 in QString::free (d=0x2230910) at /home/mat-not/kde/src/kdesrc/qt-copy/src/corelib/tools/qstring.cpp:1185
#5  0x00007ff0f3b612e7 in QString::~QString (this=0x222a748, __in_chrg=<value optimized out>) at /home/mat-not/qt-copy/include/QtCore/qstring.h:883
#6  0x00007ff0f3b6c93b in QList<QString>::node_destruct (this=0x2230678, from=0x222a748, to=0x222a748) at /home/mat-not/qt-copy/include/QtCore/qlist.h:420
#7  0x00007ff0f3b6b8b1 in QList<QString>::free (this=0x2230678, data=0x222a730) at /home/mat-not/qt-copy/include/QtCore/qlist.h:742
#8  0x00007ff0f3b6a342 in QList<QString>::~QList (this=0x2230678, __in_chrg=<value optimized out>) at /home/mat-not/qt-copy/include/QtCore/qlist.h:717
#9  0x00007ff0f3b693c2 in QStringList::~QStringList (this=0x2230678, __in_chrg=<value optimized out>) at /home/mat-not/qt-copy/include/QtCore/qstringlist.h:67
#10 0x00007ff0f3c4a972 in QHashNode<QString, QStringList>::~QHashNode (this=0x2230660, __in_chrg=<value optimized out>) at /home/mat-not/qt-copy/include/QtCore/qhash.h:217
#11 0x00007ff0f3c4a9a4 in QHash<QString, QStringList>::deleteNode2 (node=0x2230660) at /home/mat-not/qt-copy/include/QtCore/qhash.h:519
#12 0x00007ff0f6752f51 in QHashData::free_helper (this=0x7ff0e0037b30, node_delete=0x7ff0f3c4a984 <QHash<QString, QStringList>::deleteNode2(QHashData::Node*)>) at /home/mat-not/kde/src/kdesrc/qt-copy/src/corelib/tools/qhash.cpp:271
#13 0x00007ff0f3c4a34b in QHash<QString, QStringList>::freeData (this=0x21d67a0, x=0x7ff0e0037b30) at /home/mat-not/qt-copy/include/QtCore/qhash.h:568
#14 0x00007ff0f3c4f724 in QHash<QString, QStringList>::~QHash (this=0x21d67a0, __in_chrg=<value optimized out>) at /home/mat-not/qt-copy/include/QtCore/qhash.h:284
#15 0x00007ff0f3c4f3b8 in KMimeGlobsFileParser::AllGlobs::~AllGlobs (this=0x21d67a0, __in_chrg=<value optimized out>) at /home/mat-not/kde/src/kdelibs/kdecore/services/kmimeglobsfileparser_p.h:86
#16 0x00007ff0f3c4af64 in KMimeTypeRepository::~KMimeTypeRepository (this=0x21d6770, __in_chrg=<value optimized out>) at /home/mat-not/kde/src/kdelibs/kdecore/services/kmimetyperepository.cpp:54
#17 0x00007ff0f3c4ae3c in destroy () at /home/mat-not/kde/src/kdelibs/kdecore/services/kmimetyperepository.cpp:36
#18 0x00007ff0f3b81513 in KCleanUpGlobalStatic::~KCleanUpGlobalStatic (this=0x7ff0f3ff9710, __in_chrg=<value optimized out>) at /home/mat-not/kde/src/kdelibs/kdecore/kernel/kglobal.h:62
#19 0x00007ff0f2d4a261 in ?? () from /lib/libc.so.6
#20 0x00007ff0f2d4a2b5 in exit () from /lib/libc.so.6
#21 0x00007ff0f2d33dd4 in __libc_start_main () from /lib/libc.so.6
#22 0x0000000000425109 in _start ()
Comment 2 carter 2011-01-29 14:06:35 UTC
Created attachment 56615 [details]
New crash information added by DrKonqi

I've just reproduced this situation again, so you can see is the backtrace always the same or not.
Comment 3 Jekyll Wu 2012-05-29 09:10:27 UTC

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