cupsd assert failure: cupsd: ../avahi-common/dbus-watch-glue.c:205: timeout_data_ref: Assertion `t->ref >= 1' failed.

Bug #707592 reported by Vadim Kaskov
56
This bug affects 6 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Ubuntu 11.04 installed on Virtualbox 4.0.2.

 Update-manager hangs up during updates downloading

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: cups 1.4.5-1ubuntu5
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic i686
Architecture: i386
AssertionMessage: cupsd: ../avahi-common/dbus-watch-glue.c:205: timeout_data_ref: Assertion `t->ref >= 1' failed.
Date: Tue Jan 25 21:03:16 2011
ExecutablePath: /usr/sbin/cupsd
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
Lsusb:
 Bus 002 Device 002: ID 80ee:0021
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: innotek GmbH VirtualBox
Papersize: a4
ProcAttrCurrent: /usr/sbin/cupsd (enforce)
ProcCmdline: /usr/sbin/cupsd -F
ProcEnviron: PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.37-12-generic root=UUID=54a43112-be2c-4cf8-b73f-ae756907fb20 ro quiet splash vt.handoff=7
Signal: 6
SourcePackage: cups
StacktraceTop:
 __kernel_vsyscall ()
 raise () from /lib/libc.so.6
 abort () from /lib/libc.so.6
 __assert_fail () from /lib/libc.so.6
 ?? () from /usr/lib/libavahi-client.so.3
Title: cupsd assert failure: cupsd: ../avahi-common/dbus-watch-glue.c:205: timeout_data_ref: Assertion `t->ref >= 1' failed.
UserGroups:

dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

Revision history for this message
Vadim Kaskov (vad-stalker) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __kernel_vsyscall ()
 *__GI_raise (sig=6)
 *__GI_abort () at abort.c:59

affects: ubuntu → cups (Ubuntu)
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 cups (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, this is part of your Avahi support patch. Can you have a look into this? Thanks.

visibility: private → public
Changed in cups (Ubuntu):
assignee: nobody → Tim Waugh (twaugh)
Revision history for this message
Tim Waugh (twaugh) wrote :

There's no useful stack trace so it's hard to tell, but it might well be to do with one of your changes to it which stored a pointer to a local automatic variable in a global variable and referenced it after the local variable had been taken off the stack.

See https://bugzilla.redhat.com/show_bug.cgi?id=672143. Here's the patch I used to fix that.

tags: added: patch
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you for the patch. I have applied it to the BZR repository of the CUPS package at Debian now, so the next CUPS package at Ubuntu will contain the fix.

Changed in cups (Ubuntu):
status: New → Fix Committed
assignee: Tim Waugh (twaugh) → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.3 KiB)

This bug was fixed in the package cups - 1.4.5-3

---------------
cups (1.4.5-3) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/rules: Do not remove the /usr/share/cups/model/ directory, some
    manufacturer-supplied printer drivers (like from Brother) still use it.
  * debian/rules: Remove a cost factor change for pstops. It is not used any
    more and overridden by
    pstops-based-workflow-only-for-printing-ps-on-a-ps-printer.dpatch
  * debian/local/filters/pdf-filters/filter/pdftoraster.cxx,
    debian/local/filters/pdf-filters/conf/pdftoraster.convs,
    debian/local/filters/pdf-filters/README,
    debian/local/filters/pdf-filters/addtocups
    debian/local/filters/pdf-filters/conf/HP-PhotoSmart_Pro_B8300-hpijs-pdftoijs.ppd,
    debian/local/filters/pdf-filters/config-scripts/cups-pdf-filters.m4,
    debian/local/filters/pdf-filters/removefromcups: Upstream changes of
    the PDF filter add-on package:
     o Added the Poppler-based pdftoraster filter. This filter is much faster
       than the Ghostscript-based filter (LP: #668800).
     o Cleaned up the sample PPD file for pdftoijs (does not go into the
       Debian/Ubuntu package of CUPS).
  * debian/rules: Rename the newly added Poppler-based pdftoraster filter
    to pdftoraster-poppler to not conflict with Ghostscript's pdftoraster
    and lower its cost factor so that it is prioritized against Ghostscript's
    filter.
  * debian/patches/cups-avahi.dpatch: Updated to fix assertion failure
    (LP: #707592, Red Hat bug #672143).

  [ Martin Pitt ]
  * debian/patches/ubuntu-upstart.dpatch: Don't ignore failures from
    apparmor-profile-load.

cups (1.4.5-2) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/patches/cups-avahi.dpatch: Added patch from Tim Waugh from Red Hat
    to implement full Avahi support, not only for printer discovery by the
    "dnssd" backend but also for print queue broadcasting and browsing by the
    scheduler (CUPS daemon). Fixes LP: #465916.
  * debian/patches/dnssd-avahi.dpatch: Removed, is part of new
    cups-avahi.dpatch.
  * debian/patches/quiesce-bonjour-warning.dpatch: Removed, not needed any
    more with the new cups-avahi.dpatch.
  * debian/rules: Added "--with-local_protocols='CUPS dnssd'
    --with-remote_protocols='CUPS dnssd'" to the command line of "./configure".
    This adds support for DNS-SD-based browsing and broadcasting by default.
  * debian/patches/configure-default-browse-protocols.dpatch: Fixed handling
    of "--with-local_protocols=..." and "--with-remote_protocols=..." on the
    command line of "./configure". Now (quoted) values with spaces, like
    "CUPS dnssd" are treated correctly.
  * debian/patches/usb-backend-no-segfault-on-bad-device-id.dpatch: Assure
    that the device ID string read from a USB device can never be a mess: Try
    other byte order for device ID string length also if length is too small,
    empty the read device ID string if there is an IOCTL failure, reject ID
    strings with unprintable characters, clean white space in the ID string,
    and finally accept the empty ID string as an unknown device. This
    overcomes the problem that USB-to-Parallel adapter cables do not
    report...

Read more...

Changed in cups (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Reopening as the patch still did not solve this problem. The same problem got reported later on as bug 759031, bug 844077, and sevral other bugs marked as duplicates of these.

Changed in cups (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can everyone who is suffering this bug try Ubuntu Oneiric (on a live CD or on a virtual machine) with all updates (check whether you have CUPS 1.5.0-7, close and ignore the crash pop-up of oneconf-query, it is bug 856576) and check whether it still occurs there? If so, you should get a crash pop-up. Please do not close it. Follow the instructions until the browser opens. When it asks you whether the bug you want to report is one of the listed bugs, open a new bug. After submitting the new bug report, wait until the retrace gets attached. Only after that mark that bug a duplicate of this bug. Post the bug number (preceded by the word "bug" so that this is made a link) in a comment here. note that it is very important that you have the newest CUPS, as it has a fix in the handling of debug symbols. Any older version of CUPS does not produce a usable retrace. Also take care to submitt the crash report of cups and not of oneconf-query.

Martin Pitt (pitti)
Changed in cups (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
Revision history for this message
dino99 (9d9) wrote :

This version has expired long time ago, and is no more supported

Changed in cups (Ubuntu):
status: Confirmed → Invalid
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.