b***@artifex.com
2017-01-25 17:25:13 UTC
http://bugs.ghostscript.com/show_bug.cgi?id=697504
Bug ID: 697504
Summary: Segmentation fault in gdev_mem_set_line_ptrs
Product: Ghostscript
Version: 9.20
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: CUPS driver
Assignee: ***@gmail.com
Reporter: ***@dev-zero.ch
QA Contact: gs-***@ghostscript.com
CC: ***@users.sourceforge.net, ***@easysw.com,
***@redhat.com
Word Size: ---
Some time ago, an update broke printing via CUPS. Unfortunately I don't have
any idea which version it was.
The output from `coredumpctl gdb`:
PID: 30450 (gs)
UID: 4 (lp)
GID: 7 (lp)
Signal: 11 (SEGV)
Timestamp: Wed 2017-01-25 18:12:18 CET (36s ago)
Command Line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE
-dNOMEDIAATTRS -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups
-sMediaClass=Cassette -sMediaType=Plain -r600x600 -dDEVICEWIDTHPOINTS=595
-dDEVICEHEIGHTPOINTS=842 -dcupsBitsPerColor=8 -dcupsColorOrder=0
-dcupsColorSpace=6 -dcupsCompression=5 -dcupsRowFeed=2 -scupsPageSizeName=A4
-I/usr/share/cups/fonts -c <</.HWMargins[0.000000 0.000000 0.000000 0.000000]
/Margins[0 0]>>setpagedevice -f -_
Executable: /usr/bin/gs
Control Group: /system.slice/cups.service
Unit: cups.service
Slice: system.slice
Boot ID: a540585c8bc34dc6a5cd3891ce45547b
Machine ID: 4635c494745e39c7f7ec84a55576cbbe
Hostname: scarlet.dev-zero.ch
Storage:
/var/lib/systemd/coredump/core.gs.4.a540585c8bc34dc6a5cd3891ce45547b.30450.1485364338000000000000.lz4
Message: Process 30450 (gs) of user 4 dumped core.
GNU gdb (Gentoo 7.12 vanilla) 7.12
Copyright (C) 2016 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://bugs.gentoo.org/>.
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 /usr/bin/gs...Reading symbols from
/usr/lib64/debug//usr/bin/gs.debug...done.
done.
[New LWP 30450]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH
-dNOINTERPOLATE -dNOMEDIAATTRS -ss'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 gdev_mem_set_line_ptrs (mdev=***@entry=0x5645833ee238, base=<optimized
out>, ***@entry=0x7fb3d3ca0372 "", raster=***@entry=19832,
line_ptrs=<optimized out>,
setup_height=***@entry=5750) at ./base/gdevmem.c:543
543 *pptr++ = scan_line;
(gdb) bt
#0 gdev_mem_set_line_ptrs (mdev=***@entry=0x5645833ee238, base=<optimized
out>, ***@entry=0x7fb3d3ca0372 "", raster=***@entry=19832,
line_ptrs=<optimized out>,
setup_height=***@entry=5750) at ./base/gdevmem.c:543
#1 0x00007fb3de851834 in gx_default_setup_buf_device (bdev=0x5645833ee238,
buffer=0x7fb3d3ca0372 "", raster=19832, line_ptrs=0x7fb3da9608c2, y=<optimized
out>, setup_height=5750,
full_height=5750) at ./base/gdevprn.c:1556
#2 0x00007fb3de88f69c in clist_rasterize_lines (dev=***@entry=0x7fb3da9f8078,
y=***@entry=0, line_count=<optimized out>, ***@entry=1,
bdev=0x5645833ee238,
render_plane=***@entry=0x7fffe17ea360,
pmy=***@entry=0x7fffe17ea354) at ./base/gxclread.c:733
#3 0x00007fb3de88f990 in clist_get_bits_rectangle
(dev=***@entry=0x7fb3da9f8078, prect=***@entry=0x7fffe17ea8b0,
params=***@entry=0x7fffe17ea8c0, unread=***@entry=0x0)
at ./base/gxclread.c:629
#4 0x00007fb3de8b5612 in clist_get_bits_rect_mt (dev=0x7fb3da9f8078,
prect=0x7fffe17ea8b0, params=0x7fffe17ea8c0, unread=0x0) at
./base/gxclthrd.c:776
#5 0x00007fb3deb1a648 in gx_default_get_bits (dev=0x7fb3da9f8078, y=<optimized
out>, data=<optimized out>, actual_data=0x7fffe17eab90) at ./base/gdevdgbr.c:54
#6 0x00007fb3de851e58 in gdev_prn_get_bits (pdev=***@entry=0x7fb3da9f8078,
y=***@entry=0, str=***@entry=0x56458389b8d0 "",
actual_data=***@entry=0x7fffe17eab90)
at ./base/gdevprn.c:1641
#7 0x00007fb3dea52704 in cups_print_chunked (pdev=***@entry=0x7fb3da9f8078,
src=***@entry=0x56458389b8d0 "", dst=***@entry=0x5645838a0680 "",
srcbytes=***@entry=19832)
at ./cups/gdevcups.c:4609
#8 0x00007fb3dea53553 in cups_print_pages (pdev=0x7fb3da9f8078, fp=<optimized
out>, num_copies=<optimized out>) at ./cups/gdevcups.c:3031
#9 0x00007fb3de853c20 in gdev_prn_output_page_aux (bg_print_ok=0, seekable=0,
flush=1, num_copies=1, pdev=0x7fb3da9f8078) at ./base/gdevprn.c:1091
#10 gdev_prn_output_page (pdev=***@entry=0x7fb3da9f8078, num_copies=1,
flush=1) at ./base/gdevprn.c:1128
#11 0x00007fb3dea553ec in cups_output_page (pdev=0x7fb3da9f8078,
num_copies=<optimized out>, flush=<optimized out>) at ./cups/gdevcups.c:2862
#12 0x00007fb3dea78696 in gs_output_page (pgs=0x5645832799c8, num_copies=1,
flush=1) at ./base/gsdevice.c:210
#13 0x00007fb3debbb1e5 in zoutputpage (i_ctx_p=0x564583295eb0) at
./psi/zdevice.c:369
#14 0x00007fb3deb7baca in interp (pi_ctx_p=***@entry=0x564583242650,
pref=<optimized out>, perror_object=***@entry=0x7fffe17eb6c0) at
./psi/interp.c:1197
#15 0x00007fb3deb7d4ba in gs_call_interp (perror_object=0x7fffe17eb6c0,
pexit_code=0x7fffe17eb6b0, user_errors=1, pref=0x7fffe17eb520,
pi_ctx_p=0x564583242650) at ./psi/interp.c:511
#16 gs_interpret (pi_ctx_p=0x564583242650, pref=***@entry=0x7fffe17eb650,
user_errors=1, pexit_code=0x7fffe17eb6b0, perror_object=<optimized out>) at
./psi/interp.c:468
#17 0x00007fb3deb6edf4 in gs_main_interpret (perror_object=<optimized out>,
pexit_code=<optimized out>, user_errors=<optimized out>, pref=0x7fffe17eb650,
minst=<optimized out>)
at ./psi/imain.c:245
#18 gs_main_run_string_end (minst=<optimized out>, user_errors=<optimized out>,
pexit_code=<optimized out>, perror_object=<optimized out>) at ./psi/imain.c:663
#19 0x00007fb3deb71227 in run_string (options=2, str=0x7fb3dec28821
".runstdin", minst=0x5645832425b0) at ./psi/imainarg.c:977
#20 swproc (minst=***@entry=0x5645832425b0, arg=***@entry=0x7fffe17eec51
"-_", pal=***@entry=0x7fffe17ebdf0) at ./psi/imainarg.c:331
#21 0x00007fb3deb72ac6 in gs_main_init_with_args (minst=0x5645832425b0,
argc=26, argv=0x7fffe17ec928) at ./psi/imainarg.c:222
#22 0x0000564581efab1a in main (argc=26, argv=0x7fffe17ec928) at
./psi/dxmainc.c:86
Bug ID: 697504
Summary: Segmentation fault in gdev_mem_set_line_ptrs
Product: Ghostscript
Version: 9.20
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: CUPS driver
Assignee: ***@gmail.com
Reporter: ***@dev-zero.ch
QA Contact: gs-***@ghostscript.com
CC: ***@users.sourceforge.net, ***@easysw.com,
***@redhat.com
Word Size: ---
Some time ago, an update broke printing via CUPS. Unfortunately I don't have
any idea which version it was.
The output from `coredumpctl gdb`:
PID: 30450 (gs)
UID: 4 (lp)
GID: 7 (lp)
Signal: 11 (SEGV)
Timestamp: Wed 2017-01-25 18:12:18 CET (36s ago)
Command Line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE
-dNOMEDIAATTRS -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups
-sMediaClass=Cassette -sMediaType=Plain -r600x600 -dDEVICEWIDTHPOINTS=595
-dDEVICEHEIGHTPOINTS=842 -dcupsBitsPerColor=8 -dcupsColorOrder=0
-dcupsColorSpace=6 -dcupsCompression=5 -dcupsRowFeed=2 -scupsPageSizeName=A4
-I/usr/share/cups/fonts -c <</.HWMargins[0.000000 0.000000 0.000000 0.000000]
/Margins[0 0]>>setpagedevice -f -_
Executable: /usr/bin/gs
Control Group: /system.slice/cups.service
Unit: cups.service
Slice: system.slice
Boot ID: a540585c8bc34dc6a5cd3891ce45547b
Machine ID: 4635c494745e39c7f7ec84a55576cbbe
Hostname: scarlet.dev-zero.ch
Storage:
/var/lib/systemd/coredump/core.gs.4.a540585c8bc34dc6a5cd3891ce45547b.30450.1485364338000000000000.lz4
Message: Process 30450 (gs) of user 4 dumped core.
GNU gdb (Gentoo 7.12 vanilla) 7.12
Copyright (C) 2016 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://bugs.gentoo.org/>.
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 /usr/bin/gs...Reading symbols from
/usr/lib64/debug//usr/bin/gs.debug...done.
done.
[New LWP 30450]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH
-dNOINTERPOLATE -dNOMEDIAATTRS -ss'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 gdev_mem_set_line_ptrs (mdev=***@entry=0x5645833ee238, base=<optimized
out>, ***@entry=0x7fb3d3ca0372 "", raster=***@entry=19832,
line_ptrs=<optimized out>,
setup_height=***@entry=5750) at ./base/gdevmem.c:543
543 *pptr++ = scan_line;
(gdb) bt
#0 gdev_mem_set_line_ptrs (mdev=***@entry=0x5645833ee238, base=<optimized
out>, ***@entry=0x7fb3d3ca0372 "", raster=***@entry=19832,
line_ptrs=<optimized out>,
setup_height=***@entry=5750) at ./base/gdevmem.c:543
#1 0x00007fb3de851834 in gx_default_setup_buf_device (bdev=0x5645833ee238,
buffer=0x7fb3d3ca0372 "", raster=19832, line_ptrs=0x7fb3da9608c2, y=<optimized
out>, setup_height=5750,
full_height=5750) at ./base/gdevprn.c:1556
#2 0x00007fb3de88f69c in clist_rasterize_lines (dev=***@entry=0x7fb3da9f8078,
y=***@entry=0, line_count=<optimized out>, ***@entry=1,
bdev=0x5645833ee238,
render_plane=***@entry=0x7fffe17ea360,
pmy=***@entry=0x7fffe17ea354) at ./base/gxclread.c:733
#3 0x00007fb3de88f990 in clist_get_bits_rectangle
(dev=***@entry=0x7fb3da9f8078, prect=***@entry=0x7fffe17ea8b0,
params=***@entry=0x7fffe17ea8c0, unread=***@entry=0x0)
at ./base/gxclread.c:629
#4 0x00007fb3de8b5612 in clist_get_bits_rect_mt (dev=0x7fb3da9f8078,
prect=0x7fffe17ea8b0, params=0x7fffe17ea8c0, unread=0x0) at
./base/gxclthrd.c:776
#5 0x00007fb3deb1a648 in gx_default_get_bits (dev=0x7fb3da9f8078, y=<optimized
out>, data=<optimized out>, actual_data=0x7fffe17eab90) at ./base/gdevdgbr.c:54
#6 0x00007fb3de851e58 in gdev_prn_get_bits (pdev=***@entry=0x7fb3da9f8078,
y=***@entry=0, str=***@entry=0x56458389b8d0 "",
actual_data=***@entry=0x7fffe17eab90)
at ./base/gdevprn.c:1641
#7 0x00007fb3dea52704 in cups_print_chunked (pdev=***@entry=0x7fb3da9f8078,
src=***@entry=0x56458389b8d0 "", dst=***@entry=0x5645838a0680 "",
srcbytes=***@entry=19832)
at ./cups/gdevcups.c:4609
#8 0x00007fb3dea53553 in cups_print_pages (pdev=0x7fb3da9f8078, fp=<optimized
out>, num_copies=<optimized out>) at ./cups/gdevcups.c:3031
#9 0x00007fb3de853c20 in gdev_prn_output_page_aux (bg_print_ok=0, seekable=0,
flush=1, num_copies=1, pdev=0x7fb3da9f8078) at ./base/gdevprn.c:1091
#10 gdev_prn_output_page (pdev=***@entry=0x7fb3da9f8078, num_copies=1,
flush=1) at ./base/gdevprn.c:1128
#11 0x00007fb3dea553ec in cups_output_page (pdev=0x7fb3da9f8078,
num_copies=<optimized out>, flush=<optimized out>) at ./cups/gdevcups.c:2862
#12 0x00007fb3dea78696 in gs_output_page (pgs=0x5645832799c8, num_copies=1,
flush=1) at ./base/gsdevice.c:210
#13 0x00007fb3debbb1e5 in zoutputpage (i_ctx_p=0x564583295eb0) at
./psi/zdevice.c:369
#14 0x00007fb3deb7baca in interp (pi_ctx_p=***@entry=0x564583242650,
pref=<optimized out>, perror_object=***@entry=0x7fffe17eb6c0) at
./psi/interp.c:1197
#15 0x00007fb3deb7d4ba in gs_call_interp (perror_object=0x7fffe17eb6c0,
pexit_code=0x7fffe17eb6b0, user_errors=1, pref=0x7fffe17eb520,
pi_ctx_p=0x564583242650) at ./psi/interp.c:511
#16 gs_interpret (pi_ctx_p=0x564583242650, pref=***@entry=0x7fffe17eb650,
user_errors=1, pexit_code=0x7fffe17eb6b0, perror_object=<optimized out>) at
./psi/interp.c:468
#17 0x00007fb3deb6edf4 in gs_main_interpret (perror_object=<optimized out>,
pexit_code=<optimized out>, user_errors=<optimized out>, pref=0x7fffe17eb650,
minst=<optimized out>)
at ./psi/imain.c:245
#18 gs_main_run_string_end (minst=<optimized out>, user_errors=<optimized out>,
pexit_code=<optimized out>, perror_object=<optimized out>) at ./psi/imain.c:663
#19 0x00007fb3deb71227 in run_string (options=2, str=0x7fb3dec28821
".runstdin", minst=0x5645832425b0) at ./psi/imainarg.c:977
#20 swproc (minst=***@entry=0x5645832425b0, arg=***@entry=0x7fffe17eec51
"-_", pal=***@entry=0x7fffe17ebdf0) at ./psi/imainarg.c:331
#21 0x00007fb3deb72ac6 in gs_main_init_with_args (minst=0x5645832425b0,
argc=26, argv=0x7fffe17ec928) at ./psi/imainarg.c:222
#22 0x0000564581efab1a in main (argc=26, argv=0x7fffe17ec928) at
./psi/dxmainc.c:86
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are receiving this mail because:
You are the QA Contact for the bug.