cups segfault when printing or editing printers

Bug #1966590 reported by Serge Hallyn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
New
Undecided
Unassigned

Bug Description

Editing a printer in localhost:631, cups keeps segfaulting after (possibly related) access denied messages:

[932068.059601] audit: type=1400 audit(1648388571.894:566): apparmor="DENIED" operation="connect" profile="/usr/bin/evince" name="/run/user/1000/at-spi/bus_0" pid=853633 comm="evince" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=1000
[932069.716730] audit: type=1400 audit(1648388573.550:567): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=853664 comm="cupsd" capability=12 capname="net_admin"
[932069.797610] audit: type=1400 audit(1648388573.630:568): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=853668 comm="cups-browsed" capability=23 capname="sys_nice"

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: cups 2.4.1op1-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-22.22-generic 5.15.19
Uname: Linux 5.15.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: pass
CupsErrorLog:
 E [27/Mar/2022:08:39:47 -0500] [Job 13] No suitable destination host found by cups-browsed.
 W [27/Mar/2022:08:39:47 -0500] [Job 13] Backend returned status 6 (retry job later)
CurrentDesktop: qtile
Date: Sun Mar 27 08:43:53 2022
InstallationDate: Installed on 2022-02-25 (29 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
Lpstat: device for HP_OfficeJet_200_Mobile_Series: ipps://HP%20OfficeJet%20200%20Mobile%20Series%20%5BBAD650%5D._ipps._tcp.local/
MachineType: LENOVO 20XXS3JC01
Papersize: letter
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP_OfficeJet_200_Mobile_Series.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP_OfficeJet_200_Mobile_Series.ppd: Permission denied
ProcEnviron:
 TERM=st-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-22-generic root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
SourcePackage: cups
UpgradeStatus: Upgraded to jammy on 2022-03-16 (10 days ago)
dmi.bios.date: 12/02/2021
dmi.bios.release: 1.51
dmi.bios.vendor: LENOVO
dmi.bios.version: N32ET75W (1.51 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20XXS3JC01
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.32
dmi.modalias: dmi:bvnLENOVO:bvrN32ET75W(1.51):bd12/02/2021:br1.51:efr1.32:svnLENOVO:pn20XXS3JC01:pvrThinkPadX1CarbonGen9:rvnLENOVO:rn20XXS3JC01:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20XX_BU_Think_FM_ThinkPadX1CarbonGen9:
dmi.product.family: ThinkPad X1 Carbon Gen 9
dmi.product.name: 20XXS3JC01
dmi.product.sku: LENOVO_MT_20XX_BU_Think_FM_ThinkPad X1 Carbon Gen 9
dmi.product.version: ThinkPad X1 Carbon Gen 9
dmi.sys.vendor: LENOVO

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

The permission denied errors appear unrelated: after stopping apparmor and restarting cups, I still get:

[932499.635684] cupsd[855122]: segfault at 0 ip 00007f39be2ff98c sp 00007ffc12737718 error 4 in libc.so.6[7f39be176000+195000]
[932499.635695] Code: 1e fa 89 f8 31 d2 62 a1 fd 00 ef c0 09 f0 25 ff 0f 00 00 3d 80 0f 00 00 0f 8f 70 03 00 00 62 e1 fe 28 6f 0f 62 b2 75 20 26 d1 <62> f3 75 22 3f 0e 00 c5 fb 93 c9 ff c1 74 45 f3 0f bc d1 0f b6 04
[932503.181032] landscape-packa[855168]: segfault at 7ff7440e7fc0 ip 00007ff32fbd3b7a sp 00007ffc2e910360 error 4 in apt_pkg.cpython-310-x86_64-linux-gnu.so[7ff32fbcd000+1f000]
[932503.181041] Code: 48 8b 55 20 4c 8b 75 28 49 89 c4 8b 52 08 49 8b 46 50 48 8d 14 52 4c 8d 3c d0 4c 39 f8 0f 84 b0 00 00 00 4c 8b 2d 0e 04 03 00 <41> 8b 17 31 f6 4c 89 ef 48 8d 04 d5 00 00 00 00 48 29 d0 49 8b 56

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This makes it impossible for me to print from my laptop :(

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

(Forcibly downgrading to the impish packages restored ability to print.)

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.