Version: (using KDE KDE 3.3.0) Installed from: Compiled From Sources Compiler: GCC 3.3.4 OS: Linux When I click the button to add a digital camera in the KControl camera peripheral module, KControl crashes with a SIGSEGV. This is the backtrace from the KDE crash handler. Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 7568)] 0x412b6658 in waitpid () from /lib/libpthread.so.0 #0 0x412b6658 in waitpid () from /lib/libpthread.so.0 #1 0x40878100 in ?? () from /usr/kde/3.3/lib/libkdecore.so.4 #2 0x40794aae in KCrash::defaultCrashHandler () from /usr/kde/3.3/lib/libkdecore.so.4 #3 0x08055070 in ?? () #4 0x01878100 in ?? () #5 0xbfffdd20 in ?? () #6 0xbfffdd50 in ?? () #7 0x00000000 in ?? () #8 0x40827db4 in free () from /usr/kde/3.3/lib/libkdecore.so.4 #9 0xbfffd8dc in ?? () #10 0xbfffdb40 in ?? () #11 0x00001ddc in ?? () #12 0x00000400 in ?? () #13 0x00000400 in ?? () #14 0x00000000 in ?? () #15 0x00000002 in ?? () #16 0x0000000b in ?? () #17 0x0000000c in ?? () #18 0xbfffd8f8 in ?? () #19 0x41480cc5 in closedir () from /lib/libc.so.6
Oops, forgot to add a bit of additional information. I'm running Gentoo on the Gentoo 2.6.7 sources. GCC version 3.3.4 and Glibc version 2.3.4.20040808.
the stacktrace is useless ;(
Oh.. dang. Hm.. any idea of how I could find some sort of useful information?
kamera issue, not a digikam one.
Am Samstag 14 August 2004 12:51 schrieb Renchi Raju: > ------- kamera issue, not a digikam one. Ah, sorry. I mixed these. Greetings, Stephan
Is there anything I can do to provide any useful information about the crash?
what camera did you add?
I get the exact same crash. As soon as I click the "add camera" button, I get a segfault with the stack trace below. This is on KDE 3.5.1, Debian. The crash appears to happen in KameraDeviceSelectDialog::load (). Interestingly, when I run digikam I can't get it to auto-detect my camera, and when I try to add the camera manually, the list of supported cameras is empty. However, gphoto2 --auto-detect works perfectly fine. (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1232386368 (LWP 5403)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [KCrash handler] #6 0xb6025636 in KameraDeviceSelectDialog::load () from /usr/lib/kde3/kcm_kamera.so #7 0xb6026329 in KameraDeviceSelectDialog::KameraDeviceSelectDialog () from /usr/lib/kde3/kcm_kamera.so #8 0xb6026419 in KKameraConfig::slot_addCamera () from /usr/lib/kde3/kcm_kamera.so #9 0xb602869d in KKameraConfig::qt_invoke () from /usr/lib/kde3/kcm_kamera.so #10 0xb721a7ff in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #11 0xb721b290 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #12 0xb6c56dd9 in KAction::activated () from /usr/lib/libkdeui.so.4 #13 0xb6c90f91 in KAction::slotActivated () from /usr/lib/libkdeui.so.4 #14 0xb6c90f2d in KAction::slotButtonClicked () from /usr/lib/libkdeui.so.4 #15 0xb6cb0356 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4 #16 0xb721a7ff in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #17 0xb6c98e4f in KToolBarButton::buttonClicked () from /usr/lib/libkdeui.so.4 #18 0xb6c99050 in KToolBarButton::mouseReleaseEvent () from /usr/lib/libkdeui.so.4 #19 0xb7254f00 in QWidget::event () from /usr/lib/libqt-mt.so.3 #20 0xb6cf5771 in KToolBarButton::event () from /usr/lib/libkdeui.so.4 #21 0xb71b1122 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 #22 0xb71b169d in QApplication::notify () from /usr/lib/libqt-mt.so.3 #23 0xb7881fde in KApplication::notify () from /usr/lib/libkdecore.so.4 #24 0xb71428cf in QApplication::sendSpontaneousEvent () from /usr/lib/libqt-mt.so.3 #25 0xb713e004 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3 #26 0xb713c4f4 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3 #27 0xb7155ade in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #28 0xb71c9b01 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #29 0xb71c9a26 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #30 0xb71afc35 in QApplication::exec () from /usr/lib/libqt-mt.so.3 #31 0xb6878dbb in kdemain () from /usr/lib/libkdeinit_kcontrol.so #32 0xb7f0f524 in kdeinitmain () from /usr/lib/kde3/kcontrol.so #33 0x0804e1d6 in ?? () #34 0x00000007 in ?? () #35 0x08097220 in ?? () #36 0x00000001 in ?? () #37 0x00000000 in ?? ()
After poking around the code a bit, the trouble might be related to these two lines from load(): QString path = m_device->path(); QString port = path.left(path.find(":")).lower(); If I've traced through the code correctly, m_device was initialized to have a null path (back in KKameraConfig::slot_addCamera), and its path is never changed. Surely this is causing a null pointer deref...
*** Bug 40063 has been marked as a duplicate of this bug. ***
This crash is from the KDE 3 version, which is no longer maintained. If you are experience crashes with the KDE 4 version, please attach an updated backtrace or report a new bug. Regarding comment #9, the code is still the same in KDE 4, but it does not crash, because Qt 4 handles null QString same as empty QString (except for isNull() and isEmpty()).