colord crashed with SIGSEGV in __opendirat()

Bug #1016470 reported by Jean-Baptiste Lallement
56
This bug affects 7 people
Affects Status Importance Assigned to Milestone
colord (Ubuntu)
Fix Released
Medium
Chris Halse Rogers
Quantal
Fix Released
Medium
Chris Halse Rogers

Bug Description

Ubuntu Desktop 20120622

Crashed on login on a live session

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: colord 0.1.16-2
ProcVersionSignature: Ubuntu 3.5.0-1.1-generic 3.5.0-rc3
Uname: Linux 3.5.0-1-generic x86_64
ApportVersion: 2.2.5-0ubuntu1
Architecture: amd64
CasperVersion: 1.318
Date: Fri Jun 22 10:27:01 2012
ExecutablePath: /usr/lib/x86_64-linux-gnu/colord/colord
LiveMediaBuild: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120622)
ProcCmdline: /usr/lib/x86_64-linux-gnu/colord/colord
ProcEnviron:

SegvAnalysis:
 Segfault happened at: 0x7fb1b9569dc4: cmpb $0x0,(%rsi)
 PC (0x7fb1b9569dc4) ok
 source "$0x0" ok
 destination "(%rsi)" (0x00000000) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: colord
StacktraceTop:
 ?? () from /lib/x86_64-linux-gnu/libc.so.6
 ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
 libusb_get_device_list () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
 ?? () from /usr/lib/libhpmud.so.0
 hpmud_probe_devices () from /usr/lib/libhpmud.so.0
Title: colord crashed with SIGSEGV in libusb_get_device_list()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __opendirat (dfd=-100, name=0x0) at ../sysdeps/unix/opendir.c:87
 ?? () from /tmp/tmpTvrOJV/lib/x86_64-linux-gnu/libusb-1.0.so.0
 libusb_get_device_list () from /tmp/tmpTvrOJV/lib/x86_64-linux-gnu/libusb-1.0.so.0
 ?? () from /tmp/tmpTvrOJV/usr/lib/libhpmud.so.0
 hpmud_probe_devices () from /tmp/tmpTvrOJV/usr/lib/libhpmud.so.0

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 colord (Ubuntu):
importance: Undecided → Medium
summary: - colord crashed with SIGSEGV in libusb_get_device_list()
+ colord crashed with SIGSEGV in __opendirat()
tags: removed: need-amd64-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in colord (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1016470

tags: added: iso-testing
Para Siva (psivaa)
tags: added: rls-q-incoming
Changed in colord (Ubuntu):
assignee: nobody → Chris Halse Rogers (raof)
milestone: none → ubuntu-12.10-beta-2
tags: removed: rls-q-incoming
Changed in colord (Ubuntu Quantal):
milestone: ubuntu-12.10-beta-2 → ubuntu-12.10
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This is actually a crash in SANE. Can this still be reproduces in SANE 1.0.23?

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Still a problem with Beta2 which has colord 0.1.21-1ubuntu1 and sane 1.0.23-0ubuntu1
See bug 1055315 for an updated trace

Revision history for this message
Lei Zhang (thestig-google) wrote :

I suspect this is caused by libhpmud0 not checking the return value from libusb_init(). All the places in hplip-3.12.2/io/hpmud/musb.c that calls usb_init() should check for return values and bail out if initialization fails.

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: [Bug 1016470] Re: colord crashed with SIGSEGV in __opendirat()

It's actually worse than that; colord calls sane_init /
sane_get_devices / sane_exit repeatedly, and sane leaks fds across that
usage.

So eventually we run out of fds and crash. I'm not sure if *this* crash
is due to running out of fds, but many of the other ones are.

Changed in colord (Ubuntu Quantal):
milestone: ubuntu-12.10 → quantal-updates
Revision history for this message
Chris Halse Rogers (raof) wrote :

Oh! This should have been fixed by the 0.1.21-1ubutu2 upload.

Please reopen if it's not fixed!

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

Other bug subscribers

Remote bug watches

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