FS#25652 - [libdc1394] cause digikam to segfault when downloading from usb camera

Attached to Project: Arch Linux
Opened by hamelg (hamelg) - Thursday, 18 August 2011, 20:06 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 12 September 2011, 08:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andrea Scarpino (BaSh)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
when importing photos from my usb camera, digikam segfaults here :

-- Backtrace (Reduced):
#7 0xb47fca36 in realloc () from /lib/libc.so.6
#8 0xb1654041 in register_platform () from /usr/lib/libdc1394.so.22
#9 0xb1667691 in usb_init () from /usr/lib/libdc1394.so.22
#10 0xa5abbe5c in gp_port_library_list () from
/usr/lib/libgphoto2_port/0.8.0/usb.so
#11 0xb4782872 in ?? () from /usr/lib/libgphoto2_port.so.0
#12 0xb37015b0 in ?? () from /usr/lib/libltdl.so.7

This bug had been fixed :
https://bugs.kde.org/show_bug.cgi?id=268267

see comments #45 and #49

This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 12 September 2011, 08:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  libdc1394 2.1.3-2
Comment by Gladstone (gladstone) - Wednesday, 24 August 2011, 09:14 GMT
I experience this bug also. Can this be patched in the current version or do we have to wait until the next upstream release?
Comment by Andrea Scarpino (BaSh) - Wednesday, 24 August 2011, 09:46 GMT
Hi, the diff in the comment #35 on that bug report is already applied in 2.0.0. Gilles says that "the git version is fixed", but I cannot find the specific commit which fixes this. You could use the workaround in the comment #54 until we fix this.
Comment by Gladstone (gladstone) - Wednesday, 24 August 2011, 11:08 GMT
Thanks. I can confirm launching digikam as follows successfully works around the issue:

$ LD_PRELOAD=/usr/lib/libusb-0.1.so.4 digikam
Comment by hamelg (hamelg) - Sunday, 28 August 2011, 10:03 GMT
Somebody has already fixed this issue which comes from libdc1394 :
http://sourceforge.net/tracker/?func=detail&atid=308157&aid=3361405&group_id=8157

I applied the attached patch, then recompiled libdc1394.
The proposed patch definitively fixes the crash :)

Loading...