Bug 280934

Summary: Program crashed after rename of files outside of digikam
Product: [Applications] digikam Reporter: Frederic Grelot <fredericg_99>
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.1.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Sentry Crash Report:

Description Frederic Grelot 2011-08-28 15:07:23 UTC
Application: digikam (2.1.0)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.3
Operating System: Linux 3.0.1-3.fc16.x86_64 x86_64
Distribution: "Fedora release 15 (Lovelock)"

-- Information about the crash:
- What I was doing when the application crashed:
Digikam was opened on an album, and I wanted to rename all extension to lowercase
I used the following bash lines (It's ugly, I know, I should have closed digikam...) :
for i in *.JPG; do mv $i ${i%%.JPG}.jpg; done
for i in *.JPG.xmp; do mv $i ${i%%.JPG.xmp}.jpg.xmp; done

After the first one was issued, digikam crashed

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

Thread 10 (Thread 0x7f7d6fdcd700 (LWP 6911)):
#0  0x0000003126ed7423 in poll () from /lib64/libc.so.6
#1  0x0000003128a42d24 in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003128a4360d in g_main_loop_run () from /lib64/libglib-2.0.so.0
#3  0x00000031306b4564 in ?? () from /lib64/libgio-2.0.so.0
#4  0x0000003128a683a6 in ?? () from /lib64/libglib-2.0.so.0
#5  0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#6  0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f7d6438d700 (LWP 6915)):
#0  0x000000312720b4b5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003133e73153 in ?? () from /usr/lib64/libQtCore.so.4
#2  0x0000003133e6f7f5 in QMutex::lock() () from /usr/lib64/libQtCore.so.4
#3  0x00007f7d76bf6988 in Digikam::DatabaseAccess::DatabaseAccess (this=<optimized out>) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/databaseaccess.cpp:100
#4  0x00007f7d76c4278a in Digikam::ImageScanner::uniqueHash (this=0x7f7d6438c550) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/imagescanner.cpp:1170
#5  0x00007f7d76c429ca in Digikam::ImageScanner::prepareImage (this=0x7f7d6438c550) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/imagescanner.cpp:227
#6  0x00007f7d76c42af7 in Digikam::ImageScanner::addImage (this=0x7f7d6438c550, albumId=349) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/imagescanner.cpp:232
#7  0x00007f7d76c4a0e2 in Digikam::ImageScanner::newFile (this=0x7f7d6438c550, albumId=349) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/imagescanner.cpp:105
#8  0x00007f7d76be2b0c in Digikam::CollectionScanner::scanNewFile (this=0x7f7d6438cac0, info=..., albumId=349) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/collectionscanner.cpp:1049
#9  0x00007f7d76be614a in Digikam::CollectionScanner::scanAlbum (this=0x7f7d6438cac0, location=..., album=...) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/collectionscanner.cpp:900
#10 0x00007f7d76be76c4 in Digikam::CollectionScanner::partialScan (this=0x7f7d6438cac0, albumRoot=<optimized out>, album=...) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/collectionscanner.cpp:520
#11 0x00007f7d76be7ae4 in Digikam::CollectionScanner::partialScan (this=0x7f7d6438cac0, filePath=...) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/collectionscanner.cpp:452
#12 0x00000000005c221c in Digikam::ScanController::run (this=0x2c34700) at /raid/home/goulou/digikam/digikam-sc/core/digikam/database/scancontroller.cpp:725
#13 0x0000003133e74145 in ?? () from /usr/lib64/libQtCore.so.4
#14 0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#15 0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f7d63b8c700 (LWP 6937)):
#0  0x000000312720b4b5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003133e745db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f7d772b6687 in Digikam::ParkingThread::run (this=0x2dbe750) at /raid/home/goulou/digikam/digikam-sc/core/libs/threads/threadmanager.cpp:119
#3  0x0000003133e74145 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#5  0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f7d4c797700 (LWP 10170)):
#0  0x000000312720b4b5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003133e73153 in ?? () from /usr/lib64/libQtCore.so.4
#2  0x0000003133e6f7f5 in QMutex::lock() () from /usr/lib64/libQtCore.so.4
#3  0x00007f7d76bf6988 in Digikam::DatabaseAccess::DatabaseAccess (this=<optimized out>) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/databaseaccess.cpp:100
#4  0x00007f7d76c159b5 in Digikam::ImageInfo::ImageInfo (this=0x7f7d4c796450, url=...) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/imageinfo.cpp:171
#5  0x00007f7d76c063bd in Digikam::DatabaseThumbnailInfoProvider::thumbnailInfo (this=<optimized out>, path=...) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/databasethumbnailinfoprovider.cpp:45
#6  0x00007f7d7728fe0e in Digikam::ThumbnailCreator::makeThumbnailInfo (this=0x2e04070, path=..., rect=...) at /raid/home/goulou/digikam/digikam-sc/core/libs/threadimageio/thumbnailcreator.cpp:345
#7  0x00007f7d7729358c in Digikam::ThumbnailCreator::load (this=0x2e04070, path=..., rect=..., pregenerate=true) at /raid/home/goulou/digikam/digikam-sc/core/libs/threadimageio/thumbnailcreator.cpp:225
#8  0x00007f7d772949dd in Digikam::ThumbnailCreator::pregenerate (this=<optimized out>, path=<optimized out>) at /raid/home/goulou/digikam/digikam-sc/core/libs/threadimageio/thumbnailcreator.cpp:180
#9  0x00007f7d772a39d0 in Digikam::ThumbnailLoadingTask::execute (this=0x467ecb0) at /raid/home/goulou/digikam/digikam-sc/core/libs/threadimageio/thumbnailtask.cpp:79
#10 0x00007f7d77273c96 in Digikam::LoadSaveThread::run (this=0x2dff9a0) at /raid/home/goulou/digikam/digikam-sc/core/libs/threadimageio/loadsavethread.cpp:118
#11 0x00007f7d772b7d7e in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x2e09b60) at /raid/home/goulou/digikam/digikam-sc/core/libs/threads/dynamicthread.cpp:328
#12 0x0000003133e68e55 in ?? () from /usr/lib64/libQtCore.so.4
#13 0x0000003133e74145 in ?? () from /usr/lib64/libQtCore.so.4
#14 0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#15 0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f7d1e53d700 (LWP 10175)):
#0  0x000000313e6094d6 in ?? () from /usr/lib64/libgomp.so.1
#1  0x000000313e607ffe in ?? () from /usr/lib64/libgomp.so.1
#2  0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#3  0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f7d3df7c700 (LWP 10190)):
#0  0x0000003126ed7423 in poll () from /lib64/libc.so.6
#1  0x0000003128a42d24 in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003128a4325c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x0000003133f84d76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x0000003133f596c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x0000003133f598bf in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f7d772b5d21 in Digikam::WorkerObjectRunnable::run (this=0x3409280) at /raid/home/goulou/digikam/digikam-sc/core/libs/threads/threadmanager.cpp:196
#7  0x0000003133e68e55 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x0000003133e74145 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f7d1cd3a700 (LWP 10191)):
#0  0x00000031272099d1 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x0000003128a43244 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#2  0x0000003133f84d76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#3  0x0000003133f596c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x0000003133f598bf in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f7d772b5d21 in Digikam::WorkerObjectRunnable::run (this=0x46cf4b0) at /raid/home/goulou/digikam/digikam-sc/core/libs/threads/threadmanager.cpp:196
#6  0x0000003133e68e55 in ?? () from /usr/lib64/libQtCore.so.4
#7  0x0000003133e74145 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f7d3e77d700 (LWP 10237)):
#0  0x000000313e6094d6 in ?? () from /usr/lib64/libgomp.so.1
#1  0x000000313e607ffe in ?? () from /usr/lib64/libgomp.so.1
#2  0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#3  0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f7d3d77b700 (LWP 10241)):
#0  0x000000313e6094d6 in ?? () from /usr/lib64/libgomp.so.1
#1  0x000000313e607ffe in ?? () from /usr/lib64/libgomp.so.1
#2  0x0000003127207b31 in start_thread () from /lib64/libpthread.so.0
#3  0x0000003126edfd2d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f7d76b15a40 (LWP 6903)):
[KCrash Handler]
#6  0x0000003126f2d405 in __memcpy_ssse3 () from /lib64/libc.so.6
#7  0x00007f7d76c136dd in appendTo (out=) at /usr/include/QtCore/qstringbuilder.h:214
#8  appendTo (out=) at /usr/include/QtCore/qstringbuilder.h:293
#9  operator QString (this=<optimized out>) at /usr/include/QtCore/qstringbuilder.h:108
#10 Digikam::ImageInfo::filePath (this=<optimized out>) at /raid/home/goulou/digikam/digikam-sc/core/libs/database/imageinfo.cpp:658
#11 0x00007f7d76ca4935 in Digikam::ImageModel::publiciseInfos (this=0x2dbbfc0, infos=..., extraValues=<optimized out>) at /raid/home/goulou/digikam/digikam-sc/core/libs/models/imagemodel.cpp:664
#12 0x00007f7d76ca4c76 in Digikam::ImageModel::qt_metacall (this=0x2dbbfc0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff15dfc060) at /raid/home/goulou/digikam/digikam-sc/build/core/digikam/imagemodel.moc:113
#13 0x00007f7d76cb7420 in Digikam::ImageThumbnailModel::qt_metacall (this=0x2dbbfc0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff15dfc060) at /raid/home/goulou/digikam/digikam-sc/build/core/digikam/imagethumbnailmodel.moc:86
#14 0x000000000055b010 in Digikam::ImageAlbumModel::qt_metacall (this=0x2dbbfc0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff15dfc060) at /raid/home/goulou/digikam/digikam-sc/build/core/digikam/imagealbummodel.moc:104
#15 0x0000003133f6ceba in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#16 0x00007f7d76ca961a in Digikam::ImageFilterModel::ImageFilterModelPrivate::reAddImageInfos (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /raid/home/goulou/digikam/digikam-sc/build/core/digikam/imagefiltermodelpriv.moc:123
#17 0x00007f7d76cad6f1 in Digikam::ImageFilterModel::ImageFilterModelPrivate::packageFinished (this=0x2dbe150, package=...) at /raid/home/goulou/digikam/digikam-sc/core/libs/models/imagefiltermodel.cpp:401
#18 0x00007f7d76cad820 in Digikam::ImageFilterModel::ImageFilterModelPrivate::qt_metacall (this=0x2dbe150, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7f7d2c00a610) at /raid/home/goulou/digikam/digikam-sc/build/core/digikam/imagefiltermodelpriv.moc:96
#19 0x0000003133f70a7a in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#20 0x00000038c73b7444 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00000038c73bc2d1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#22 0x0000003a35c41d56 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#23 0x0000003133f5a1ac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#24 0x0000003133f5d774 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#25 0x0000003133f848b3 in ?? () from /usr/lib64/libQtCore.so.4
#26 0x0000003128a427ed in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#27 0x0000003128a42fc8 in ?? () from /lib64/libglib-2.0.so.0
#28 0x0000003128a4325c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#29 0x0000003133f84d0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#30 0x00000038c7459fde in ?? () from /usr/lib64/libQtGui.so.4
#31 0x0000003133f596c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#32 0x0000003133f598bf in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#33 0x0000003133f5da07 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#34 0x0000000000489f6d in main (argc=5, argv=<optimized out>) at /raid/home/goulou/digikam/digikam-sc/core/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 caulier.gilles 2011-08-28 18:08:15 UTC

*** This bug has been marked as a duplicate of bug 280210 ***
Comment 2 caulier.gilles 2022-01-28 21:55:34 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=280210