[Digikam-devel] [Bug 208839] New: Digikam crashes while rebuilding thumbnail db [sqlite3_free, sqlite3Parser, sqlite3RunParser]

Joe Kowalski joekowalski at gmail.com
Tue Sep 29 05:08:34 BST 2009


https://bugs.kde.org/show_bug.cgi?id=208839

           Summary: Digikam crashes while rebuilding thumbnail db
                    [sqlite3_free, sqlite3Parser, sqlite3RunParser]
           Product: digikam
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel at kde.org
        ReportedBy: joekowalski at gmail.com


Application: digikam (1.0.0-beta5)
KDE Version: 4.3.69 (KDE 4.3.69 (KDE 4.4 >= 20090923)) (Compiled from sources)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-00001-g8701811-dirty x86_64
Distribution (Platform): Gentoo Packages

What I was doing when the application crashed:
Digikam crashes while rebuilding the thumbnail db. Using exiv2 0.18.2,
libkexiv2 from trunk, r1022958, digikam from trunk, r1028955. A kio_file
process gets left behind after the crash. If I manually kill that process, the
thumbnail rebuild goes a lot longer before digikam crashes. Without killing the
kio_file process, digikam crashes within the first 10 photos it generates
thumbnails for.

 -- Backtrace:
Application: digiKam (digikam), signal: Aborted
[Current thread is 0 (LWP 15859)]

Thread 14 (Thread 0x7f9c72562910 (LWP 15861)):
#0  0x00007f9c7a83b269 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007f9c7c1470f4 in QWaitConditionPrivate::wait (this=0x280d4c0,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f9c7c146df8 in QWaitCondition::wait (this=0x2893548,
mutex=0x2893540, time=18446744073709551615) at
thread/qwaitcondition_unix.cpp:159
#3  0x000000000060d9f0 in Digikam::ScanController::run (this=0x28ac9f0) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/digikam/scancontroller.cpp:499
#4  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x28ac9f0) at
thread/qthread_unix.cpp:188
#5  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f9c6f9ce910 (LWP 15863)):
#0  0x00007f9c7ab15426 in poll () from /lib/libc.so.6
#1  0x00007f9c7602d632 in g_main_context_iterate () from
/usr/lib/libglib-2.0.so.0
#2  0x00007f9c7602d767 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f9c7c1f3f20 in QEventDispatcherGlib::processEvents (this=0x298c2b0,
flags={i = 1872551680}) at kernel/qeventdispatcher_glib.cpp:329
#4  0x00007f9c7c1d66ad in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 1872551824}) at kernel/qeventloop.cpp:149
#5  0x00007f9c7c1d6847 in QEventLoop::exec (this=0x7f9c6f9cdfd0, flags={i =
1872551904}) at kernel/qeventloop.cpp:197
#6  0x00007f9c7c144a38 in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:487
#7  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x2d1a810) at
thread/qthread_unix.cpp:188
#8  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f9c6edb5910 (LWP 15864)):
#0  0x00007f9c7ab2b206 in pthread_mutex_unlock () from /lib/libc.so.6
#1  0x00007f9c7602b989 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#2  0x00007f9c7602d687 in g_main_context_iterate () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f9c7602d767 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#4  0x00007f9c7c1f3f20 in QEventDispatcherGlib::processEvents (this=0x2c17490,
flags={i = 1859866368}) at kernel/qeventdispatcher_glib.cpp:329
#5  0x00007f9c7c1d66ad in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 1859866512}) at kernel/qeventloop.cpp:149
#6  0x00007f9c7c1d6847 in QEventLoop::exec (this=0x7f9c6edb4fd0, flags={i =
1859866592}) at kernel/qeventloop.cpp:197
#7  0x00007f9c7c144a38 in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:487
#8  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x2c0a490) at
thread/qthread_unix.cpp:188
#9  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f9c6e534910 (LWP 15865)):
#0  0x00007f9c7a83b269 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007f9c7c1470f4 in QWaitConditionPrivate::wait (this=0x2cd9300,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f9c7c146df8 in QWaitCondition::wait (this=0x2ccf2c0,
mutex=0x2ccf2b8, time=18446744073709551615) at
thread/qwaitcondition_unix.cpp:159
#3  0x00007f9c7da6157a in Digikam::LoadSaveThread::run (this=0x2ccf2a0) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:136
#4  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x2ccf2a0) at
thread/qthread_unix.cpp:188
#5  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f9c6dd33910 (LWP 15866)):
#0  0x00007f9c7ab15426 in poll () from /lib/libc.so.6
#1  0x00007f9c7602d632 in g_main_context_iterate () from
/usr/lib/libglib-2.0.so.0
#2  0x00007f9c7602d767 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f9c7c1f3f20 in QEventDispatcherGlib::processEvents (this=0x2d0eca0,
flags={i = 1842556672}) at kernel/qeventdispatcher_glib.cpp:329
#4  0x00007f9c7c1d66ad in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 1842556816}) at kernel/qeventloop.cpp:149
#5  0x00007f9c7c1d6847 in QEventLoop::exec (this=0x7f9c6dd32fd0, flags={i =
1842556896}) at kernel/qeventloop.cpp:197
#6  0x00007f9c7c144a38 in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:487
#7  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x2c9e410) at
thread/qthread_unix.cpp:188
#8  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f9c6d532910 (LWP 15867)):
#0  0x00007f9c7a838ee1 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f9c7602d103 in g_main_context_release () from
/usr/lib/libglib-2.0.so.0
#2  0x00007f9c7602d68f in g_main_context_iterate () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f9c7602d767 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#4  0x00007f9c7c1f3f20 in QEventDispatcherGlib::processEvents (this=0x2dadbc0,
flags={i = 1834163968}) at kernel/qeventdispatcher_glib.cpp:329
#5  0x00007f9c7c1d66ad in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 1834164112}) at kernel/qeventloop.cpp:149
#6  0x00007f9c7c1d6847 in QEventLoop::exec (this=0x7f9c6d531fd0, flags={i =
1834164192}) at kernel/qeventloop.cpp:197
#7  0x00007f9c7c144a38 in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:487
#8  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x2944d70) at
thread/qthread_unix.cpp:188
#9  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f9c6cd31910 (LWP 15868)):
#0  0x00007f9c7a83b269 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007f9c7c1470f4 in QWaitConditionPrivate::wait (this=0x2cdad20,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f9c7c146df8 in QWaitCondition::wait (this=0x2c58d40,
mutex=0x2c58d38, time=18446744073709551615) at
thread/qwaitcondition_unix.cpp:159
#3  0x00007f9c7da6157a in Digikam::LoadSaveThread::run (this=0x2c58d20) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:136
#4  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x2c58d20) at
thread/qthread_unix.cpp:188
#5  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9c664a4910 (LWP 15869)):
#0  0x00007f9c7a83b4ed in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007f9c6a6edffc in metronom_sync_loop () from /usr/lib64/libxine.so.1
#2  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#3  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f9c65068910 (LWP 15870)):
#0  0x00007f9c7ab177a2 in select () from /lib/libc.so.6
#1  0x00007f9c6a70c947 in xine_usec_sleep () from /usr/lib64/libxine.so.1
#2  0x00007f9c6a6f863d in video_out_loop () from /usr/lib64/libxine.so.1
#3  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f9c64867910 (LWP 15871)):
#0  0x00007f9c7a838eee in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f9c7602cde7 in g_main_context_prepare () from
/usr/lib/libglib-2.0.so.0
#2  0x00007f9c7602d4c5 in g_main_context_iterate () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f9c7602d767 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#4  0x00007f9c7c1f3f20 in QEventDispatcherGlib::processEvents (this=0x28f76e0,
flags={i = 1686531840}) at kernel/qeventdispatcher_glib.cpp:329
#5  0x00007f9c7c1d66ad in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 1686531904}) at kernel/qeventloop.cpp:149
#6  0x00007f9c7c1d6847 in QEventLoop::exec (this=0x7f9c64866f80, flags={i =
1686531984}) at kernel/qeventloop.cpp:197
#7  0x00007f9c7c144a38 in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:487
#8  0x00007f9c6a93d491 in Phonon::Xine::XineThread::run () from
/usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x28eeae0) at
thread/qthread_unix.cpp:188
#10 0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9c63e5d910 (LWP 15874)):
#0  0x00007f9c7ab15426 in poll () from /lib/libc.so.6
#1  0x00007f9c63e6269c in ao_alsa_handle_event_thread () from
/usr/lib64/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#3  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9c6365c910 (LWP 15875)):
#0  0x00007f9c7a83b269 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007f9c6a6f9515 in fifo_peek_int () from /usr/lib64/libxine.so.1
#2  0x00007f9c6a6fb679 in ao_loop () from /usr/lib64/libxine.so.1
#3  0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9c62e5b910 (LWP 15876)):
[KCrash Handler]
#5  0x00007f9c7aa7e645 in raise () from /lib/libc.so.6
#6  0x00007f9c7aa7fb63 in abort () from /lib/libc.so.6
#7  0x00007f9c7aabaac8 in __libc_message () from /lib/libc.so.6
#8  0x00007f9c7aac0258 in malloc_printerr () from /lib/libc.so.6
#9  0x00007f9c6fdf731d in sqlite3_free () from /usr/lib/libsqlite3.so.0
#10 0x00007f9c6fe27acc in sqlite3Parser () from /usr/lib/libsqlite3.so.0
#11 0x00007f9c6fe2a6f8 in sqlite3RunParser () from /usr/lib/libsqlite3.so.0
#12 0x00007f9c6fe2ac86 in sqlite3Prepare () from /usr/lib/libsqlite3.so.0
#13 0x00007f9c6fe2afab in sqlite3LockAndPrepare () from
/usr/lib/libsqlite3.so.0
#14 0x00007f9c6fe2b018 in sqlite3Prepare16 () from /usr/lib/libsqlite3.so.0
#15 0x00007f9c7005982e in QSQLiteResult::prepare (this=0x386df70,
query=@0x45a1ef0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:319
#16 0x00007f9c7e6e85ae in QSqlResult::savePrepare (this=0x386df70,
query=@0x7f9c62e5a9c0) at kernel/qsqlresult.cpp:587
#17 0x00007f9c7e6e075d in QSqlQuery::prepare (this=0x7f9c62e5a970,
query=@0x7f9c62e5a9c0) at kernel/qsqlquery.cpp:916
#18 0x00007f9c7da122c5 in Digikam::DatabaseCoreBackend::prepareQuery
(this=<value optimized out>, sql=@0x7f9c62e5a9c0)
    at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/database/databasecorebackend.cpp:485
#19 0x00007f9c7da12a94 in Digikam::DatabaseCoreBackend::execQuery (this=0x3e04,
sql=@0x6, boundValue1=@0xffffffffffffffff)
    at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/database/databasecorebackend.cpp:355
#20 0x00007f9c7da12b0b in Digikam::DatabaseCoreBackend::execSql
(this=0x2944a40, sql=<value optimized out>, boundValue1=<value optimized out>,
values=0x7f9c62e5a9d0, lastInsertId=0x0)
    at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/database/databasecorebackend.cpp:286
#21 0x00007f9c7da16590 in Digikam::ThumbnailDB::findByFilePath (this=0x2902bd0,
path=@0x7f9c62e5ac20) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/database/thumbnaildb.cpp:124
#22 0x00007f9c7da6e619 in Digikam::ThumbnailCreator::loadFromDatabase
(this=0x36c1300, info=@0x7f9c62e5ac20)
    at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/thumbnailcreator.cpp:570
#23 0x00007f9c7da6ffc7 in Digikam::ThumbnailCreator::load (this=0x36c1300,
path=@0x4827948) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/thumbnailcreator.cpp:185
#24 0x00007f9c7da745dc in Digikam::ThumbnailLoadingTask::execute
(this=0x4827930) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/thumbnailtask.cpp:133
#25 0x00007f9c7da615a6 in Digikam::LoadSaveThread::run (this=0x36c0c90) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:139
#26 0x00007f9c7c146b42 in QThreadPrivate::start (arg=0x36c0c90) at
thread/qthread_unix.cpp:188
#27 0x00007f9c7a8372d7 in start_thread () from /lib64/libpthread.so.0
#28 0x00007f9c7ab1e38d in clone () from /lib/libc.so.6
#29 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9c8025f740 (LWP 15859)):
#0  0x00007f9c7a83b269 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007f9c7c1470f4 in QWaitConditionPrivate::wait (this=0x36c0dc0,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f9c7c146df8 in QWaitCondition::wait (this=0x36c0da0,
mutex=0x36c0d80, time=18446744073709551615) at
thread/qwaitcondition_unix.cpp:159
#3  0x00007f9c7c14632e in QThread::wait (this=<value optimized out>,
time=18446744073709551615) at thread/qthread_unix.cpp:484
#4  0x00007f9c7da61772 in Digikam::LoadSaveThread::shutdownThread
(this=0x36c0c90) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:91
#5  0x00007f9c7da71e06 in ~ThumbnailLoadThread (this=0x36c0dec) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/libs/threadimageio/thumbnailloadthread.cpp:146
#6  0x00007f9c7aa81225 in __run_exit_handlers () from /lib/libc.so.6
#7  0x00007f9c7aa81285 in exit () from /lib/libc.so.6
#8  0x00007f9c7b72a5ac in qt_xio_errhandler () at
kernel/qapplication_x11.cpp:707
#9  0x00007f9c7cd1c0aa in KApplication::xioErrhandler (this=0x7fff11050e90,
dpy=0x27633f0) at
/var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:408
#10 0x00007f9c799e34c6 in _XIOError () from /usr/lib64/libX11.so.6
#11 0x00007f9c799e937d in process_responses () from /usr/lib64/libX11.so.6
#12 0x00007f9c799e9a7f in _XEventsQueued () from /usr/lib64/libX11.so.6
#13 0x00007f9c799d79a2 in XEventsQueued () from /usr/lib64/libX11.so.6
#14 0x00007f9c7b74efdd in x11EventSourceCheck (s=0x27615c0) at
kernel/qguieventdispatcher_glib.cpp:87
#15 0x00007f9c7602bc86 in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
#16 0x00007f9c7602d676 in g_main_context_iterate () from
/usr/lib/libglib-2.0.so.0
#17 0x00007f9c7602d767 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#18 0x00007f9c7c1f3f20 in QEventDispatcherGlib::processEvents (this=0x275daf0,
flags={i = 285543680}) at kernel/qeventdispatcher_glib.cpp:329
#19 0x00007f9c7b74eeb6 in QGuiEventDispatcherGlib::processEvents
(this=0x36c0dec, flags=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:202
#20 0x00007f9c7c1d66ad in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 285543776}) at kernel/qeventloop.cpp:149
#21 0x00007f9c7c1d6847 in QEventLoop::exec (this=0x7fff11050da0, flags={i =
285543856}) at kernel/qeventloop.cpp:197
#22 0x00007f9c7c1d8a9c in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:888
#23 0x0000000000669bda in main (argc=<value optimized out>, argv=<value
optimized out>) at
/var/tmp/paludis/media-gfx-digikam-9999/work/digikam-9999/digikam/main.cpp:186

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list