You are not logged in.

#1 2018-02-08 14:27:33

AndyD
Member
Registered: 2014-11-25
Posts: 13

[SOLVED] cups-exec segfaults

This is an up-to-date arch system, so my kernel is 4.15.1-2 (the default arch kernel, nothing special), with cups 2.2.6-4

CUPS won't work, displaying "Internal Server Error" each time I leave the "home" page http://127.0.0.1:631/ of the server.

It seems cups-exec excuses itself from doing its job because a page is not found:

kernel: cups-exec[8422]: segfault at 14 ip 000055c826c3ca6f sp 00007fff9bcc2f40 error 4 in cups-exec[55c826c3c000+1000]

From this page for segfault error 4:

The cause was a user-mode read resulting in no page being found.

I did try rebooting (hoping it might just be a different address now that some update was installed) and entirely reinstalling all cups related packages

trizen -Rsn cups cups-filters cups-pdf foomatic-db foomatic-db-engine foomatic-db-ppds hplip
trizen -S all of the above

but to no avail. Is there anything else I should try?

I guess I should also note that I haven't needed to print anything for the last couple of weeks, so I'm not sure for how long this problem has been there. Two weeks is a definite possibility.

Edit:

tail /var/log/cups/error_log

D [08/Feb/2018:15:02:32 +0100] [Client 1] CGI data ready to be sent.
D [08/Feb/2018:15:02:32 +0100] PID 7808 (/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 11.
D [08/Feb/2018:15:02:32 +0100] [Client 1] con->http=0x55f98839eb80
D [08/Feb/2018:15:02:32 +0100] [Client 1] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=2147483647, response=(nil)(), pipe_pid=7808, file=13
D [08/Feb/2018:15:02:32 +0100] [Client 1] Waiting for CGI data.
D [08/Feb/2018:15:02:32 +0100] [Client 1] cupsdSendHeader: code=500, type="text/html", auth_type=0
D [08/Feb/2018:15:02:32 +0100] [Client 1] Waiting for request.
D [08/Feb/2018:15:02:32 +0100] [Client 1] Closing because Keep-Alive is disabled.
D [08/Feb/2018:15:02:32 +0100] [Client 1] Closing connection.

I think this is simply the server waiting on the segfaulted program, but to be sure, it's included now. There's a lot more debug info in there, but it all looks like chaff to me. If you suspect I'm wrong, I'd be happy to dump all of that, too.

Edit: So it is the permission problem, though I'm a bit annoyed that the error is so opaque. It seems that cups is currently installed with the wrong permissions on /etc/cups/cups-files.conf

Last edited by AndyD (2018-02-08 14:46:36)

Offline

#2 2018-02-08 14:29:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [SOLVED] cups-exec segfaults

Have you read any of the dozen recent threads on cups changes?

Did you read the output from pacman when you updated cups (twice)?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2018-02-08 14:35:10

AndyD
Member
Registered: 2014-11-25
Posts: 13

Re: [SOLVED] cups-exec segfaults

You mean this:

:: Proceed with installation? [Y/n] 
(11/11) checking keys in keyring                   [######################] 100%
(11/11) checking package integrity                 [######################] 100%
(11/11) loading package files                      [######################] 100%
(11/11) checking for file conflicts                [######################] 100%
(11/11) checking available disk space              [######################] 100%
:: Processing package changes...
( 1/11) installing qpdf                            [######################] 100%
Optional dependencies for qpdf
    perl: required for fix-qdf [installed]
( 2/11) installing liblouis                        [######################] 100%
( 3/11) installing cups-filters                    [######################] 100%
Optional dependencies for cups-filters
    ghostscript: for non-PostScript printers to print with CUPS to convert
    PostScript to raster images [installed]
    foomatic-db: drivers use Ghostscript to convert PostScript to a printable
    form directly [pending]
    foomatic-db-engine: drivers use Ghostscript to convert PostScript to a
    printable form directly [pending]
    foomatic-db-nonfree: drivers use Ghostscript to convert PostScript to a
    printable form directly
    antiword: needed to convert MS Word documents (requires also docx2txt (AUR)
( 4/11) installing bc                              [######################] 100%
( 5/11) installing cups                            [######################] 100%
>> If you use an HTTPS connection to CUPS, the first time you access
>> the interface it may take a very long time before the site comes up.
>> This is because the first request triggers the generation of the CUPS
>> SSL certificates which can be a very time-consuming job.
Optional dependencies for cups
    xdg-utils: xdg .desktop file support [installed]
    colord: for ICC color profile support [installed]
( 6/11) installing cups-pdf                        [######################] 100%
-------------------------------------------------
To use cups-pdf, restart cups and visit the cups
web interface at http://localhost:631/

You can now add a "Virtual Printer (PDF Printer)"
and use the Postscript/Generic postscript color
printer driver.

Note that cups-pdf has a configuration
file in /etc/cups. The default location for
pdf output is /var/spool/cups-pdf/$username.
-------------------------------------------------
( 7/11) installing foomatic-db                     [######################] 100%
Optional dependencies for foomatic-db
    foomatic-db-ppds: PostScript PPD files [pending]
( 8/11) installing foomatic-db-engine              [######################] 100%
Optional dependencies for foomatic-db-engine
    foomatic-db: linuxprinting.org xml files database to create ppd driver files
    [installed]
( 9/11) installing foomatic-db-ppds                [######################] 100%
(10/11) installing net-snmp                        [######################] 100%
Optional dependencies for net-snmp
    perl-term-readkey: for snmpcheck application [installed]
    perl-tk: for snmpcheck and tkmib applications
    python2: for the python modules [installed]
(11/11) installing hplip                           [######################] 100%
Optional dependencies for hplip
    cups: for printing support [installed]
    sane: for scanner support
    xsane: sane scanner frontend
    python-pillow: for commandline scanning support
    python-reportlab: for pdf output in hp-scan
    rpcbind: for network support
    python-pyqt5: for running GUI and hp-toolbox [installed]
    python-gobject: for running hp-toolbox [installed]
    libusb: for advanced usb support [installed]
    wget: for network support [installed]
:: Running post-transaction hooks...

and yes, I did look for segfaulting cups posts here, and in the general net. Nothing looked similar, except for an old redhat post with a solution hidden behind their customer service.

Offline

#4 2018-02-08 14:36:46

AndyD
Member
Registered: 2014-11-25
Posts: 13

Re: [SOLVED] cups-exec segfaults

Sorry, i did find a segfault:

https://bbs.archlinux.org/viewtopic.php?id=180130

I'm not low on disc space, though.

Offline

#5 2018-02-08 14:52:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] cups-exec segfaults

Although this thread seems to address the same issue in at least one of the other Cups threads, it has been marked as solved -- so I will not be merging them.
I will, however, take this opportunity to close this thread.  AndyD, should you need it reopened, go ahead and use the report link and drop the moderators a note.  Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB