Description of problem: 1. Plugged in my Canon 400D (and granted me permissions on it's usb device) 2. ran gphoto2 to query the device (it does not matter which gphoto2 command) Version-Release number of selected component: gphoto2-2.5.0-2.fc18 Additional info: backtrace_rating: 4 cmdline: gphoto2 --trigger-capture foo crash_function: dtoh32ap executable: /usr/bin/gphoto2 kernel: 3.7.9-201.fc18.x86_64 remote_result: NOTFOUND uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #0 dtoh32ap at ptp2/ptp-pack.c:73 #2 ptp_canon_eos_getobjectinfoex at ptp2/ptp.c:1878 #3 ptp_list_folder_eos at ptp2/library.c:5667 #4 ptp_list_folder at ptp2/library.c:5761 #6 camera_init at ptp2/library.c:6116 #7 gp_camera_init at gphoto2-camera.c:850 #8 gp_camera_trigger_capture at gphoto2-camera.c:1076 #9 trigger_capture at main.c:670 #10 cb_arg_run at main.c:1410 #11 cb_arg at main.c:1643
Created attachment 702764 [details] File: backtrace
Created attachment 702765 [details] File: build_ids
Created attachment 702766 [details] File: cgroup
Created attachment 702767 [details] File: core_backtrace
Created attachment 702768 [details] File: dso_list
Created attachment 702769 [details] File: environ
Created attachment 702770 [details] File: limits
Created attachment 702771 [details] File: maps
Created attachment 702772 [details] File: open_fds
Created attachment 702773 [details] File: proc_pid_status
Created attachment 702774 [details] File: var_log_messages
Checked with gdb manually, the argument on which dtoh32ap is called is a null pointer here.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Hi, Can you reproduce this crash, or did it happen once? If you can reproduce, can you please retry with the latest libgphoto2: https://koji.fedoraproject.org/koji/buildinfo?buildID=415729 (This will be available in F-18 updates-testing soon) Thanks, Hans
Got it from koji, doesn't help though. I'll paste some debug output from the gphoto command, maybe that'll help: horazont@zion tmp › gphoto2 --debug --list-config << lots of other stuff >> 0.942517 ptp2/ptp_usb_getdata(2): reading data 0.942540 ptp2/ptp_usb_getpacket(2): getting next ptp packet 0.942558 gphoto2-port(2): Reading 512=0x200 bytes from port... 0.955403 gphoto2-port(2): Could only read 12 out of 512 byte(s) 0.955457 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: 0000 0c 00 00 00 02 00 09 91-04 00 00 00 ............ 0.955557 ptp2/ptp_usb_getresp(2): reading response 0.955581 ptp2/ptp_usb_getpacket(2): getting next ptp packet 0.955623 gphoto2-port(2): Reading 512=0x200 bytes from port... 0.957900 gphoto2-port(2): Could only read 20 out of 512 byte(s) 0.958001 gphoto2-port(3): Hexdump of 20 = 0x14 bytes follows: 0000 14 00 00 00 03 00 01 20-04 00 00 00 02 00 00 00 ....... ........ 0010 00 00 00 00 - .... [1] 9731 segmentation fault (core dumped) gphoto2 --debug --list-config If I can supply more helpful information, just let me know
Hi, (In reply to comment #15) > Got it from koji, doesn't help though. I'll paste some debug output from the > gphoto command, maybe that'll help: > > horazont@zion tmp › gphoto2 --debug --list-config > > << lots of other stuff >> > > 0.942517 ptp2/ptp_usb_getdata(2): reading data > 0.942540 ptp2/ptp_usb_getpacket(2): getting next ptp packet > 0.942558 gphoto2-port(2): Reading 512=0x200 bytes from port... > 0.955403 gphoto2-port(2): Could only read 12 out of 512 byte(s) > 0.955457 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: > 0000 0c 00 00 00 02 00 09 91-04 00 00 00 ............ > > 0.955557 ptp2/ptp_usb_getresp(2): reading response > 0.955581 ptp2/ptp_usb_getpacket(2): getting next ptp packet > 0.955623 gphoto2-port(2): Reading 512=0x200 bytes from port... > 0.957900 gphoto2-port(2): Could only read 20 out of 512 byte(s) > 0.958001 gphoto2-port(3): Hexdump of 20 = 0x14 bytes follows: > 0000 14 00 00 00 03 00 01 20-04 00 00 00 02 00 00 00 ....... ........ > 0010 00 00 00 00 - .... > > [1] 9731 segmentation fault (core dumped) gphoto2 --debug --list-config > > If I can supply more helpful information, just let me know Thanks for the quick test with the latest libgphoto2, I don't believe this is a Fedora specific problem, so I've asked for help with this upstream: https://sourceforge.net/p/gphoto/bugs/951/
same as https://sourceforge.net/p/gphoto/bugs/945/ would always happen if you have no card in the camera. will be fixed in2.5.2, above bug has a simple patch.
libgphoto2-2.5.1.1-4.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/libgphoto2-2.5.1.1-4.fc19
libgphoto2-2.5.1.1-4.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/libgphoto2-2.5.1.1-4.fc18
Confirmed that this problem in fact relates to the CF card. With CF card, I see no crashes.
Package libgphoto2-2.5.1.1-4.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libgphoto2-2.5.1.1-4.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-7394/libgphoto2-2.5.1.1-4.fc19 then log in and leave karma (feedback).
gphoto2-2.5.2-1.fc18, libgphoto2-2.5.2-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/gphoto2-2.5.2-1.fc18,libgphoto2-2.5.2-1.fc18
gphoto2-2.5.2-1.fc19, libgphoto2-2.5.2-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/gphoto2-2.5.2-1.fc19,libgphoto2-2.5.2-1.fc19
The update fixes it, thank you for your commitment to fix this :). Keep it up!
Package gphoto2-2.5.2-1.fc18, libgphoto2-2.5.2-1.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gphoto2-2.5.2-1.fc18 libgphoto2-2.5.2-1.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-7548/gphoto2-2.5.2-1.fc18,libgphoto2-2.5.2-1.fc18 then log in and leave karma (feedback).
gphoto2-2.5.2-1.fc18, libgphoto2-2.5.2-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.