Bug 334186 - Crash in sqlite when downloading from an SD card
Summary: Crash in sqlite when downloading from an SD card
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Sqlite (show other bugs)
Version: 3.5.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-05-01 15:23 UTC by drdrnewman
Modified: 2021-12-17 11:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description drdrnewman 2014-05-01 15:23:38 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-24-generic x86_64
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:

Downloading images from an SDcard. It crashed between the second and third 1080p videos.

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

Thread 7 (Thread 0x7f8596402700 (LWP 15766)):
#0  0x00007f85b6643fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f859b822248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f85b18d3182 in start_thread (arg=0x7f8596402700) at pthread_create.c:312
#3  0x00007f85b665130d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f858b855700 (LWP 15767)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f85b7432816 in wait (time=18446744073709551615, this=0xefcfd0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0xefcee0, mutex=mutex@entry=0xefced8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005d5ede in Digikam::ScanController::run (this=0xefcc50) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f85b743232f in QThreadPrivate::start (arg=0xefcc50) at thread/qthread_unix.cpp:349
#5  0x00007f85b18d3182 in start_thread (arg=0x7f858b855700) at pthread_create.c:312
#6  0x00007f85b665130d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f858b054700 (LWP 15768)):
#0  QThreadData::current () at thread/qthread_unix.cpp:218
#1  0x00007f85b7561af5 in postEventSourcePrepare (s=0x7f857c001370, timeout=0x7f858b053924) at kernel/qeventdispatcher_glib.cpp:263
#2  0x00007f85af0fa68d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f85af0faf03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f85af0fb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f85b75617be in QEventDispatcherGlib::processEvents (this=0x7f857c0008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f85b75330af in QEventLoop::processEvents (this=this@entry=0x7f858b053ae0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f85b75333a5 in QEventLoop::exec (this=this@entry=0x7f858b053ae0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f85b742fc5f in QThread::exec (this=this@entry=0xfab460) at thread/qthread.cpp:537
#9  0x00007f85b7514823 in QInotifyFileSystemWatcherEngine::run (this=0xfab460) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f85b743232f in QThreadPrivate::start (arg=0xfab460) at thread/qthread_unix.cpp:349
#11 0x00007f85b18d3182 in start_thread (arg=0x7f858b054700) at pthread_create.c:312
#12 0x00007f85b665130d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f858a853700 (LWP 15772)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f85b7432816 in wait (time=18446744073709551615, this=0x111f610) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1037cc0, mutex=mutex@entry=0x1037cb8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f85ba2ab79a in Digikam::ParkingThread::run (this=0x1037ca0) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f85b743232f in QThreadPrivate::start (arg=0x1037ca0) at thread/qthread_unix.cpp:349
#5  0x00007f85b18d3182 in start_thread (arg=0x7f858a853700) at pthread_create.c:312
#6  0x00007f85b665130d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f858960c700 (LWP 15773)):
#0  0x00007f85b6643fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f85af0fafe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f85af0fb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f85b75617be in QEventDispatcherGlib::processEvents (this=0x7f85740008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f85b75330af in QEventLoop::processEvents (this=this@entry=0x7f858960bae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f85b75333a5 in QEventLoop::exec (this=this@entry=0x7f858960bae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f85b742fc5f in QThread::exec (this=this@entry=0x62ab960) at thread/qthread.cpp:537
#7  0x00007f85b7514823 in QInotifyFileSystemWatcherEngine::run (this=0x62ab960) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f85b743232f in QThreadPrivate::start (arg=0x62ab960) at thread/qthread_unix.cpp:349
#9  0x00007f85b18d3182 in start_thread (arg=0x7f858960c700) at pthread_create.c:312
#10 0x00007f85b665130d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f84f0002700 (LWP 15822)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f85b7432816 in wait (time=18446744073709551615, this=0x7f85200400f0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex@entry=0x7f852006bb60, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f85b742e95b in QSemaphore::acquire (this=this@entry=0x7f84f0001580, n=n@entry=1) at thread/qsemaphore.cpp:144
#4  0x00007f85b7548cb2 in QMetaObject::activate (sender=sender@entry=0x8845760, m=m@entry=0x89c980 <Digikam::CameraController::staticMetaObject>, local_signal_index=local_signal_index@entry=18, argv=argv@entry=0x7f84f00015d0) at kernel/qobject.cpp:3513
#5  0x00000000007b68b7 in Digikam::CameraController::signalInternalCheckRename (this=this@entry=0x8845760, _t1=..., _t2=..., _t3=..., _t4=..., _t5=...) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:319
#6  0x00000000007bb95f in Digikam::CameraController::executeCommand (this=this@entry=0x8845760, cmd=cmd@entry=0xa9742c0) at /build/buildd/digikam-3.5.0/core/utilities/importui/backend/cameracontroller.cpp:690
#7  0x00000000007be766 in Digikam::CameraController::run (this=0x8845760) at /build/buildd/digikam-3.5.0/core/utilities/importui/backend/cameracontroller.cpp:402
#8  0x00007f85b743232f in QThreadPrivate::start (arg=0x8845760) at thread/qthread_unix.cpp:349
#9  0x00007f85b18d3182 in start_thread (arg=0x7f84f0002700) at pthread_create.c:312
#10 0x00007f85b665130d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f85bcc18ac0 (LWP 15762)):
[KCrash Handler]
#6  0x00007f859fd26da9 in sqlite3MemCompare (pMem1=pMem1@entry=0x7fff788ea640, pMem2=<optimized out>, pColl=0x1198768) at sqlite3.c:60484
#7  0x00007f859fd26f63 in sqlite3VdbeRecordCompare (nKey1=75, pKey1=0xa8e6bfd, pPKey2=pPKey2@entry=0x7fff788ea958) at sqlite3.c:64162
#8  0x00007f859fd3b579 in sqlite3BtreeMovetoUnpacked (pCur=0xa8ed788, pIdxKey=0x7fff788ea958, intKey=0, biasRight=<optimized out>, pRes=0x7fff788ea940) at sqlite3.c:55077
#9  0x00007f859fd63848 in sqlite3VdbeExec (p=p@entry=0x6c4ef88) at sqlite3.c:70345
#10 0x00007f859fd6bed7 in sqlite3Step (p=0x6c4ef88) at sqlite3.c:64828
#11 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#12 0x00007f8589e4e11c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x9d8fb60, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#13 0x00007f8589e4ee48 in QSQLiteResult::exec (this=0x76aa700) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#14 0x00007f85bc857b7d in QSqlQuery::exec (this=this@entry=0x7fff788eaeb8) at kernel/qsqlquery.cpp:949
#15 0x00007f85ba264a26 in Digikam::DatabaseCoreBackend::exec (this=0xef10d0, query=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1414
#16 0x00007f85ba264cee in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0xef10d0, query=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1085
#17 0x00007f85ba265d95 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0xef10d0, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1030
#18 0x00007f85ba265de9 in Digikam::DatabaseCoreBackend::execSql (this=0xef10d0, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=..., values=values@entry=0x0, lastInsertId=lastInsertId@entry=0x7fff788eaf30) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:928
#19 0x00007f85b9c17be5 in Digikam::AlbumDB::addToDownloadHistory (this=0xde6320, identifier=..., name=..., fileSize=fileSize@entry=343846219, date=...) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:3131
#20 0x00007f85b9c65141 in Digikam::DownloadHistory::setDownloaded (identifier=..., name=..., fileSize=fileSize@entry=343846219, date=...) at /build/buildd/digikam-3.5.0/core/libs/database/downloadhistory.cpp:52
#21 0x00000000007aa998 in Digikam::ImportUI::slotDownloaded (this=0x9293ad0, folder=..., file=..., status=<optimized out>) at /build/buildd/digikam-3.5.0/core/utilities/importui/main/importui.cpp:1570
#22 0x00000000007ae721 in Digikam::ImportUI::qt_static_metacall (_o=0x9293ad0, _c=64, _id=177039032, _a=0x40) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/importui.moc:210
#23 0x00007f85b754887a in QMetaObject::activate (sender=sender@entry=0x8845760, m=m@entry=0x89c980 <Digikam::CameraController::staticMetaObject>, local_signal_index=local_signal_index@entry=9, argv=argv@entry=0x7fff788eb370) at kernel/qobject.cpp:3539
#24 0x00000000007b6699 in Digikam::CameraController::signalDownloaded (this=this@entry=0x8845760, _t1=..., _t2=..., _t3=_t3@entry=1) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:257
#25 0x00000000007bea9d in Digikam::CameraController::slotCheckRename (this=0x8845760, folder=..., file=..., destination=..., temp=..., script=...) at /build/buildd/digikam-3.5.0/core/utilities/importui/backend/cameracontroller.cpp:898
#26 0x00000000007bfb29 in Digikam::CameraController::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:141
#27 0x00007f85b754cc1e in QObject::event (this=0x8845760, e=<optimized out>) at kernel/qobject.cpp:1194
#28 0x00007f85b7f26e2c in QApplicationPrivate::notify_helper (this=this@entry=0xd2b630, receiver=receiver@entry=0x8845760, e=e@entry=0x7f852003f9c0) at kernel/qapplication.cpp:4567
#29 0x00007f85b7f2d4a0 in QApplication::notify (this=this@entry=0x7fff788ec220, receiver=receiver@entry=0x8845760, e=e@entry=0x7f852003f9c0) at kernel/qapplication.cpp:4353
#30 0x00007f85b8c31baa in KApplication::notify (this=0x7fff788ec220, receiver=0x8845760, event=0x7f852003f9c0) at ../../kdeui/kernel/kapplication.cpp:311
#31 0x00007f85b75344dd in QCoreApplication::notifyInternal (this=0x7fff788ec220, receiver=receiver@entry=0x8845760, event=event@entry=0x7f852003f9c0) at kernel/qcoreapplication.cpp:953
#32 0x00007f85b7537b3d in sendEvent (event=0x7f852003f9c0, receiver=0x8845760) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#33 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xc987b0) at kernel/qcoreapplication.cpp:1577
#34 0x00007f85b7537fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#35 0x00007f85b7561f83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#36 postEventSourceDispatch (s=0xd3d590) at kernel/qeventdispatcher_glib.cpp:287
#37 0x00007f85af0fae04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f85af0fb048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f85af0fb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f85b75617a1 in QEventDispatcherGlib::processEvents (this=0xc554f0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#41 0x00007f85b7fc8bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f85b75330af in QEventLoop::processEvents (this=this@entry=0x7fff788ebd00, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f85b75333a5 in QEventLoop::exec (this=this@entry=0x7fff788ebd00, flags=...) at kernel/qeventloop.cpp:204
#44 0x00007f85b7538b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#45 0x00007f85b7f2537c in QApplication::exec () at kernel/qapplication.cpp:3828
#46 0x0000000000492023 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/main/main.cpp:235

The reporter indicates this bug may be a duplicate of or related to bug 329697.

Possible duplicates by query: bug 334105, bug 334042, bug 334017, bug 333976, bug 333953.

Reported using DrKonqi
Comment 1 Christoph Feck 2014-05-01 15:29:00 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2021-12-17 11:50:57 UTC
Fixed with #329697