← Back to team overview

touch-packages team mailing list archive

[Bug 1108719] Re: usb crashed with SIGSEGV in opendir() -- USB ports are in BIOS disabled --> cupsd crashes every time

 

raring has seen the end of its life and is no longer receiving any
updates. Marking the raring task for this ticket as "Won't Fix".

** Changed in: cups (Ubuntu Raring)
       Status: Fix Committed => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1108719

Title:
  usb crashed with SIGSEGV in opendir()  --  USB ports are in BIOS
  disabled --> cupsd crashes every time

Status in cups package in Ubuntu:
  Fix Released
Status in cups source package in Precise:
  Fix Released
Status in cups source package in Raring:
  Won't Fix
Status in cups source package in Saucy:
  Fix Released

Bug description:
  On 4 machines is USB for safety disabled, an HP DeskJet 500 is
  attached to one machine via LTP (IEEE 1284) and the other machines use
  the network share... - all working well.

  But every time i open up CUPS for configuration or something the process
  /usr/sbin/cupsd
  crashes and an crash report is generated (attached).

  .

  Xubuntu 12.04.1

  Linux icafe-a 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:41:24 UTC
  2013 i686 i686 i386 GNU/Linux

  CUPS
  Versions:
  1.5.3-0ubuntu6 (/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages) (/var/lib/dpkg/status)

  BTW: I was also not able to send the bug via apport, this crashes with
  "package not installed".

  [IMPACT]

  If on a machine (mainly servers and high-security environments) the
  USB is turned off in the BIOS or a very old pre-USB-era machine is
  used the attempt of CUPS to detect available printers makes the USB
  CUPS backend being called and the backend crashes then due to absense
  of USB . The crash itself is harmless, but it makes Apport popping up
  with a crash report which is annoying.

  [TESTCASE]

  Turn off the USB support completely in the BIOS setup of the machine,
  boot and run either

  lpinfo -v

  or

  sudo /usr/lib/cups/backend/usb

  A crash report will pop up. Close it, do not generate the actual bug
  report.

  After installing the proposed package the backend will not crash any
  more and so no Apport pop-up will occur.

  [Regression Potential]

  The patch is very simple and adds only an error check to handle an
  error on initializing libusb properly. The probability of a regression
  caused by this is practically zero.

  NOTE: As the archives for the new development cycle are not open yet I
  am posting this SRU proposal without a fixed package in the new
  development branch. The fix is committed to Debian's GIT repo of CUPS
  though and so it will appear in the new development cycle with the
  first sync of the cups package.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1108719/+subscriptions