Bug 374010

Summary: Segfault on accessing DNG file
Product: [Applications] digikam Reporter: Malte Cornils <malte>
Component: Plugin-DImg-RAWAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 5.3.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 5.4.0
Sentry Crash Report:

Description Malte Cornils 2016-12-21 22:14:04 UTC
While accessing an older collection on a removable drive, digikam (Linux x64 appimage 5.3.0 on Ubuntu 16.04 LTS) eventually segfaults (on the same image, which is 64 MB big, and can be found for the next few weeks on http://srv.cornils.net/DSC09641-hdr.dng):

digikam.dimg: "/media/mcornils/82aad9c3-7dc9-4db0-9616-177ee44af6c7/fotos/2012-09-01 Nepal: Tatopani, Dhulikhel, Bakthapur, Kathmandu, Patan, Langtang/hdrenblend/DSC09641-hdr.dng"  : RAW file identified
digikam.rawengine: LibRaw: failed to run open_file:  Unsupported file format or not RAW file
digikam.dimg: "/media/mcornils/82aad9c3-7dc9-4db0-9616-177ee44af6c7/fotos/2012-09-01 Nepal: Tatopani, Dhulikhel, Bakthapur, Kathmandu, Patan, Langtang/hdrenblend/DSC09641-hdr.dng"  : QIMAGE file identified
TIFFReadDirectory: Warning, foo: unknown field with tag 18246 (0x4746) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 18249 (0x4749) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33421 (0x828d) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33422 (0x828e) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 50341 (0xc4a5) encountered.
/tmp/.mount_ChURHY/AppRun: Zeile 35:  5535 Speicherzugriffsfehler  (Speicherabzug geschrieben) digikam.wrapper $@

Using Gilles Caulier's appimage for 5.4.0 (beta, I think) does not show this issue, so this is mainly for reference and is probably in the same class of issues as https://bugs.kde.org/show_bug.cgi?id=373500
Comment 1 caulier.gilles 2016-12-21 22:41:37 UTC
Yes, this crash is not reproducible here with 5.4.0 pre release AppImage. This bundle use now Libraw 0.18 beta2.

So this problem will be fixed with next 5.4.0...

Gilles Caulier