Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697868 - net-print/cups-2.3.0 - crash in cgiGetArray at var.c:173
Summary: net-print/cups-2.3.0 - crash in cgiGetArray at var.c:173
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-16 15:39 UTC by Martin Mokrejš
Modified: 2019-10-16 20:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb stacktrace (crash.txt,13.68 KB, text/plain)
2019-10-16 15:41 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2019-10-16 15:39:59 UTC
I am still having some issues with the recent cups+cups-filters combo. For example, I cannot list existing jobs and cancel them. There is just no button for that. The only way to cancel all jobs is through http://127.0.0.1:631/admin -> Jobs ->  Manage jobs. I think there was always a way to cancel an individual job listed in in those pending currently.

I see some crashes in /var/dump so I assume they are related to this broken functionality:

# gdb /usr/libexec/cups/cgi-bin/jobs.cgi core.jobs.cgi.2937

Reading symbols from /usr/libexec/cups/cgi-bin/jobs.cgi...
[New LWP 2937]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/cups/cgi-bin/jobs.cgi which_jobs=completed'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f69c54cd521 in __strlen_avx2 () from /lib64/libc.so.6
(gdb) where
#0  0x00007f69c54cd521 in __strlen_avx2 () from /lib64/libc.so.6
#1  0x00007f69c53edb5f in strdup () from /lib64/libc.so.6
#2  0x00005569a3e216b5 in cgiGetArray (name=<optimized out>, element=<optimized out>) at var.c:173
#3  0x00005569a3e20037 in cgi_copy (out=out@entry=0x7f69c552e760 <_IO_2_1_stdout_>, in=in@entry=0x5569a43a7530, element=element@entry=1, term=term@entry=125 '}', indent=indent@entry=4) at template.c:386
#4  0x00005569a3e20cc2 in cgi_copy (out=out@entry=0x7f69c552e760 <_IO_2_1_stdout_>, in=in@entry=0x5569a43a7530, element=element@entry=0, term=term@entry=125 '}', indent=indent@entry=2) at template.c:344
#5  0x00005569a3e2051c in cgi_copy (out=0x7f69c552e760 <_IO_2_1_stdout_>, in=in@entry=0x5569a43a7530, element=element@entry=0, term=term@entry=0 '\000', indent=indent@entry=0) at template.c:598
#6  0x00005569a3e20fcb in cgiCopyTemplateLang (tmpl=tmpl@entry=0x5569a3e235aa "jobs.tmpl") at template.c:144
#7  0x00005569a3e1e5fe in cgiShowJobs (http=<optimized out>, dest=0x0) at ipp-var.c:1502
#8  0x00005569a3e1c7c1 in main () at jobs.c:103
(gdb)


My setup is:

[ebuild   R    ] net-print/cups-2.3.0::gentoo  USE="X dbus pam ssl threads usb -acl -debug -kerberos -lprng-compat (-selinux) -static-libs -systemd -xinetd -zeroconf" 0 KiB
[ebuild   R    ] net-print/cups-filters-1.25.11::gentoo  USE="dbus foomatic jpeg pdf perl png postscript tiff -ipp_autosetup -ldap -pclm -static-libs -test -zeroconf" 0 KiB
[ebuild   R    ] net-print/gutenprint-5.3.3-r1::stefantalpalaru  USE="cups gimp gtk nls ppds readline -static-libs" 0 KiB
[ebuild   R    ] net-print/hplip-3.19.8::gentoo  USE="X fax hpcups hpijs libnotify parport policykit qt5 scanner snmp -doc -kde -libressl -libusb0 -minimal -static-ppds" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_5 -python3_7" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7" 0 KiB
Comment 1 Martin Mokrejš 2019-10-16 15:41:11 UTC
Created attachment 592884 [details]
gdb stacktrace