You are not logged in.
When running programs lpq, lp, lpr and lprm from command shell they generate de Segmentation fault.
[user@host ~]$ lpq
Segmentation fault (core dumped)
[user@host ~]$ lp
Segmentation fault (core dumped)
[user@host ~]$ lpr
Segmentation fault (core dumped)
[user@host ~]$ lprm
Segmentation fault (core dumped)I expectec this normal output:
[user@host ~]$ lpq
lpq: Unable to connect to server.
[user@host ~]$ lp
lp: Error - No default destination.
[user@host ~]$ lpr
lpr: Error - No default destination.But the programs appear to be functioning fine when adding the right arguments to them.
Maybe other people experince the same problem? How to resolv this issue?
Below I included information about the running system and debug backtrace.
cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logocore/linux 6.3.5.arch1-1
extra/cups 1:2.4.3-1
extra/cups-filters 1.28.17-4
extra/libcups 1:2.4.3-1
core/glib2 2.76.3-1
core/glibc 2.37-3
core/lib32-glibc 2.37-3
gdb lp core
GNU gdb (GDB) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lp...
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /usr/bin/lp
(No debugging symbols found in lp)
[New LWP 21058]
--Type <RET> for more, q to quit, c to continue without paging--
Downloading separate debug info for /usr/lib/libp11-kit.so.0
Downloading separate debug info for /usr/lib/libidn2.so.0
Downloading separate debug info for /usr/lib/libunistring.so.5
Downloading separate debug info for /usr/lib/libtasn1.so.6
Downloading separate debug info for /usr/lib/liblz4.so.1
Downloading separate debug info for system-supplied DSO at 0x7ffcc4bd6000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `lp'.
--Type <RET> for more, q to quit, c to continue without paging--
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __strcasecmp_l_sse2 () at ../sysdeps/x86_64/multiarch/strcmp-sse2.S:160
160 movlpd (%rdi), %xmm1
(gdb) info registers
rax 0x0 0
rbx 0x55f115b92250 94493939933776
rcx 0x14 20
rdx 0x7fa6600ab4a0 140352552613024
rsi 0x55f115b97bd4 94493939956692
rdi 0x0 0
rbp 0x7ffcc4abbe60 0x7ffcc4abbe60
rsp 0x7ffcc4abb298 0x7ffcc4abb298
r8 0x55f115b97880 94493939955840
r9 0x7fa6600412c0 140352552178368
r10 0x7fa65ff76e30 140352551349808
r11 0xf55e860c791acd0 1105044785952042192
r12 0x1 1
r13 0x55f115b92250 94493939933776
r14 0x1 1
r15 0x0 0
rip 0x7fa65ff732a2 0x7fa65ff732a2 <__strcasecmp_l_sse2+66>
eflags 0x10283 [ CF SF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) bt
#0 __strcasecmp_l_sse2 () at ../sysdeps/x86_64/multiarch/strcmp-sse2.S:160
#1 0x00007fa6600dc477 in ?? () from /usr/lib/libcups.so.2
#2 0x00007fa66012d5fb in ?? () from /usr/lib/libcups.so.2
#3 0x00007fa6600e4c1b in cupsGetNamedDest () from /usr/lib/libcups.so.2
#4 0x000055f1152a705a in ?? ()
#5 0x00007fa65fef2850 in __libc_start_call_main (main=main@entry=0x55f1152a6020, argc=argc@entry=1, argv=argv@entry=0x7ffcc4ac08b8)
at ../sysdeps/nptl/libc_start_call_main.h:58
#6 0x00007fa65fef290a in __libc_start_main_impl (main=0x55f1152a6020, argc=1, argv=0x7ffcc4ac08b8, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcc4ac08a8) at ../csu/libc-start.c:360
#7 0x000055f1152a7555 in ?? ()
(gdb)Last edited by gaull (2023-06-07 08:20:54)
Offline
The issue is resolved after system upgrade with these packages:
$ pacman -Syu
...
Packages (15) aribb24-1.0.3-3 ca-certificates-mozilla-3.90-1 chromium-114.0.5735.106-1 cups-1:2.4.4-1
egl-wayland-2:1.1.12-1 firefox-114.0-1 go-2:1.20.5-1 libblockdev-2.28-4 libcups-1:2.4.4-1
linux-6.3.6.arch1-1 linux-headers-6.3.6.arch1-1 nss-3.90-1 nvidia-530.41.03-16
udisks2-2.9.4-4 vlc-3.0.18-10Running programs:
[user@host ~]$ lp
lp: Error - No default destination.
[user@host ~]$ lpq
lpq: Error - no default destination available.
[user@host ~]$No more Segmentation faults.
Offline
Was a bug in cups that got fixed with the 2.4.4 release. Please mark as [SOLVED] by editing the title in your first post.
Offline