Bug 474362 - hp backend crashes when dbus not running
Summary: hp backend crashes when dbus not running
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 10
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-03 14:32 UTC by Pete Wyckoff
Modified: 2009-03-13 18:35 UTC (History)
2 users (show)

Fixed In Version: 2.8.12-6.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-13 18:35:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
hplip dbus bug patch (371 bytes, patch)
2008-12-03 14:32 UTC, Pete Wyckoff
no flags Details | Diff

Description Pete Wyckoff 2008-12-03 14:32:47 UTC
Created attachment 325540 [details]
hplip dbus bug patch

Description of problem:

HP backend crashes if dbus (messagebus) is not running.

Version-Release number of selected component (if applicable):

hplip-2.8.7-3

How reproducible:

every time

Steps to Reproduce:
1. configure a printer to use hp:/net/hp_LaserJet_...
2. print to it

Additional info:

/var/log/cups/error_log:

I [03/Dec/2008:08:54:22 -0500] [Job 47] Started backend /usr/lib/cups/backend/hp (PID 9219)
E [03/Dec/2008:08:54:23 -0500] PID 9219 (/usr/lib/cups/backend/hp) crashed on signal 6!
I [03/Dec/2008:08:54:23 -0500] Hint: Try setting the LogLevel to "debug" to find out more.
I [03/Dec/2008:08:54:44 -0500] [Job 47] Backend returned status -6 (crashed)

/var/log/messages:

Dec  3 08:54:23 host hp_LaserJet_9050_MFP?ip=10.62.229.18: prnt/backend/hp.c 528: dBus Connection Error (Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused)!

strace shows that it is libdbus that is killing hplip with SIGABRT:

9219  write(2, "process 9219: "..., 14 <unfinished ...>
9219  write(2, "arguments to dbus_connection_send() were incorrect, assertion \"connection != NULL\" failed in file dbus-connection.c line 3099.\nThis is normally a bug in some application using the D-Bus library.\n"..., 195 <unfinished ...>
9219  write(2, "  D-Bus not built with -rdynamic so unable to print a backtrace\n"..., 64 <unfinished ...>
9219  rt_sigprocmask(SIG_UNBLOCK, [ABRT],  <unfinished ...>
9219  tgkill(9219, 9219, SIGABRT <unfinished ...>
9219  --- SIGABRT (Aborted) @ 0 (0) ---

Patch attached that makes hplip avoid sending messages to dbus if the
connection attempt was unsuccessful.

Comment 1 Tim Waugh 2008-12-11 11:21:49 UTC
Thanks for the patch.

Comment 2 Fedora Update System 2009-01-07 09:14:04 UTC
hplip-2.8.12-1.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-11236

Comment 3 Fedora Update System 2009-01-15 03:04:59 UTC
hplip-2.8.12-5.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-11236

Comment 4 Fedora Update System 2009-01-29 23:01:48 UTC
hplip-2.8.12-6.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-11236

Comment 5 Fedora Update System 2009-03-13 18:34:37 UTC
hplip-2.8.12-6.fc10 has been pushed to the Fedora 10 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.