Bug 254357

Summary: digikam crashes after selecting a month in calendarview
Product: [Applications] digikam Reporter: ender.jens
Component: Metadata-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 1.6.0
Sentry Crash Report:

Description ender.jens 2010-10-16 12:35:09 UTC
Application: digikam (1.2.0)
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.4-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
calendarview: changing to a specific month digikam crashes. that happens only for that month all other month can be opened without a crash.

The crash can be reproduced every time.

 -- Backtrace:
Application: digiKam (digikam), signal: Bus error
[Current thread is 1 (Thread 0x7f5ba2a7a7c0 (LWP 5182))]

Thread 15 (Thread 0x7f5b8e8a4710 (LWP 5183)):
#0  0x00007f5b9a9f439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b9d1fa2bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00000000006a0e7d in Digikam::ScanController::run (this=0xbb7990) at /usr/src/debug/digikam-1.2.0/digikam/scancontroller.cpp:516
#3  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f5b8b405710 (LWP 5185)):
#0  0x00007f5b9c4fc6b3 in poll () from /lib64/libc.so.6
#1  0x00007f5b95d5efd4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f5b95d5f510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f5b9d3096d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9d2e0292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f5b9d2e0495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f5b9d1f72cf in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#9  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f5b8a994710 (LWP 5186)):
#0  0x00007f5b9c4fc6b3 in poll () from /lib64/libc.so.6
#1  0x00007f5b95d5efd4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f5b95d5f510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f5b9d3096d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9d2e0292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f5b9d2e0495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f5b9d1f72cf in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#9  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f5b8a160710 (LWP 5187)):
#0  0x00007f5b9a9f439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b9d1fa2bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f5b9ff89492 in Digikam::LoadSaveThread::run (this=0xc26dc0) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f5b8995f710 (LWP 5188)):
#0  0x00007f5b9a9f2080 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f5b95d5e343 in g_main_context_query () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f5b95d5eedb in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f5b95d5f510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f5b9d3096d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f5b9d2e0292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f5b9d2e0495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007f5b9d1f72cf in QThread::exec() () from /usr/lib64/libQtCore.so.4
#8  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#10 0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f5b8915e710 (LWP 5189)):
#0  0x00007f5b9c4fc6b3 in poll () from /lib64/libc.so.6
#1  0x00007f5b95d5efd4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f5b95d5f510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f5b9d3096d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9d2e0292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f5b9d2e0495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f5b9d1f72cf in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#9  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f5b78af5710 (LWP 5191)):
#0  0x00007f5b9a9f4709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b82742951 in metronom_sync_loop () from /usr/lib64/libxine.so.1
#2  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#3  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f5b776b8710 (LWP 5192)):
#0  0x00007f5b9a9f4709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b8275098f in video_out_loop () from /usr/lib64/libxine.so.1
#2  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#3  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f5b76eb7710 (LWP 5193)):
#0  0x00007f5b9d3091b3 in ?? () from /usr/lib64/libQtCore.so.4
#1  0x00007f5b95d5df7f in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f5b95d5ee69 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f5b95d5f510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f5b9d3096d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f5b9d2e0292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f5b9d2e0495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007f5b9d1f72cf in QThread::exec() () from /usr/lib64/libQtCore.so.4
#8  0x00007f5b829a03b4 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#11 0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f5b764ac710 (LWP 5196)):
#0  0x00007f5b9c4fc6b3 in poll () from /lib64/libc.so.6
#1  0x00007f5b764b19d7 in ao_alsa_handle_event_thread () from /usr/lib64/xine/plugins/1.29/xineplug_ao_out_alsa.so
#2  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#3  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f5b75cab710 (LWP 5197)):
#0  0x00007f5b9a9f439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b8275496b in ao_loop () from /usr/lib64/libxine.so.1
#2  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#3  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5b73a17710 (LWP 5198)):
#0  0x00007f5b9a9f439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b9d1fa2bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f5b9ff89492 in Digikam::LoadSaveThread::run (this=0x167c860) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5b73216710 (LWP 5205)):
#0  0x00007f5b9a9f439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b9d1fa2bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f5b9ff89492 in Digikam::LoadSaveThread::run (this=0x199f830) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5b70a11710 (LWP 5206)):
#0  0x00007f5b9a9f439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5b9d1fa2bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f5b9ff89492 in Digikam::LoadSaveThread::run (this=0x1ad4100) at /usr/src/debug/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5b9d1f9bf5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f5b9a9efa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f5b9c50582d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5ba2a7a7c0 (LWP 5182)):
[KCrash Handler]
#5  Exiv2::getUShort (buf=0x7f5b5da59db0 <Address 0x7f5b5da59db0 out of bounds>, byteOrder=Exiv2::littleEndian) at types.cpp:187
#6  0x00007f5b9a6f89e4 in Exiv2::Internal::TiffReader::visitDirectory (this=0x7fffd345cf60, object=0x4548cf0) at tiffvisitor.cpp:1163
#7  0x00007f5b9a6e9ce6 in Exiv2::Internal::TiffDirectory::doAccept (this=0x4548cf0, visitor=...) at tiffcomposite.cpp:897
#8  0x00007f5b9a6e9c3e in Exiv2::Internal::TiffSubIfd::doAccept (this=0x4549120, visitor=...) at tiffcomposite.cpp:912
#9  0x00007f5b9a6e9d17 in Exiv2::Internal::TiffDirectory::doAccept (this=0x172f580, visitor=...) at tiffcomposite.cpp:900
#10 0x00007f5b9a6ef623 in Exiv2::Internal::TiffParserWorker::parse (pData=0x7f5b5da41000 "II*", size=10751864, root=<value optimized out>, pHeader=<value optimized out>) at tiffimage.cpp:1380
#11 0x00007f5b9a6efeba in Exiv2::Internal::TiffParserWorker::decode (exifData=..., iptcData=..., xmpData=..., pData=<value optimized out>, size=<value optimized out>, root=<value optimized out>, 
    findDecoderFct=0x7f5b9a6ef240 <Exiv2::Internal::TiffMapping::findDecoder(std::string const&, uint32_t, uint16_t)>, pHeader=0x48926a0) at tiffimage.cpp:1280
#12 0x00007f5b9a6f0033 in Exiv2::TiffParser::decode (exifData=<value optimized out>, iptcData=<value optimized out>, xmpData=<value optimized out>, pData=<value optimized out>, 
    size=<value optimized out>) at tiffimage.cpp:202
#13 0x00007f5b9a6f013d in Exiv2::TiffImage::readMetadata (this=0x43bbf20) at tiffimage.cpp:157
#14 0x00007f5ba11c37b3 in KExiv2Iface::KExiv2::load(QString const&) const () from /usr/lib64/libkexiv2.so.8
#15 0x00007f5b9ff57d29 in Digikam::DMetadata::load (this=0x7fffd345d2e0, filePath=...) at /usr/src/debug/digikam-1.2.0/libs/dmetadata/dmetadata.cpp:78
#16 0x00007f5b9ff57da2 in Digikam::DMetadata::DMetadata (this=0x7fffd345d2e0, filePath=...) at /usr/src/debug/digikam-1.2.0/libs/dmetadata/dmetadata.cpp:66
#17 0x00007f5ba0055b82 in Digikam::ImagePropertiesMetaDataTab::setCurrentURL (this=0x14a38c0, url=...) at /usr/src/debug/digikam-1.2.0/libs/imageproperties/imagepropertiesmetadatatab.cpp:173
#18 0x00000000004891db in Digikam::ImagePropertiesSideBarDB::slotChangedTab (this=0xd9eb90, tab=0x14a38c0) at /usr/src/debug/digikam-1.2.0/libs/imageproperties/imagepropertiessidebardb.cpp:265
#19 0x0000000000486a50 in Digikam::ImagePropertiesSideBarDB::itemChanged (this=0xd9eb90, infos=<value optimized out>, rect=<value optimized out>, img=<value optimized out>)
    at /usr/src/debug/digikam-1.2.0/libs/imageproperties/imagepropertiessidebardb.cpp:179
#20 0x00000000004880ca in Digikam::ImagePropertiesSideBarDB::itemChanged (this=0xd9eb90, infos=<value optimized out>)
    at /usr/src/debug/digikam-1.2.0/libs/imageproperties/imagepropertiessidebardb.cpp:160
#21 0x0000000000665142 in Digikam::DigikamView::slotDispatchImageSelected (this=0xca03f0) at /usr/src/debug/digikam-1.2.0/digikam/digikamview.cpp:1001
#22 0x0000000000668fd3 in Digikam::DigikamView::qt_metacall (this=0xca03f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd345d800)
    at /usr/src/debug/digikam-1.2.0/build/digikam/digikamview.moc:349
#23 0x00007f5b9d2f4a1f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#24 0x00007f5b9d2f222e in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#25 0x00007f5b9dc0f4d4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#26 0x00007f5b9dc17aca in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#27 0x00007f5b9e833c06 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#28 0x00007f5b9d2e0e4c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#29 0x00007f5b9d30c0c9 in ?? () from /usr/lib64/libQtCore.so.4
#30 0x00007f5b9d308ff8 in ?? () from /usr/lib64/libQtCore.so.4
#31 0x00007f5b95d5ea93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f5b95d5f270 in ?? () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f5b95d5f510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#34 0x00007f5b9d30967f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#35 0x00007f5b9dcb014e in ?? () from /usr/lib64/libQtGui.so.4
#36 0x00007f5b9d2e0292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#37 0x00007f5b9d2e0495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#38 0x00007f5b9d2e488b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#39 0x000000000071960b in main (argc=-750393984, argv=0x7fffd345eb00) at /usr/src/debug/digikam-1.2.0/digikam/main.cpp:193

Reported using DrKonqi
Comment 1 caulier.gilles 2010-10-16 17:46:58 UTC
Crash is into Exiv2 library. Which version you use ? Go to Help/Components Info for details.

Gilles Caulier
Comment 2 caulier.gilles 2010-10-17 18:00:56 UTC
Update Exiv2 to 0.20. libkexiv2 need to be updated too (or recompiled)

Gilles Caulier
Comment 3 caulier.gilles 2011-07-06 11:04:37 UTC

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