[cups-devel] Add printer, pam with libprelude, core-dump/ANOM_ABEND

tjoen tjoen at dds.nl
Fri Feb 24 01:56:41 PST 2017


System Linux x86_64 based on LFS

Relevant software with date compilation:
Feb 16 13:24 cups-2.2.2
Feb 20 13:02 Linux-PAM-1.3.0 recompiled
Jan  5 10:57 libprelude-3.1.0
Aug 20  2016 glibc-2.24
driver(ppds and filters) for M2020 from Samsung

On my older x32 LFS without libprelude the driver+printer worked

Current problem:
1 localhost:632
2 Adding Printers and Classes
3 Add Printer
4 User Name: root Password: 
5 Select Local Printers: Samsung M2020
6 Continue
7 Continue
8 Add Printer -> This site can’t be reached = core dumped

/etc/pam.d/cups is the default from cups.
I tried without "shadow nodelay" but same result

No problems pam_unix.so with /sbin/login, /bin/su
In /usr/bin/gdm athorisation warning, no core-dump, solved by 
replacing pam_unix.so by pam_permit in account in 
/etc/pam.d/gdm-password

journalctl:
...
17:44:35 kernel: usb 1-5.4: Product: M2020 Series
17:44:35 kernel: usb 1-5.4: Manufacturer: Samsung Electronics Co., Ltd.
17:44:35 kernel: usb 1-5.4: SerialNumber: ZF45B8GDAC03J0Y
...
17:47:21 audit[271]: USER_AUTH pid=271 uid=0 subj=kernel \
  msg='op=PAM:authentication grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" hostname=localhost addr=127.0.0.1 \
  terminal=cups res=success'
17:47:21 kernel: audit: type=1100: pid=271 uid=0 subj=kernel \
  msg='op=PAM:authentication grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" hostname=localhost addr=127.0.0.1 \
  terminal=cups res=success'
17:47:21 cupsd[271]: INFO: Connecting to 127.0.0.1:4690 \
  prelude Manager server.
17:47:21 cupsd[271]: INFO: TLS authentication succeed with \
  Prelude Manager.
17:47:21 audit[271]: CRED_ACQ pid=271 uid=0 subj=kernel \
  msg='op=PAM:setcred grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" hostname=localhost \
  addr=127.0.0.1 terminal=cups res=success'
17:47:21 kernel: audit: type=1103: pid=271 uid=0 subj=kernel \
  msg='op=PAM:setcred grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" \
  hostname=localhost addr=127.0.0.1 terminal=cups res=success'
17:47:21 audit[271]: USER_ACCT pid=271 uid=0 subj=kernel \
  msg='op=PAM:accounting grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" \
  hostname=localhost addr=127.0.0.1 terminal=cups res=success'
17:47:21 kernel: audit: type=1101: pid=271 uid=0 subj=kernel \
  msg='op=PAM:accounting grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" \
  hostname=localhost addr=127.0.0.1 terminal=cups res=success'
17:47:21 kernel: usblp0: removed
17:47:21 kernel: usblp 1-5.4:1.0: usblp0: USB Bidirectional \
  printer dev 7 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3321
...

---comment---
Meanwhile the only error regarding this printer in
/var/log/cups/error_log:
E [23/Feb/2017:17:47:37 +0100] [cups-driverd] Bad driver information \
  file \"/usr/share/cups/model/uld-samsung/cms/M2020sc.cts\"!

Last message:
E [23/Feb/2017:17:47:38 +0100] [cups-driverd] \
  Skipping "/usr/share/ppd/uld-samsung\": loop detected!
---end comment---

...
17:47:54 audit[271]: USER_AUTH pid=271 uid=0 subj=kernel \
  msg='op=PAM:authentication grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" hostname=localhost addr=127.0.0.1 \
  terminal=cups res=success'
17:47:54 kernel: audit: type=1100: pid=271 uid=0 subj=kernel \
  msg='op=PAM:authentication grantors=pam_unix acct="root" \
  exe="/usr/sbin/cupsd" hostname=localhost addr=127.0.0.1 \
  terminal=cups res=success'
17:47:54 cupsd[271]: INFO: Connecting to 127.0.0.1:4690 \
  prelude Manager server.
17:47:54 cupsd[271]: INFO: TLS authentication succeed with \
  Prelude Manager.
17:47:54 audit[271]: ANOM_ABEND uid=0 gid=0 subj=kernel \
  pid=271 comm="cupsd" exe="/usr/sbin/cupsd" sig=6
17:47:54 kernel: audit: type=1701: uid=0 gid=0 subj=kernel pid=271 \
  comm="cupsd" exe="/usr/sbin/cupsd" sig=6
17:47:54 systemd[1]: Created slice system-systemd\x2dcoredump.slice.
17:47:54 systemd[1]: Started Process Core Dump (PID 1102/UID 0).
17:47:54 audit[1]: SERVICE_START pid=1 uid=0 subj=kernel \
  msg='unit=systemd-coredump at 0-1102-0 comm="systemd" \
  exe="/lib64/systemd/systemd" hostname=? addr=? \
  terminal=? res=success'
17:47:54 kernel: audit: type=1130: pid=1 uid=0 subj=kernel \
  msg='unit=systemd-coredump at 0-1102-0 comm="systemd" \
  exe="/lib64/systemd/systemd" hostname=? addr=? \
  terminal=? res=success'
17:47:54 kernel: audit: type=1131: pid=1 uid=0 subj=kernel \
  msg='unit=org.cups.cupsd comm="systemd" \
  exe="/lib64/systemd/systemd" \
  hostname=? addr=? terminal=? res=failed'
17:47:54 audit[1]: SERVICE_STOP pid=1 uid=0 subj=kernel \
  msg='unit=org.cups.cupsd comm="systemd" 
  exe="/lib64/systemd/systemd" hostname=? addr=? terminal=? res=failed'
17:47:54 systemd[1]: org.cups.cupsd.service: Main process exited, \
  code=dumped, status=6/ABRT
17:47:54 systemd[1]: org.cups.cupsd.service: Unit entered failed state.
17:47:54 systemd[1]: org.cups.cupsd.service: Failed with result \
  'core-dump'.
17:47:56 systemd-coredump[1103]: Process 271 (cupsd) of user 0 \
  dumped core.
                                                   
	Stack trace of thread 271:
	#0  0x00007efe67cc807f raise (libc.so.6)
	#1  0x00007efe67cc94aa abort (libc.so.6)
	#2  0x00007efe663ee0a6 _prelude_thread_deinit
(libprelude.so.23)
	#3  0x00007efe663db3af prelude_deinit (libprelude.so.23)
	#4  0x00007efe6a06371f n/a (libpam.so.0)
	#5  0x00007efe6a05e1f3 pam_authenticate (libpam.so.0)
	#6  0x0000559573a996e0 n/a (/usr/sbin/cupsd)
17:47:56 kernel: audit: type=1131: pid=1 uid=0 subj=kernel \
  msg='unit=systemd-coredump at 0-1102-0 comm="systemd" \
  exe="/lib64/systemd/systemd" hostname=? addr=? \
  terminal=? res=success'
17:47:56 audit[1]: SERVICE_STOP pid=1 uid=0 subj=kernel \
  msg='unit=systemd-coredump at 0-1102-0 comm="systemd" \
  exe="/lib64/systemd/systemd" hostname=? addr=? \
  terminal=? res=success'



More information about the cups mailing list