FS#25204 - [cups] network backends crashing

Attached to Project: Arch Linux
Opened by Ray (ataraxia) - Thursday, 21 July 2011, 19:07 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 22 August 2011, 05:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
Since upgrading to cups 1.4.7, I'm unable to print to a network printer. The CUPS backend (in my case "socket", in other cases "lpd") crashes. Downgrading to 1.4.6 solves it, so I don't think it's a driver issue. I did try to delete and re-add the printer with no effect.

This had a forum thread https://bbs.archlinux.org/viewtopic.php?id=122482 but apparently no one bothered to report it here. My printer, like the last poster of the thread's, is an HP DeskJet 6940 using the hpijs driver, network attached using HP JetDirect.

Additional info:
* package version(s)
cups 1.4.7-2
hplip 3.11.5-1

* config and/or log files etc.
This output is for a CUPS test-page job, which is much simpler to read than for an actual print job.

E [21/Jul/2011:14:44:33 -0400] PID 25565 (/usr/lib/cups/backend/socket) crashed on signal 8!
D [21/Jul/2011:14:44:33 -0400] [Job 9] The following messages were recorded from 02:44:33 PM to 02:44:33 PM
D [21/Jul/2011:14:44:33 -0400] [Job 9] Adding start banner page "none".
D [21/Jul/2011:14:44:33 -0400] [Job 9] Queued on "dj6940" by "root".
D [21/Jul/2011:14:44:33 -0400] [Job 9] File of type application/vnd.cups-command queued by "root".
D [21/Jul/2011:14:44:33 -0400] [Job 9] Adding end banner page "none".
D [21/Jul/2011:14:44:33 -0400] [Job 9] job-sheets=none,none
D [21/Jul/2011:14:44:33 -0400] [Job 9] argv[0]="dj6940"
D [21/Jul/2011:14:44:33 -0400] [Job 9] argv[1]="9"
D [21/Jul/2011:14:44:33 -0400] [Job 9] argv[2]="root"
D [21/Jul/2011:14:44:33 -0400] [Job 9] argv[3]="Print Self-Test Page"
D [21/Jul/2011:14:44:33 -0400] [Job 9] argv[4]="1"
D [21/Jul/2011:14:44:33 -0400] [Job 9] argv[5]="job-uuid=urn:uuid:0d00b570-45e5-3c7f-61b3-6899e1a85194 job-originating-host-name=localhost time-at-creation=1311273873 time-at-processing=1311273873 AP_D_InputSlot="
D [21/Jul/2011:14:44:33 -0400] [Job 9] argv[6]="/var/spool/cups/d00009-001"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[8]="HOME=/var/spool/cups/tmp"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[10]="SERVER_ADMIN=root@amaranth"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[11]="SOFTWARE=CUPS/1.4.7"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[13]="USER=root"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[16]="IPP_PORT=631"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[17]="CHARSET=utf-8"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[18]="LANG=en_US.UTF-8"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[19]="PPD=/etc/cups/ppd/dj6940.ppd"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[20]="RIP_MAX_CACHE=8m"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[21]="CONTENT_TYPE=application/vnd.cups-command"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[22]="DEVICE_URI=socket://printer:9100"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[23]="PRINTER_INFO=HP DeskJet 6940"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[24]="PRINTER_LOCATION="
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[25]="PRINTER=dj6940"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[26]="CUPS_FILETYPE=document"
D [21/Jul/2011:14:44:33 -0400] [Job 9] envp[27]="FINAL_CONTENT_TYPE=printer/dj6940"
D [21/Jul/2011:14:44:33 -0400] [Job 9] Started filter /usr/lib/cups/filter/commandtops (PID 25564)
D [21/Jul/2011:14:44:33 -0400] [Job 9] Started backend /usr/lib/cups/backend/socket (PID 25565)
D [21/Jul/2011:14:44:33 -0400] [Job 9] STATE: +connecting-to-device
D [21/Jul/2011:14:44:33 -0400] [Job 9] Looking up "printer"...
D [21/Jul/2011:14:44:33 -0400] [Job 9] Connecting to printer:9100
D [21/Jul/2011:14:44:33 -0400] [Job 9] Connecting to printer...
D [21/Jul/2011:14:44:33 -0400] [Job 9] Set job-printer-state-message to "Connecting to printer...", current level=INFO
D [21/Jul/2011:14:44:33 -0400] [Job 9] STATE: -connecting-to-device
D [21/Jul/2011:14:44:33 -0400] [Job 9] Connected to printer...
D [21/Jul/2011:14:44:33 -0400] [Job 9] Set job-printer-state-message to "Connected to printer...", current level=INFO
D [21/Jul/2011:14:44:33 -0400] [Job 9] Connected to 192.168.0.2:9100 (IPv4)...
D [21/Jul/2011:14:44:33 -0400] [Job 9] hrDeviceDesc="Deskjet 6940 series"
D [21/Jul/2011:14:44:33 -0400] [Job 9] ATTR: marker-colors=none,none,none,none
D [21/Jul/2011:14:44:33 -0400] [Job 9] ATTR: marker-names="black ink cartridge","tri-color ink cartridge","","ink blotter"
D [21/Jul/2011:14:44:33 -0400] [Job 9] ATTR: marker-types=ink,ink,unknown,other
D [21/Jul/2011:14:44:33 -0400] [Job 9] Backend returned status -8 (crashed)
D [21/Jul/2011:14:44:33 -0400] [Job 9] Printer stopped due to backend errors; please consult the error_log file for details.
D [21/Jul/2011:14:44:33 -0400] [Job 9] End of messages
D [21/Jul/2011:14:44:33 -0400] [Job 9] printer-state=5(stopped)
D [21/Jul/2011:14:44:33 -0400] [Job 9] printer-state-message="/usr/lib/cups/backend/socket failed"
D [21/Jul/2011:14:44:33 -0400] [Job 9] printer-state-reasons=paused

Steps to reproduce:
Configure a network printer (HP JetDirect socket or generic lpd are known to reproduce this) and then send a CUPS self-test page.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 22 August 2011, 05:21 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.5.0 with incuded upstream fixes is in testing now.
Comment by Andreas Radke (AndyRTR) - Friday, 22 July 2011, 04:56 GMT
Please report this upstream. When this has been working in the last release this is no packaging issue.
Comment by Ray (ataraxia) - Friday, 22 July 2011, 22:10 GMT Comment by Ray (ataraxia) - Monday, 25 July 2011, 17:37 GMT
Fix for this will be in 1.4.8.
Comment by Gaelic (gaelic) - Thursday, 28 July 2011, 09:03 GMT
1.4.8 is out since a few days, pretty please :)
Comment by dif (dif) - Thursday, 28 July 2011, 12:54 GMT
There's cups 1.5.0 already, which claims to have fixed the problem.
I suffer from the same bug.
Xerox WorkCentre M118i
Hope we will have it with Arch soon. Please.
Comment by dif (dif) - Thursday, 28 July 2011, 13:25 GMT
I have just updated cups to 1.4.7-3.
It did not help, I'm afraid.
Comment by Ray (ataraxia) - Thursday, 28 July 2011, 13:28 GMT
1.4.7-3 was about avoiding linking to libraries which were not needed. Nothing to do with this.
Comment by Ray (ataraxia) - Sunday, 31 July 2011, 04:36 GMT
I upgraded to 1.5.0 here and it did fix the problem for me. There were no soname bumps on any libraries so I didn't have to rebuild anything else.

If you want to do this, you will need to remove the avahi patch and things that depend on it, as the Fedora author of it hasn't updated it for this release (yet?). The Fedora package for 1.5.0 doesn't apply it now either. Basically, don't apply that patch, and don't pass "--enable-avahi" to configure, since it then doesn't understand it.

I also enabled threading based on the note in the PKGBUILD pointing to an upstream STR about SSL. It built ok and I'm able to connect to my cupsd over SSL, but as I never did that before anyway, I don't know if that's any different.

Loading...