Bug 365229 - Crash during close of Digikam5
Summary: Crash during close of Digikam5
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Engine (show other bugs)
Version: 5.0.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-07-08 08:37 UTC by cd.graesser
Modified: 2017-07-28 15:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cd.graesser 2016-07-08 08:37:45 UTC
Application: digikam5 (5.0.0)

Qt Version: 5.5.1
Operating System: Linux 4.4.0-28-generic x86_64
Distribution: Ubuntu 16.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Before the crash i waited until the writing meta dada was finished. After finishing that  I closed the program - it closed but the the crash handler came up.

-- Backtrace:
Application: digiKam (digikam5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f5beec0eb80 (LWP 2857))]

Thread 9 (Thread 0x7f5b79ffb700 (LWP 2943)):
[KCrash Handler]
#6  QBasicAtomicOps<8>::testAndSetRelaxed<QMutexData*> (currentValue=<synthetic pointer>, newValue=0x1, expectedValue=0x0, _q_value=@0x98: <error reading variable>) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86.h:259
#7  QGenericAtomicOps<QBasicAtomicOps<8> >::testAndSetAcquire<QMutexData*, QMutexData*> (currentValue=<synthetic pointer>, newValue=<optimized out>, expectedValue=0x0, _q_value=@0x98: <error reading variable>) at ../../include/QtCore/../../src/corelib/thread/qgenericatomic.h:166
#8  QBasicAtomicPointer<QMutexData>::testAndSetAcquire (currentValue=<synthetic pointer>, newValue=<optimized out>, expectedValue=0x0, this=0x98) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:276
#9  QBasicMutex::fastTryLock (current=<synthetic pointer>, this=0x98) at thread/qmutex.h:82
#10 QMutex::lock (this=0x98) at thread/qmutex.cpp:212
#11 0x00007f5c1dd6ff67 in Digikam::ThumbnailLoadingTask::execute (this=0x76cc240) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threadimageio/thumbnailtask.cpp:177
#12 0x00007f5c1dd459f0 in Digikam::LoadSaveThread::run (this=0x7f5c1e710d40 <Digikam::(anonymous namespace)::Q_QGS_defaultObject::innerFunction()::holder>) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threadimageio/loadsavethread.cpp:133
#13 0x00007f5c1dd8ae2e in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x20c0f40) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threads/dynamicthread.cpp:183
#14 0x00007f5c1bfc7343 in QThreadPoolThread::run (this=0x2a51060) at thread/qthreadpool.cpp:93
#15 0x00007f5c1bfca84e in QThreadPrivate::start (arg=0x2a51060) at thread/qthread_unix.cpp:331
#16 0x00007f5c182136fa in start_thread (arg=0x7f5b79ffb700) at pthread_create.c:333
#17 0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f5b15ffb700 (LWP 2912)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5c118cdaa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f5c11bee541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f5c182136fa in start_thread (arg=0x7f5b15ffb700) at pthread_create.c:333
#4  0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f5b167fc700 (LWP 2911)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5c118cdaa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f5c11bee541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f5c182136fa in start_thread (arg=0x7f5b167fc700) at pthread_create.c:333
#4  0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f5b16ffd700 (LWP 2910)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5c118cdaa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f5c11bee541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f5c182136fa in start_thread (arg=0x7f5b16ffd700) at pthread_create.c:333
#4  0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f5b177fe700 (LWP 2909)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5c118cca74 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f5c11bee541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f5c182136fa in start_thread (arg=0x7f5b177fe700) at pthread_create.c:333
#4  0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f5bd9ac4700 (LWP 2869)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5c11bbe88b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f5c11bbe8c9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f5c182136fa in start_thread (arg=0x7f5bd9ac4700) at pthread_create.c:333
#4  0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f5bead11700 (LWP 2865)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5c1bfcbaeb in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x1676a40) at thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=this@entry=0x141d0a0, mutex=mutex@entry=0x141d098, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:208
#3  0x00007f5c1dd89763 in Digikam::ParkingThread::run (this=0x141d080) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threads/threadmanager.cpp:115
#4  0x00007f5c1bfca84e in QThreadPrivate::start (arg=0x141d080) at thread/qthread_unix.cpp:331
#5  0x00007f5c182136fa in start_thread (arg=0x7f5bead11700) at pthread_create.c:333
#6  0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f5beebed700 (LWP 2858)):
#0  0x00007f5c1b2f9e8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5bf9c1e64c in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f5c182136fa in start_thread (arg=0x7f5beebed700) at pthread_create.c:333
#3  0x00007f5c1b305b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5beec0eb80 (LWP 2857)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5c1bfcbaeb in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x20c0f90) at thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x20c0f70, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:208
#3  0x00007f5c1dd8b2f8 in Digikam::DynamicThread::wait (this=this@entry=0x7f5c1e710d40 <Digikam::(anonymous namespace)::Q_QGS_defaultObject::innerFunction()::holder>, locker=...) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threads/dynamicthread.cpp:348
#4  0x00007f5c1dd8b368 in Digikam::DynamicThread::shutDown (this=this@entry=0x7f5c1e710d40 <Digikam::(anonymous namespace)::Q_QGS_defaultObject::innerFunction()::holder>) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threads/dynamicthread.cpp:219
#5  0x00007f5c1dd47de0 in Digikam::ManagedLoadSaveThread::shutDown (this=this@entry=0x7f5c1e710d40 <Digikam::(anonymous namespace)::Q_QGS_defaultObject::innerFunction()::holder>) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threadimageio/managedloadsavethread.cpp:91
#6  0x00007f5c1dd639df in Digikam::ThumbnailLoadThread::~ThumbnailLoadThread (this=0x7f5c1e710d40 <Digikam::(anonymous namespace)::Q_QGS_defaultObject::innerFunction()::holder>, __in_chrg=<optimized out>) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threadimageio/thumbnailloadthread.cpp:204
#7  0x00007f5c1dd63b49 in Digikam::(anonymous namespace)::Q_QGS_defaultObject::Holder::~Holder (this=<optimized out>, __in_chrg=<optimized out>) at /build/digikam5-b17owV/digikam5-5.0.0/core/libs/threadimageio/thumbnailloadthread.cpp:164
#8  0x00007f5c1b238fe8 in __run_exit_handlers (status=1, listp=0x7f5c1b5c25f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#9  0x00007f5c1b239035 in __GI_exit (status=<optimized out>) at exit.c:104
#10 0x00007f5c07d1f2ba in ?? () from /usr/lib/x86_64-linux-gnu/libICE.so.6
#11 0x00007f5c07d250f4 in IceFlush () from /usr/lib/x86_64-linux-gnu/libICE.so.6
#12 0x00007f5c07f35430 in SmcCloseConnection () from /usr/lib/x86_64-linux-gnu/libSM.so.6
#13 0x00007f5bedc2b9c3 in QXcbSessionManager::~QXcbSessionManager (this=0xfb0f70, __in_chrg=<optimized out>) at qxcbsessionmanager.cpp:375
#14 0x00007f5bedc2b9f9 in QXcbSessionManager::~QXcbSessionManager (this=0xfb0f70, __in_chrg=<optimized out>) at qxcbsessionmanager.cpp:378
#15 0x00007f5c1c4e076d in QSessionManagerPrivate::~QSessionManagerPrivate (this=0xfb0d90, __in_chrg=<optimized out>) at kernel/qsessionmanager.cpp:128
#16 QSessionManagerPrivate::~QSessionManagerPrivate (this=0xfb0d90, __in_chrg=<optimized out>) at kernel/qsessionmanager.cpp:130
#17 0x00007f5c1c1e1de8 in QScopedPointerDeleter<QObjectData>::cleanup (pointer=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:54
#18 QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::~QScopedPointer (this=0xfb02a8, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:101
#19 QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:883
#20 0x00007f5c1c4e0889 in QSessionManager::~QSessionManager (this=0xfb02a0, __in_chrg=<optimized out>) at kernel/qsessionmanager.cpp:139
#21 0x00007f5c1c4e3a09 in QGuiApplication::~QGuiApplication (this=0x7ffe3c87e240, __in_chrg=<optimized out>) at kernel/qguiapplication.cpp:589
#22 0x00007f5c1ca9ae79 in QApplication::~QApplication (this=0x7ffe3c87e240, __in_chrg=<optimized out>) at kernel/qapplication.cpp:816
#23 0x0000000000405874 in main (argc=1, argv=<optimized out>) at /build/digikam5-b17owV/digikam5-5.0.0/core/app/main/main.cpp:69

Reported using DrKonqi
Comment 1 Maik Qualmann 2016-07-08 20:51:35 UTC
Git commit 1eeeddc8e26a971d48a5b010904c19260945a011 by Maik Qualmann.
Committed on 08/07/2016 at 20:50.
Pushed by mqualmann into branch 'master'.

stopping thumbnails tasks to prevent a crash at end
FIXED-IN: 5.1.0

M  +2    -2    NEWS
M  +4    -0    libs/threadimageio/thumbnailloadthread.cpp

http://commits.kde.org/digikam/1eeeddc8e26a971d48a5b010904c19260945a011