gvfs-gphoto2-volume-monitor crashed with SIGSEGV in libusb_get_bus_number()

Bug #1206204 reported by mkis62
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libgphoto2 (Ubuntu)
Fix Released
Critical
Martin Pitt

Bug Description

crash on import ... shotwell still working

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: gvfs-backends 1.17.2-0ubuntu3
ProcVersionSignature: Ubuntu 3.10.0-6.17-generic 3.10.3
Uname: Linux 3.10.0-6-generic i686
ApportVersion: 2.11-0ubuntu1
Architecture: i386
Date: Mon Jul 29 20:23:35 2013
ExecutablePath: /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
InstallationDate: Installed on 2013-06-12 (47 days ago)
InstallationMedia: Xubuntu 13.10 "Saucy Salamander" - Alpha i386 (20130611)
MarkForUpload: True
ProcCmdline: /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
SegvAnalysis:
 Segfault happened at: 0xb6d18c64 <libusb_get_bus_number+4>: movzbl 0x20(%eax),%eax
 PC (0xb6d18c64) ok
 source "0x20(%eax)" (0x73656389) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: gvfs
StacktraceTop:
 libusb_get_bus_number () from /lib/i386-linux-gnu/libusb-1.0.so.0
 ?? () from /usr/lib/i386-linux-gnu/libgphoto2_port/0.8.0/usb1.so
 gp_port_usb_find_device_by_class () from /usr/lib/i386-linux-gnu/libgphoto2_port.so.0
 gp_abilities_list_detect () from /usr/lib/i386-linux-gnu/libgphoto2.so.2
 gp_camera_init () from /usr/lib/i386-linux-gnu/libgphoto2.so.2
Title: gvfs-gphoto2-volume-monitor crashed with SIGSEGV in libusb_get_bus_number()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
mkis62 (mihaikx62) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 libusb_get_bus_number (dev=0x73656369) at ../../libusb/core.c:736
 gp_port_usb_find_device_by_class_lib (port=0x82805b0, class=666, subclass=-1, protocol=-1) at libusb1.c:1080
 gp_port_usb_find_device_by_class (port=port@entry=0x82805b0, mainclass=mainclass@entry=666, subclass=subclass@entry=-1, protocol=protocol@entry=-1) at gphoto2-port.c:832
 gp_abilities_list_detect_usb (port=0x82805b0, ability=<synthetic pointer>, list=0x82854f0) at gphoto2-abilities-list.c:375
 gp_abilities_list_detect (list=0x82854f0, info_list=0x8283080, l=0xb62f7008, context=context@entry=0x8278548) at gphoto2-abilities-list.c:442

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gvfs (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Martin Pitt (pitti)
information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gvfs (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

This regression was introduced with the switch to libusbx. It completely breaks gvfs' gphoto backend. This is even detected by the autopkgtest (https://jenkins.qa.ubuntu.com/view/Saucy/view/AutoPkgTest/job/saucy-adt-gvfs/).

affects: gvfs (Ubuntu) → libgphoto2 (Ubuntu)
Changed in libgphoto2 (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Medium → Critical
status: Confirmed → In Progress
Revision history for this message
Marcus Meissner (meissner) wrote :

the libusb1 code was a bit buggy in 2.4.14 times.

I will attach an updated libusb1.c (basically same as in 2.5.2 minus the abi changes)

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks Marcus! I was working on updating libgphoto2 to 2.5.2, I just got the package ready. That involves ABI changes to libgphoto2 and -port and thus requires some rebuilds and possibly some porting of reverse dependencies. But to address the immediate issue and get the archive in a working state before breaking it all over again :) (j/k) I'll try your backport, thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

That works very nicely, thanks Marcus!

I'll still look into updating to 2.5.2, I'll stage this in https://launchpad.net/~pitti/+archive/ppa. But that's now less time critical.

Changed in libgphoto2 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libgphoto2 - 2.4.14-2.3ubuntu2

---------------
libgphoto2 (2.4.14-2.3ubuntu2) saucy; urgency=low

  * Add 03-libusbx-fixes.patch: Backport libusbx code from current upstream
    version. Thanks Marcus Meissner! (LP: #1206204)
 -- Martin Pitt <email address hidden> Wed, 31 Jul 2013 08:30:06 +0200

Changed in libgphoto2 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.