Bug 264035 - digiKam crashes reading corrupt image
Summary: digiKam crashes reading corrupt image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Image (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 03:29 UTC by James Flanigan
Modified: 2016-12-30 17:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Flanigan 2011-01-23 03:29:18 UTC
Application that crashed: digikam
Version of the application: 1.2.0
KDE Version: 4.3.5 (KDE 4.3.5)
Qt Version: 4.5.3
Operating System: Linux 2.6.31.14-server-1mnb x86_64
Distribution: "Mandriva Linux 2010.0"

What I was doing when the application crashed:
digiKam crashes every time it attempts to access a certain image. The actual image format is unkonwn, it was initially labeled as a RAW. Of course, digiKam can't be expected to make sense of a corrupt file, but it should be able to continue on.

 -- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f44dbf89710 (LWP 5897))]

Thread 14 (Thread 0x7f44c89dc910 (LWP 5898)):
#0  0x00007f44d52ede59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f44d649fd5b in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00000000006f3d2b in Digikam::ScanController::run (this=0xf883e0) at /usr/src/debug/digikam-1.2.0/digikam/scancontroller.cpp:516
#3  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#5  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f44c500f910 (LWP 5901)):
#0  0x00007f44d52ebcb2 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f44cf1db6f5 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f44cf1dba91 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f44cf1dbfc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f44d65accc6 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#5  0x00007f44d6582fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#6  0x00007f44d65833b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#7  0x00007f44d649bf2b in QThread::exec () from /usr/lib64/libQtCore.so.4
#8  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#10 0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f44c480e910 (LWP 5902)):
#0  0x00007f44d5a11843 in poll () from /lib64/libc.so.6
#1  0x00007f44cf1dbc7c in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f44cf1dbfc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f44d65accc6 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d6582fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#5  0x00007f44d65833b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#6  0x00007f44d649bf2b in QThread::exec () from /usr/lib64/libQtCore.so.4
#7  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#9  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f44c3f8d910 (LWP 5903)):
#0  0x00007f44d52ede59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f44d649fd5b in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f44d94367b2 in Digikam::LoadSaveThread::run (this=0xfe1350) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#5  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f44c378c910 (LWP 5904)):
#0  0x00007f44d52ebcb2 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f44cf1db6f5 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f44cf1dba91 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f44cf1dbfc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f44d65accc6 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#5  0x00007f44d6582fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#6  0x00007f44d65833b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#7  0x00007f44d649bf2b in QThread::exec () from /usr/lib64/libQtCore.so.4
#8  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#10 0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f44c2f8b910 (LWP 5905)):
#0  0x00007f44d5a11843 in poll () from /lib64/libc.so.6
#1  0x00007f44cf1dbc7c in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f44cf1dbfc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f44d65accc6 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d6582fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#5  0x00007f44d65833b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#6  0x00007f44d649bf2b in QThread::exec () from /usr/lib64/libQtCore.so.4
#7  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#9  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f44b97f8910 (LWP 5911)):
#0  0x00007f44d5a11843 in poll () from /lib64/libc.so.6
#1  0x00007f44d572f88f in ?? () from /usr/lib64/libpulse.so.0
#2  0x00007f44d571fb76 in pa_mainloop_poll () from /usr/lib64/libpulse.so.0
#3  0x00007f44d5720f59 in pa_mainloop_iterate () from /usr/lib64/libpulse.so.0
#4  0x00007f44d5721010 in pa_mainloop_run () from /usr/lib64/libpulse.so.0
#5  0x00007f44d572f79b in ?? () from /usr/lib64/libpulse.so.0
#6  0x00007f44ce2f5398 in ?? () from /usr/lib64/libpulsecommon-0.9.21.so
#7  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#8  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f44b5e2e910 (LWP 5922)):
#0  0x00007f44d52ed0e9 in pthread_mutex_unlock () from /lib64/libpthread.so.0
#1  0x00007f44cf1dba0a in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f44cf1dbfc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f44d65accc6 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d6582fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#5  0x00007f44d65833b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#6  0x00007f44d649bf2b in QThread::exec () from /usr/lib64/libQtCore.so.4
#7  0x00007f44b83983cd in ?? () from /usr/lib64/kde4/plugins/marble/GpsdPositionProviderPlugin.so
#8  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#10 0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f44b562d910 (LWP 5923)):
#0  0x00007f44d52ede59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f44d649fd5b in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f44d94367b2 in Digikam::LoadSaveThread::run (this=0x28c39a0) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#5  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f44b2e69910 (LWP 5933)):
#0  0x00007f44d5a11843 in poll () from /lib64/libc.so.6
#1  0x00007f44cf1dbc7c in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f44cf1dbfc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f44d65accc6 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d6582fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#5  0x00007f44d65833b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#6  0x00007f44d649bf2b in QThread::exec () from /usr/lib64/libQtCore.so.4
#7  0x00007f44b83983cd in ?? () from /usr/lib64/kde4/plugins/marble/GpsdPositionProviderPlugin.so
#8  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#10 0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f44b6e7f910 (LWP 5934)):
#0  0x00007f44d52ede59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f44d649fd5b in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f44d94367b2 in Digikam::LoadSaveThread::run (this=0x3ed6430) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#5  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f446c77d910 (LWP 6092)):
#0  0x00007f44d52ede59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f44d649fd5b in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f44d94367b2 in Digikam::LoadSaveThread::run (this=0x39b27b0) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#5  0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f446bf7c910 (LWP 6093)):
[KCrash Handler]
#5  Digikam::DImgScale::dimgScaleAARGB (isi=<value optimized out>, dest=0x1, dxx=<value optimized out>, dyy=<value optimized out>, dx=<value optimized out>, dy=-1092, dw=2560, dh=403, 
    dow=<value optimized out>, sow=<value optimized out>) at /usr/src/debug/digikam-1.2.0/libs/dimg/dimgscale.cpp:1211
#6  0x00007f44d92fe736 in Digikam::DImg::smoothScale (this=0x1043b48, dw=<value optimized out>, dh=<value optimized out>, aspectRatioMode=<value optimized out>)
    at /usr/src/debug/digikam-1.2.0/libs/dimg/dimgscale.cpp:157
#7  0x00007f44d944e582 in Digikam::PreviewLoadingTask::execute (this=0x1043a00) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/previewtask.cpp:290
#8  0x00007f44d943677c in Digikam::LoadSaveThread::run (this=0x5758970) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:134
#9  0x00007f44d649eca5 in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007f44d52e97cd in start_thread () from /lib64/libpthread.so.0
#11 0x00007f44d5a1b3ed in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f44dbf89710 (LWP 5897)):
#0  0x00007f44d5a28fd7 in pthread_mutex_lock () from /lib64/libc.so.6
#1  0x00007f44bbb562f6 in gst_poll_write_control () from /usr/lib64/libgstreamer-0.10.so.0
#2  0x00007f44bbb640a8 in ?? () from /usr/lib64/libgstreamer-0.10.so.0
#3  0x00007f44bbb65674 in ?? () from /usr/lib64/libgstreamer-0.10.so.0
#4  0x00007f44cf471971 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
#5  0x00007f44bb28a7bd in ?? () from /usr/lib64/libgstaudio-0.10.so.0
#6  0x00007f44cf471971 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
#7  0x00007f44bbb1d29c in ?? () from /usr/lib64/libgstreamer-0.10.so.0
#8  0x00007f44bbb1e84b in ?? () from /usr/lib64/libgstreamer-0.10.so.0
#9  0x00007f44cf471971 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
#10 0x00007f44bc239b26 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#11 0x00007f44db940544 in Phonon::MediaNodePrivate::deleteBackendObject () from /usr/lib64/libphonon.so.4
#12 0x00007f44db94db55 in ?? () from /usr/lib64/libphonon.so.4
#13 0x00007f44d5978242 in ?? () from /lib64/libc.so.6
#14 0x00007f44d5978295 in exit () from /lib64/libc.so.6
#15 0x00007f44d71584d8 in ?? () from /usr/lib64/libQtGui.so.4
#16 0x00007f44d7f65dd8 in KApplication::xioErrhandler () from /usr/lib64/libkdeui.so.5
#17 0x00007f44d447fbee in _XIOError () from /usr/lib64/libX11.so.6
#18 0x00007f44d4487495 in ?? () from /usr/lib64/libX11.so.6
#19 0x00007f44d4487d47 in _XEventsQueued () from /usr/lib64/libX11.so.6
#20 0x00007f44d4470c5b in XEventsQueued () from /usr/lib64/libX11.so.6
#21 0x00007f44d719080c in ?? () from /usr/lib64/libQtGui.so.4
#22 0x00007f44cf1db3aa in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f44cf1dbb90 in ?? () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f44cf1dbfc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f44d65acc73 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#26 0x00007f44d719064e in ?? () from /usr/lib64/libQtGui.so.4
#27 0x00007f44d6582fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#28 0x00007f44d65833b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#29 0x00007f44d6585569 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#30 0x00000000007940d2 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/digikam-1.2.0/digikam/main.cpp:193

Reported using DrKonqi
Comment 1 Christoph Feck 2011-01-23 03:54:34 UTC
Your digiKam version is way old (and your KDE, too). Please update.

*** This bug has been marked as a duplicate of bug 207710 ***
Comment 2 caulier.gilles 2016-12-24 10:10:44 UTC
digiKam 5.4.0 bundles will use QtAV framework instead Qt5Multimedia to thumb
and play video/audio. The Slideshow tool will also support video as well.

QtAV use ffmpeg codecs. It's multi-platform and will always available in
OSX, Windows and Linux bundles that digiKam team provide.

For Linux packagers, you will need to turn on video support at compilation time
and solve QtAV dependencies...

See screenshots here :

https://www.flickr.com/photos/digikam/30886133553
https://www.flickr.com/photos/digikam/31679362466
https://www.flickr.com/photos/digikam/31572654722
https://www.flickr.com/photos/digikam/31726086736

Bundles have been recompiled are posted to GDrive for testing :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM