Bug 284447

Summary: Digikam crashes when connecting to USB Camera
Product: [Applications] digikam Reporter: jlt_kde
Component: Import-Gphoto2Assignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.2.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 8.1.0
Sentry Crash Report:

Description jlt_kde 2011-10-19 10:57:43 UTC
Application: digikam (2.2.0)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.6+ x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
Clink on Import Images with a USB MTP Camera connected.  Digikam immediately crashes.  The crash is reproducible.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Aborted
[Current thread is 1 (Thread 0x7f9d66605a20 (LWP 11666))]

Thread 6 (Thread 0x7f9d4569a700 (LWP 11667)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9d60afa1ab in wait (time=18446744073709551615, this=0x27b1cf0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x27b1b98, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005c7ba0 in Digikam::ScanController::run (this=0x27d39e0) at /build/buildd/digikam-2.2.0/core/digikam/database/scancontroller.cpp:647
#4  0x00007f9d60af9d05 in QThreadPrivate::start (arg=0x27d39e0) at thread/qthread_unix.cpp:331
#5  0x00007f9d5b720efc in start_thread (arg=0x7f9d4569a700) at pthread_create.c:304
#6  0x00007f9d5fd9c89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f9d44e99700 (LWP 11668)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f9d5fd399df in _L_lock_10501 () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f9d5fd37d71 in __GI___libc_free (mem=0x7f9d600551c0) at malloc.c:3736
#3  0x00007f9d60c0b665 in socketNotifierSourceCheck (source=0x2832210) at kernel/qeventdispatcher_glib.cpp:92
#4  0x00007f9d591ab734 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9d591abf82 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f9d591ac429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9d60c0bed6 in QEventDispatcherGlib::processEvents (this=0x2831660, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#8  0x00007f9d60bdfcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#9  0x00007f9d60bdfef7 in QEventLoop::exec (this=0x7f9d44e98b30, flags=...) at kernel/qeventloop.cpp:201
#10 0x00007f9d60af727f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#11 0x00007f9d60bc2cbf in QInotifyFileSystemWatcherEngine::run (this=0x27c1920) at io/qfilesystemwatcher_inotify.cpp:248
#12 0x00007f9d60af9d05 in QThreadPrivate::start (arg=0x27c1920) at thread/qthread_unix.cpp:331
#13 0x00007f9d5b720efc in start_thread (arg=0x7f9d44e99700) at pthread_create.c:304
#14 0x00007f9d5fd9c89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9d3ffff700 (LWP 11670)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9d60afa1ab in wait (time=18446744073709551615, this=0x2b54db0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2b54938, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9d63ec7d17 in Digikam::ParkingThread::run (this=0x2b54920) at /build/buildd/digikam-2.2.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f9d60af9d05 in QThreadPrivate::start (arg=0x2b54920) at thread/qthread_unix.cpp:331
#5  0x00007f9d5b720efc in start_thread (arg=0x7f9d3ffff700) at pthread_create.c:304
#6  0x00007f9d5fd9c89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9d3dab3700 (LWP 11671)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f9d5fd399df in _L_lock_10501 () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f9d5fd37d71 in __GI___libc_free (mem=0x7f9d600551c0) at malloc.c:3736
#3  0x00007f9d60c0b665 in socketNotifierSourceCheck (source=0x2f73c00) at kernel/qeventdispatcher_glib.cpp:92
#4  0x00007f9d591ab734 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9d591abf82 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f9d591ac429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9d60c0bed6 in QEventDispatcherGlib::processEvents (this=0x2f72be0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#8  0x00007f9d60bdfcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#9  0x00007f9d60bdfef7 in QEventLoop::exec (this=0x7f9d3dab2b30, flags=...) at kernel/qeventloop.cpp:201
#10 0x00007f9d60af727f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#11 0x00007f9d60bc2cbf in QInotifyFileSystemWatcherEngine::run (this=0x2f71e70) at io/qfilesystemwatcher_inotify.cpp:248
#12 0x00007f9d60af9d05 in QThreadPrivate::start (arg=0x2f71e70) at thread/qthread_unix.cpp:331
#13 0x00007f9d5b720efc in start_thread (arg=0x7f9d3dab3700) at pthread_create.c:304
#14 0x00007f9d5fd9c89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9d312c8700 (LWP 11681)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007f9d60afa11e in wait (time=30000, this=0x4055780) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x403e440, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9d60aee81f in QThreadPoolThread::run (this=0x413c400) at concurrent/qthreadpool.cpp:140
#4  0x00007f9d60af9d05 in QThreadPrivate::start (arg=0x413c400) at thread/qthread_unix.cpp:331
#5  0x00007f9d5b720efc in start_thread (arg=0x7f9d312c8700) at pthread_create.c:304
#6  0x00007f9d5fd9c89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9d66605a20 (LWP 11666)):
[KCrash Handler]
#6  0x00007f9d5fcf13a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f9d5fcf4b0b in __GI_abort () at abort.c:92
#8  0x00007f9d5fd29113 in __libc_message (do_abort=2, fmt=0x7f9d5fe1a0d8 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f9d5fd33a96 in malloc_printerr (action=3, str=0x7f9d5fe17207 "realloc(): invalid next size", ptr=<optimized out>) at malloc.c:6283
#10 0x00007f9d5fd36797 in _int_realloc (av=0x7f9d600551c0, oldp=0x59c0e00, oldsize=10416, nb=<optimized out>) at malloc.c:5238
#11 0x00007f9d5fd37ee9 in __GI___libc_realloc (oldmem=0x59c0e10, bytes=11560) at malloc.c:3821
#12 0x00007f9d6358b2be in gp_port_info_list_append () from /usr/lib/libgphoto2_port.so.0
#13 0x00007f9d27dcfb00 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#14 0x00007f9d6358b048 in ?? () from /usr/lib/libgphoto2_port.so.0
#15 0x00007f9d5b0e17b1 in ?? () from /usr/lib/libltdl.so.7
#16 0x00007f9d5b0e0d8f in ?? () from /usr/lib/libltdl.so.7
#17 0x00007f9d5b0e1df8 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#18 0x00007f9d6358b45d in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#19 0x000000000075b8c8 in Digikam::GPCamera::findConnectedUsbCamera (vendorId=1193, productId=12821, model=..., port=...) at /build/buildd/digikam-2.2.0/core/utilities/cameragui/devices/gpcamera.cpp:1772
#20 0x00000000005778e0 in Digikam::DigikamApp::openSolidCamera (this=0x2887da0, udi=..., cameraLabel=...) at /build/buildd/digikam-2.2.0/core/digikam/main/digikamapp.cpp:1951
#21 0x00000000005781f8 in Digikam::DigikamApp::slotOpenSolidCamera (this=0x2887da0, action=0x2e80100) at /build/buildd/digikam-2.2.0/core/digikam/main/digikamapp.cpp:1898
#22 0x000000000057e5d4 in Digikam::DigikamApp::qt_metacall (this=0x2887da0, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0x7fffca4842e0) at /build/buildd/digikam-2.2.0/obj-x86_64-linux-gnu/core/digikam/digikamapp.moc:260
#23 0x00007f9d60bf3eba in QMetaObject::activate (sender=0x3c12b30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffca4842e0) at kernel/qobject.cpp:3278
#24 0x00007f9d615dd83f in QActionGroup::triggered (this=<optimized out>, _t1=0x2e80100) at .moc/release-shared/moc_qactiongroup.cpp:146
#25 0x00007f9d615dd8c7 in QActionGroupPrivate::_q_actionTriggered (this=<optimized out>) at kernel/qactiongroup.cpp:93
#26 0x00007f9d615ddb81 in QActionGroup::qt_metacall (this=0x3c12b30, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fffca484410) at .moc/release-shared/moc_qactiongroup.cpp:101
#27 0x00007f9d60bf3eba in QMetaObject::activate (sender=0x2e80100, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffca484410) at kernel/qobject.cpp:3278
#28 0x00007f9d615dab62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#29 0x00007f9d615dad4f in QAction::activate (this=0x2e80100, event=<optimized out>) at kernel/qaction.cpp:1257
#30 0x00007f9d61a15609 in QMenuPrivate::activateCausedStack (this=0x3e88960, causedStack=..., action=0x2e80100, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1005
#31 0x00007f9d61a1b252 in QMenuPrivate::activateAction (this=0x3e88960, action=0x2e80100, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1097
#32 0x00007f9d623b6cb0 in KMenu::mouseReleaseEvent (this=0x3e88870, e=0x7fffca484e20) at ../../kdeui/widgets/kmenu.cpp:464
#33 0x00007f9d61631c9a in QWidget::event (this=0x3e88870, event=0x7fffca484e20) at kernel/qwidget.cpp:8295
#34 0x00007f9d61a1c7fb in QMenu::event (this=0x3e88870, e=0x7fffca484e20) at widgets/qmenu.cpp:2405
#35 0x00007f9d615e1424 in notify_helper (e=0x7fffca484e20, receiver=0x3e88870, this=0x2637870) at kernel/qapplication.cpp:4486
#36 QApplicationPrivate::notify_helper (this=0x2637870, receiver=0x3e88870, e=0x7fffca484e20) at kernel/qapplication.cpp:4458
#37 0x00007f9d615e6c6b in QApplication::notify (this=<optimized out>, receiver=0x3e88870, e=0x7fffca484e20) at kernel/qapplication.cpp:4047
#38 0x00007f9d622f5126 in KApplication::notify (this=0x7fffca4871f0, receiver=0x3e88870, event=0x7fffca484e20) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007f9d60be0afc in QCoreApplication::notifyInternal (this=0x7fffca4871f0, receiver=0x3e88870, event=0x7fffca484e20) at kernel/qcoreapplication.cpp:787
#40 0x00007f9d615e23f2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#41 QApplicationPrivate::sendMouseEvent (receiver=0x3e88870, event=0x7fffca484e20, alienWidget=0x0, nativeWidget=0x3e88870, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#42 0x00007f9d61662001 in QETWidget::translateMouseEvent (this=0x3e88870, event=<optimized out>) at kernel/qapplication_x11.cpp:4502
#43 0x00007f9d616608be in QApplication::x11ProcessEvent (this=0x7fffca4871f0, event=0x7fffca485640) at kernel/qapplication_x11.cpp:3690
#44 0x00007f9d61689412 in x11EventSourceDispatch (s=0x263dd60, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x00007f9d591aba5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f9d591ac258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f9d591ac429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f9d60c0bed6 in QEventDispatcherGlib::processEvents (this=0x2635ed0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#49 0x00007f9d6168907e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f9d60bdfcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007f9d60bdfef7 in QEventLoop::exec (this=0x7fffca485a10, flags=...) at kernel/qeventloop.cpp:201
#52 0x00007f9d61a18711 in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2049
#53 0x00007f9d61a581b4 in QToolButtonPrivate::popupTimerDone (this=0x3f23910) at widgets/qtoolbutton.cpp:955
#54 0x00007f9d61a58961 in QToolButton::qt_metacall (this=0x3f229b0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffca485c90) at .moc/release-shared/moc_qtoolbutton.cpp:114
#55 0x00007f9d60bf3eba in QMetaObject::activate (sender=0x3f229b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#56 0x00007f9d619981d1 in QAbstractButtonPrivate::emitPressed (this=<optimized out>) at widgets/qabstractbutton.cpp:560
#57 0x00007f9d61998c0c in QAbstractButton::mousePressEvent (this=0x3f229b0, e=0x7fffca486480) at widgets/qabstractbutton.cpp:1096
#58 0x00007f9d61a58ab1 in QToolButton::mousePressEvent (this=0x3f229b0, e=0x7fffca486480) at widgets/qtoolbutton.cpp:712
#59 0x00007f9d61631f79 in QWidget::event (this=0x3f229b0, event=0x7fffca486480) at kernel/qwidget.cpp:8291
#60 0x00007f9d615e1424 in notify_helper (e=0x7fffca486480, receiver=0x3f229b0, this=0x2637870) at kernel/qapplication.cpp:4486
#61 QApplicationPrivate::notify_helper (this=0x2637870, receiver=0x3f229b0, e=0x7fffca486480) at kernel/qapplication.cpp:4458
#62 0x00007f9d615e6c6b in QApplication::notify (this=<optimized out>, receiver=0x3f229b0, e=0x7fffca486480) at kernel/qapplication.cpp:4047
#63 0x00007f9d622f5126 in KApplication::notify (this=0x7fffca4871f0, receiver=0x3f229b0, event=0x7fffca486480) at ../../kdeui/kernel/kapplication.cpp:311
#64 0x00007f9d60be0afc in QCoreApplication::notifyInternal (this=0x7fffca4871f0, receiver=0x3f229b0, event=0x7fffca486480) at kernel/qcoreapplication.cpp:787
#65 0x00007f9d615e23f2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#66 QApplicationPrivate::sendMouseEvent (receiver=0x3f229b0, event=0x7fffca486480, alienWidget=0x3f229b0, nativeWidget=0x2edc3a0, buttonDown=0x3f229b0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#67 0x00007f9d61661945 in QETWidget::translateMouseEvent (this=0x2edc3a0, event=<optimized out>) at kernel/qapplication_x11.cpp:4568
#68 0x00007f9d616608be in QApplication::x11ProcessEvent (this=0x7fffca4871f0, event=0x7fffca486ca0) at kernel/qapplication_x11.cpp:3690
#69 0x00007f9d61689412 in x11EventSourceDispatch (s=0x263dd60, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#70 0x00007f9d591aba5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00007f9d591ac258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#72 0x00007f9d591ac429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#73 0x00007f9d60c0bed6 in QEventDispatcherGlib::processEvents (this=0x2635ed0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#74 0x00007f9d6168907e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#75 0x00007f9d60bdfcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#76 0x00007f9d60bdfef7 in QEventLoop::exec (this=0x7fffca487070, flags=...) at kernel/qeventloop.cpp:201
#77 0x00007f9d60be4789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#78 0x000000000048b22d in main (argc=1, argv=<optimized out>) at /build/buildd/digikam-2.2.0/core/digikam/main/main.cpp:232

Possible duplicates by query: bug 283789, bug 275298, bug 257248, bug 257160, bug 250470.

Reported using DrKonqi
Comment 1 caulier.gilles 2011-10-19 11:03:51 UTC

*** This bug has been marked as a duplicate of bug 268267 ***
Comment 2 caulier.gilles 2023-05-05 05:36:28 UTC
Fixed with #268267