Bug 335630

Summary: digiKam crashes when clicking image editor
Product: [Applications] digikam Reporter: Annemette <kubunta>
Component: Database-SqliteAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: 4.0.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.3.0

Description Annemette 2014-05-31 23:02:35 UTC
Application: digikam (4.0.0)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-27-generic x86_64
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
as said, reproduced twice in a row

on Kubuntu 14.04 kernel 3.13.0-27

The crash can be reproduced sometimes.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
To enable execution of this file add
	add-auto-load-safe-path /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py
line to your configuration file "/home/annemette/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/annemette/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[Current thread is 1 (Thread 0x7f533c3d8ac0 (LWP 7190))]

Thread 6 (Thread 0x7f5317d10700 (LWP 7192)):
#0  0x00007f5335532fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f531c8bb248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f5331566182 in start_thread (arg=0x7f5317d10700) at pthread_create.c:312
#3  0x00007f533554030d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f5310d4f700 (LWP 7193)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5336321816 in wait (time=18446744073709551615, this=0x29f69b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x29f68c0, mutex=mutex@entry=0x29f68b8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005e3d9e in Digikam::ScanController::run (this=0x29f6630) at /build/buildd/digikam-4.0.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f533632132f in QThreadPrivate::start (arg=0x29f6630) at thread/qthread_unix.cpp:349
#5  0x00007f5331566182 in start_thread (arg=0x7f5310d4f700) at pthread_create.c:312
#6  0x00007f533554030d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f530bfff700 (LWP 7194)):
#0  0x00007f5335532fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f532e478fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f532e4790ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f53364507be in QEventDispatcherGlib::processEvents (this=0x7f53040008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f53364220af in QEventLoop::processEvents (this=this@entry=0x7f530bffeae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f53364223a5 in QEventLoop::exec (this=this@entry=0x7f530bffeae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f533631ec5f in QThread::exec (this=this@entry=0x2b75810) at thread/qthread.cpp:537
#7  0x00007f5336403823 in QInotifyFileSystemWatcherEngine::run (this=0x2b75810) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f533632132f in QThreadPrivate::start (arg=0x2b75810) at thread/qthread_unix.cpp:349
#9  0x00007f5331566182 in start_thread (arg=0x7f530bfff700) at pthread_create.c:312
#10 0x00007f533554030d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f530b7fe700 (LWP 7273)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5336321816 in wait (time=18446744073709551615, this=0x2e039c0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x295c700, mutex=mutex@entry=0x295c6f8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f5339a648aa in Digikam::ParkingThread::run (this=0x295c6e0) at /build/buildd/digikam-4.0.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f533632132f in QThreadPrivate::start (arg=0x295c6e0) at thread/qthread_unix.cpp:349
#5  0x00007f5331566182 in start_thread (arg=0x7f530b7fe700) at pthread_create.c:312
#6  0x00007f533554030d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f530a3f5700 (LWP 7276)):
#0  0x00007f5335532fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f532e478fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f532e4790ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f53364507be in QEventDispatcherGlib::processEvents (this=0x7f53000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f53364220af in QEventLoop::processEvents (this=this@entry=0x7f530a3f4ae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f53364223a5 in QEventLoop::exec (this=this@entry=0x7f530a3f4ae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f533631ec5f in QThread::exec (this=this@entry=0x31c1980) at thread/qthread.cpp:537
#7  0x00007f5336403823 in QInotifyFileSystemWatcherEngine::run (this=0x31c1980) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f533632132f in QThreadPrivate::start (arg=0x31c1980) at thread/qthread_unix.cpp:349
#9  0x00007f5331566182 in start_thread (arg=0x7f530a3f5700) at pthread_create.c:312
#10 0x00007f533554030d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f533c3d8ac0 (LWP 7190)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f5320bbcdac in sqlite3MemCompare (pMem1=pMem1@entry=0x7fffd1583820, pMem2=<optimized out>, pColl=0x2b3d040) at sqlite3.c:60484
#8  0x00007f5320bbcf63 in sqlite3VdbeRecordCompare (nKey1=24, pKey1=0x64a83ae, pPKey2=pPKey2@entry=0x7fffd1583b20) at sqlite3.c:64162
#9  0x00007f5320bd1579 in sqlite3BtreeMovetoUnpacked (pCur=0x69e06a8, pIdxKey=0x7fffd1583b20, intKey=0, biasRight=<optimized out>, pRes=0x7fffd1583b10) at sqlite3.c:55077
#10 0x00007f5320bf99c5 in sqlite3VdbeExec (p=p@entry=0x69e9288) at sqlite3.c:70168
#11 0x00007f5320c01ed7 in sqlite3Step (p=0x69e9288) at sqlite3.c:64828
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#13 0x00007f531034a11c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x69cf740, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007f531034ae48 in QSQLiteResult::exec (this=0x63d81c0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007f533c015b7d in QSqlQuery::exec (this=this@entry=0x7fffd1584078) at kernel/qsqlquery.cpp:949
#16 0x00007f5339a1da46 in Digikam::DatabaseCoreBackend::exec (this=0x2b83b80, query=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1415
#17 0x00007f5339a1db72 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2b83b80, query=..., boundValue1=..., boundValue2=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1065
#18 0x00007f5339a1ec2c in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2b83b80, sql=..., boundValue1=..., boundValue2=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1014
#19 0x00007f5339a1ec7c in Digikam::DatabaseCoreBackend::execSql (this=0x2b83b80, sql=..., boundValue1=..., boundValue2=..., values=values@entry=0x7fffd15840c0, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:911
#20 0x00007f53393e305b in Digikam::AlbumDB::getImageProperty (this=0x2b2aeb0, imageID=imageID@entry=20190, property=...) at /build/buildd/digikam-4.0.0/core/libs/database/albumdb.cpp:2093
#21 0x00007f53394204e9 in Digikam::ImageExtendedProperties::readProperty (this=this@entry=0x7fffd1584250, property=...) at /build/buildd/digikam-4.0.0/core/libs/database/imageextendedproperties.cpp:139
#22 0x00007f533942068a in Digikam::ImageExtendedProperties::location (this=this@entry=0x7fffd1584250) at /build/buildd/digikam-4.0.0/core/libs/database/imageextendedproperties.cpp:115
#23 0x00007f53394249f0 in Digikam::ImageInfo::metadataTemplate (this=this@entry=0x62c8ba8) at /build/buildd/digikam-4.0.0/core/libs/database/imageinfo.cpp:1503
#24 0x000000000062897c in Digikam::MetadataHub::load (this=0x36ed080, info=...) at /build/buildd/digikam-4.0.0/core/digikam/fileaction/metadatahub.cpp:183
#25 0x00000000004ba4ac in Digikam::ImageDescEditTab::setInfos (this=this@entry=0x36ecae0, infos=...) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagedescedittab.cpp:770
#26 0x00000000004ba6dd in Digikam::ImageDescEditTab::setItem (this=0x36ecae0, info=...) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagedescedittab.cpp:734
#27 0x00000000004aa3f1 in Digikam::ImagePropertiesSideBarDB::slotChangedTab (this=this@entry=0x33e3d80, tab=0x36ecae0) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:298
#28 0x00000000004a754a in Digikam::ImagePropertiesSideBarDB::itemChanged (this=this@entry=0x33e3d80, infos=..., rect=..., img=img@entry=0x0, history=...) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:199
#29 0x00000000004a75fc in Digikam::ImagePropertiesSideBarDB::itemChanged (this=0x33e3d80, infos=...) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:175
#30 0x000000000067c89e in Digikam::DigikamView::slotDispatchImageSelected (this=0x2ffb8a0) at /build/buildd/digikam-4.0.0/core/digikam/views/digikamview.cpp:1304
#31 0x000000000068094b in Digikam::DigikamView::qt_static_metacall (_o=0x2ffb8a0, _c=16, _id=110832584, _a=0xe) at /build/buildd/digikam-4.0.0/obj-x86_64-linux-gnu/core/digikam/digikamview.moc:340
#32 0x00007f533643787a in QMetaObject::activate (sender=0x3b16410, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#33 0x00007f533643ba31 in QObject::event (this=0x3b16410, e=<optimized out>) at kernel/qobject.cpp:1156
#34 0x00007f5336e15e2c in QApplicationPrivate::notify_helper (this=this@entry=0x28feab0, receiver=receiver@entry=0x3b16410, e=e@entry=0x7fffd1584d20) at kernel/qapplication.cpp:4567
#35 0x00007f5336e1c4a0 in QApplication::notify (this=this@entry=0x7fffd15854b0, receiver=receiver@entry=0x3b16410, e=e@entry=0x7fffd1584d20) at kernel/qapplication.cpp:4353
#36 0x00007f5337b20baa in KApplication::notify (this=0x7fffd15854b0, receiver=0x3b16410, event=0x7fffd1584d20) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007f53364234dd in QCoreApplication::notifyInternal (this=0x7fffd15854b0, receiver=0x3b16410, event=0x7fffd1584d20) at kernel/qcoreapplication.cpp:953
#38 0x00007f5336453323 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#39 QTimerInfoList::activateTimers (this=0x28f70e0) at kernel/qeventdispatcher_unix.cpp:621
#40 0x00007f53364505f1 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193
#41 0x00007f532e478e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f532e479048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f532e4790ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f53364507a1 in QEventDispatcherGlib::processEvents (this=0x281faa0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#45 0x00007f5336eb7bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x00007f53364220af in QEventLoop::processEvents (this=this@entry=0x7fffd1584f90, flags=...) at kernel/qeventloop.cpp:149
#47 0x00007f53364223a5 in QEventLoop::exec (this=this@entry=0x7fffd1584f90, flags=...) at kernel/qeventloop.cpp:204
#48 0x00007f5336427b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#49 0x00007f5336e1437c in QApplication::exec () at kernel/qapplication.cpp:3828
#50 0x00000000004948f0 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-4.0.0/core/digikam/main/main.cpp:236

Possible duplicates by query: bug 335622, bug 335574, bug 335529, bug 335297, bug 335260.

Reported using DrKonqi
Comment 1 Christoph Feck 2014-05-31 23:10:18 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2021-04-04 08:25:44 UTC
Fixed with #329697