Bug 295751 - Segfault while importing from camera with digiKam via gphoto2
Summary: Segfault while importing from camera with digiKam via gphoto2
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 2.5.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-11 11:06 UTC by Kristian
Modified: 2023-05-05 05:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian 2012-03-11 11:06:09 UTC
digiKam segfaults when I try to import images from a Canon IXUS 60 camera via ghoto2. However, importing with gphoto2 in the console works without problems.

Reproducible: Always

Steps to Reproduce:
1. Import from predefined camera (no images are shown)
2. digiKam segfaults

Expected Results:  
Import pictures from camera


Unfortunately, the gdb backtrace is very short and probably useless:

Starting program: /usr/bin/digikam 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7fffd394f700 (LWP 7973)]
[New Thread 0x7fffd314e700 (LWP 7974)]
[New Thread 0x7fffd294d700 (LWP 7975)]
[Thread 0x7fffd294d700 (LWP 7975) exited]
[New Thread 0x7fffd294d700 (LWP 7979)]
[New Thread 0x7fffc0ad3700 (LWP 7984)]
[New Thread 0x7fffc07dc700 (LWP 7990)]
[New Thread 0x7fffbffdb700 (LWP 7991)]
[New Thread 0x7fffbf7da700 (LWP 7992)]
[New Thread 0x7fffbefd9700 (LWP 7993)]
[New Thread 0x7fffbe7d8700 (LWP 7995)]
[New Thread 0x7fffae0bc700 (LWP 8008)]
[New Thread 0x7fffad8bb700 (LWP 8009)]
[New Thread 0x7fffad0ba700 (LWP 8010)]
[New Thread 0x7fffac8b9700 (LWP 8011)]
[New Thread 0x7fff97fff700 (LWP 8012)]
[New Thread 0x7fff96b32700 (LWP 8018)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff96b32700 (LWP 8018)]
0x0000000000758208 in ?? ()
#0  0x0000000000758208 in ?? ()
#1  0x000000000075f865 in ?? ()
#2  0x0000000000783b50 in ?? ()
#3  0x00000000007871f6 in ?? ()
#4  0x00007ffff2380d3b in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007fffef304daa in start_thread () from /lib/libpthread.so.0
#6  0x00007ffff15bc09d in clone () from /lib/libc.so.6
A debugging session is active.

        Inferior 1 [process 7970] will be killed.

Quit anyway? (y or n)



Components:

digiKam version 2.5.0
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibClapack: internal library
LibExiv2: 0.22
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.8.1 (4.8.1)
LibKExiv2: 2.1.0
LibKGeoMap: 2.0.0
LibKdcraw: 2.0.1
LibLCMS: 119
LibPGF: 6.11.42 - internal library
LibPNG: 1.5.7
LibQt: 4.8.0
LibRaw: 0.14.4
LibTIFF: LIBTIFF, Version 4.0.0 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.12.97 (0.13 Release Candidate 2)
Parallelised demosaicing: Yes
Database backend: QSQLITE
LibGphoto2: 2.4.13
LibKface: 2.0.0
LibKipi: 1.3.0
LibOpenCV: 2.3.1
Libface: 0.2
Comment 1 caulier.gilles 2012-03-11 14:16:23 UTC
Install digikam debug package and run digiKam through gdb to get a full suitable backtrace to hack.

Gilles Caulier
Comment 2 Kristian 2012-03-11 17:39:31 UTC
Ok, I compiled digiKam from source with debug and here's the backtrace. I hope this helps.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbed4f700 (LWP 12673)]
0x00000000006bc538 in Digikam::GPCamera::getItemInfoInternal (this=0x625bc30, folder=..., itemName=..., info=..., 
    useMetadata=true)
    at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/utilities/cameragui/devices/gpcamera.cpp:840
840	                            QFile::encodeName(info.name).constData(), &cfinfo, d->status->context);
#0  0x00000000006bc538 in Digikam::GPCamera::getItemInfoInternal (this=0x625bc30, folder=..., itemName=..., info=..., 
    useMetadata=true)
    at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/utilities/cameragui/devices/gpcamera.cpp:840
#1  0x00000000006beb0a in Digikam::GPCamera::getItemsInfoList (this=0x625bc30, folder=..., useMetadata=true, 
    items=...) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/utilities/cameragui/devices/gpcamera.cpp:793
#2  0x00000000006dac5a in Digikam::CameraController::executeCommand (this=0x63417d0, cmd=<optimized out>)
    at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/utilities/cameragui/controller/cameracontroller.cpp:489
#3  0x00000000006ddbde in Digikam::CameraController::run (this=0x63417d0)
    at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/utilities/cameragui/controller/cameracontroller.cpp:396
#4  0x00007ffff23a1d3b in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007fffef325daa in start_thread () from /lib/libpthread.so.0
#6  0x00007ffff15dd09d in clone () from /lib/libc.so.6
Comment 3 caulier.gilles 2012-03-11 18:16:14 UTC

*** This bug has been marked as a duplicate of bug 293492 ***
Comment 4 caulier.gilles 2023-05-05 05:28:23 UTC
Fixed with #293492