Bug 915688 - [abrt] gphoto2-2.5.0-2.fc18: dtoh32ap: Process /usr/bin/gphoto2 was killed by signal 11 (SIGSEGV)
Summary: [abrt] gphoto2-2.5.0-2.fc18: dtoh32ap: Process /usr/bin/gphoto2 was killed by...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libgphoto2
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:58ce64f55b54c909d8d087dc5b3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-26 10:38 UTC by Jonas Wielicki
Modified: 2013-05-23 12:49 UTC (History)
5 users (show)

Fixed In Version: gphoto2-2.5.2-1.fc18
Clone Of:
Environment:
Last Closed: 2013-05-15 17:29:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (37.57 KB, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: build_ids (820 bytes, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: cgroup (131 bytes, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: core_backtrace (1.40 KB, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: dso_list (2.07 KB, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: environ (3.36 KB, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: limits (1.29 KB, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: maps (9.06 KB, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: open_fds (480 bytes, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: proc_pid_status (927 bytes, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details
File: var_log_messages (373 bytes, text/plain)
2013-02-26 10:38 UTC, Jonas Wielicki
no flags Details

Description Jonas Wielicki 2013-02-26 10:38:04 UTC
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

Comment 1 Jonas Wielicki 2013-02-26 10:38:08 UTC
Created attachment 702764 [details]
File: backtrace

Comment 2 Jonas Wielicki 2013-02-26 10:38:10 UTC
Created attachment 702765 [details]
File: build_ids

Comment 3 Jonas Wielicki 2013-02-26 10:38:13 UTC
Created attachment 702766 [details]
File: cgroup

Comment 4 Jonas Wielicki 2013-02-26 10:38:15 UTC
Created attachment 702767 [details]
File: core_backtrace

Comment 5 Jonas Wielicki 2013-02-26 10:38:17 UTC
Created attachment 702768 [details]
File: dso_list

Comment 6 Jonas Wielicki 2013-02-26 10:38:20 UTC
Created attachment 702769 [details]
File: environ

Comment 7 Jonas Wielicki 2013-02-26 10:38:22 UTC
Created attachment 702770 [details]
File: limits

Comment 8 Jonas Wielicki 2013-02-26 10:38:24 UTC
Created attachment 702771 [details]
File: maps

Comment 9 Jonas Wielicki 2013-02-26 10:38:27 UTC
Created attachment 702772 [details]
File: open_fds

Comment 10 Jonas Wielicki 2013-02-26 10:38:29 UTC
Created attachment 702773 [details]
File: proc_pid_status

Comment 11 Jonas Wielicki 2013-02-26 10:38:31 UTC
Created attachment 702774 [details]
File: var_log_messages

Comment 12 Jonas Wielicki 2013-02-26 10:39:14 UTC
Checked with gdb manually, the argument on which dtoh32ap is called is a null pointer here.

Comment 13 Fedora Admin XMLRPC Client 2013-04-09 15:20:04 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 14 Hans de Goede 2013-05-02 09:17:01 UTC
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

Comment 15 Jonas Wielicki 2013-05-02 18:02:14 UTC
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

Comment 16 Hans de Goede 2013-05-02 20:41:39 UTC
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/

Comment 17 Marcus Meissner 2013-05-02 21:09:09 UTC
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.

Comment 18 Fedora Update System 2013-05-04 10:15:18 UTC
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

Comment 19 Fedora Update System 2013-05-04 10:16:15 UTC
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

Comment 20 Jonas Wielicki 2013-05-04 10:28:32 UTC
Confirmed that this problem in fact relates to the CF card. With CF card, I see no crashes.

Comment 21 Fedora Update System 2013-05-04 18:49:15 UTC
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).

Comment 22 Fedora Update System 2013-05-06 10:00:41 UTC
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

Comment 23 Fedora Update System 2013-05-06 10:00:43 UTC
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

Comment 24 Jonas Wielicki 2013-05-07 17:54:35 UTC
The update fixes it, thank you for your commitment to fix this :). Keep it up!

Comment 25 Fedora Update System 2013-05-15 17:29:54 UTC
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).

Comment 26 Fedora Update System 2013-05-23 12:49:00 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.