Bug 369003

Summary: editor crash
Product: [Applications] digikam Reporter: bluloo
Component: DImg-CoreAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: 4.12.0   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In: 5.3.0
Sentry Crash Report:

Description bluloo 2016-09-18 18:01:07 UTC
Application: digikam (4.12.0)
KDE Platform Version: 4.14.16
Qt Version: 4.8.7
Operating System: Linux 4.4.0-36-generic i686
Distribution: Linux Mint 18 Sarah

-- Information about the crash:
- What I was doing when the application crashed: clicked 
"ok" in digikam image editor after choosing B&W effect

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xacbfa9c0 (LWP 19436))]

Thread 5 (Thread 0x9c6fab40 (LWP 20910)):
[KCrash Handler]
#7  __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:144
#8  0xb6d4fa68 in Digikam::DImg::putImageData(unsigned char*, bool) () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#9  0xb6e04c5a in Digikam::MixerFilter::filterImage() () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#10 0xb6da15b9 in Digikam::DImgThreadedFilter::startFilterDirectly() () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#11 0xb6dfb0dc in Digikam::BWSepiaFilter::applyChannelMixer(Digikam::DImg&) () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#12 0xb6dfb43d in Digikam::BWSepiaFilter::blackAndWhiteConversion(Digikam::DImg&, int) () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#13 0xb6dfba64 in Digikam::BWSepiaFilter::filterImage() () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#14 0xb6da15b9 in Digikam::DImgThreadedFilter::startFilterDirectly() () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#15 0xb6da042d in Digikam::DImgThreadedFilter::run() () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#16 0xb6f82723 in Digikam::DynamicThread::DynamicThreadPriv::run() () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#17 0xb456c3c9 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#18 0xb4579d3e in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#19 0xb392e2b5 in start_thread (arg=0x9c6fab40) at pthread_create.c:333
#20 0xb422816e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:114

Thread 4 (Thread 0xaa7ffb40 (LWP 19439)):
#0  0xb30855cf in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb3086014 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb3086244 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb46ca11c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#4  0xb4695c5d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#5  0xb4695fee in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb45770eb in QThread::exec() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#7  0xb46754a6 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0xb4579d3e in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0xb392e2b5 in start_thread (arg=0xaa7ffb40) at pthread_create.c:333
#10 0xb422816e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:114

Thread 3 (Thread 0xab135b40 (LWP 19438)):
#0  0xb7708c31 in __kernel_vsyscall ()
#1  0xb3933a8c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S:187
#2  0xb42348cd in __pthread_cond_wait (cond=0x97eec90, mutex=0x97eec78) at forward.c:149
#3  0xb457a312 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#4  0x082256be in ?? ()
#5  0xb4579d3e in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb392e2b5 in start_thread (arg=0xab135b40) at pthread_create.c:333
#7  0xb422816e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:114

Thread 2 (Thread 0xac9f7b40 (LWP 19437)):
#0  0xb7708c31 in __kernel_vsyscall ()
#1  0xb421df8f in poll () at ../sysdeps/unix/syscall-template.S:84
#2  0xafb417cb in ?? () from /lib/i386-linux-gnu/libusb-1.0.so.0
#3  0xb392e2b5 in start_thread (arg=0xac9f7b40) at pthread_create.c:333
#4  0xb422816e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:114

Thread 1 (Thread 0xacbfa9c0 (LWP 19436)):
#0  0xb7708c31 in __kernel_vsyscall ()
#1  0xb3933a8c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S:187
#2  0xb42348cd in __pthread_cond_wait (cond=0x9a20970, mutex=0x9a20958) at forward.c:149
#3  0xb457a312 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#4  0xb456b72e in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#5  0xb456cbfc in QThreadPool::~QThreadPool() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb456cc4a in QThreadPool::~QThreadPool() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#7  0xb46b1227 in QObjectPrivate::deleteChildren() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0xb46b3a27 in QObject::~QObject() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0xb6f7deef in Digikam::ThreadManager::~ThreadManager() () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#10 0xb6f7df64 in ?? () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#11 0xb6d5de59 in ?? () from /usr/lib/digikam/libdigikamcore.so.4.12.0
#12 0xb416f973 in __run_exit_handlers (status=1, listp=0xb42f33dc <__exit_funcs>, run_list_atexit=true) at exit.c:82
#13 0xb416f9cf in __GI_exit (status=1) at exit.c:104
#14 0xb1b4c537 in ?? () from /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0
#15 0xb58a6f19 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#16 0xb58a6ff1 in ?? () from /usr/lib/libkdeui.so.5
#17 0xb38162ed in _XIOError () from /usr/lib/i386-linux-gnu/libX11.so.6
#18 0xb3813b56 in _XEventsQueued () from /usr/lib/i386-linux-gnu/libX11.so.6
#19 0xb3804fac in XEventsQueued () from /usr/lib/i386-linux-gnu/libX11.so.6
#20 0xb4da54e1 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#21 0xb3085aca in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#22 0xb30860a1 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#23 0xb3086244 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#24 0xb46ca0f5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#25 0xb4da5b66 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#26 0xb4695c5d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#27 0xb4695fee in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#28 0xb469c5f6 in QCoreApplication::exec() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#29 0xb4ce64e4 in QApplication::exec() () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#30 0x080bc135 in ?? ()
#31 0xb4159637 in __libc_start_main (main=0x80badb0, argc=1, argv=0xbfedf844, init=0x84e4ec0 <__libc_csu_init>, fini=0x84e4f20 <__libc_csu_fini>, rtld_fini=0xb7718780 <_dl_fini>, stack_end=0xbfedf83c) at ../csu/libc-start.c:291
#32 0x080bf294 in _start ()

Reported using DrKonqi
Comment 1 caulier.gilles 2016-09-18 19:52:35 UTC
Ir crash in memory management (memcpy) while image data are copied in digiKam internal container.

This problem have been certainly fixed in 5.x release. Please update and try again

Gilles Caulier
Comment 2 caulier.gilles 2016-11-03 21:48:13 UTC
This problem is not reproducible with 5.3.0 AppImage bundle.

https://drive.google.com/open?id=0BzeiVr-byqt5Y0tIRWVWelRJenM

I close this file now.

Gilles Caulier