gs crashed with SIGSEGV in gx_pattern_load()

Bug #888898 reported by Thorsten Sick
70
This bug affects 14 people
Affects Status Importance Assigned to Milestone
ghostscript (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Happen on startup, only programs I was starting were Firefox and evolution. There is one printer job there from yesterday (stopped, missing ink)

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: ghostscript 9.04~dfsg-0ubuntu11
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Nov 10 22:12:33 2011
ExecutablePath: /usr/bin/gs
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
Lpstat: device for Photosmart-C5200-series: hp:/usb/Photosmart_C5200_series?serial=MY7CLG218D0559
MachineType: System manufacturer System Product Name
Papersize: a4
PpdFiles: Photosmart-C5200-series: HP Photosmart c5200 Series hpijs, 3.10.6
ProcCmdline: gs -dFirstPage=1 -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=deskjet\ 5600 -dDuplex=false -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- /var/spool/cups/tmp/foomatic-L36baD
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-13-generic root=UUID=c769c37a-b393-4152-b437-a62d5a6d4c04 ro quiet splash vt.handoff=7
SegvAnalysis:
 Segfault happened at: 0x7f1172b65941 <gx_pattern_load+113>: cmpl $0x2,0x58(%rbx)
 PC (0x7f1172b65941) ok
 source "$0x2" ok
 destination "0x58(%rbx)" (0x00000058) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: ghostscript
StacktraceTop:
 gx_pattern_load () from /usr/lib/libgs.so.9
 ?? () from /usr/lib/libgs.so.9
 clist_playback_band () from /usr/lib/libgs.so.9
 clist_playback_file_bands () from /usr/lib/libgs.so.9
 clist_render_rectangle () from /usr/lib/libgs.so.9
Title: gs crashed with SIGSEGV in gx_pattern_load()
UpgradeStatus: Upgraded to oneiric on 2011-10-19 (22 days ago)
UserGroups:

dmi.bios.date: 12/07/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1207
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P7P55D
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1207:bd12/07/2009:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP7P55D:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Thorsten Sick (modern-ronin) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 gx_pattern_size_estimate (has_tags=0, pinst=0x0) at ./base/gxpcmap.c:213
 gx_pattern_load (pdc=0x7fff99a4e2e0, pis=0x7fff99a4bfa0, dev=0xbfa418, select=gs_color_select_texture) at ./base/gxpcmap.c:1218
 gx_dc_pattern_load (pdevc=0x7fff99a4e2e0, pis=0x7fff99a4bfa0, dev=0xbfa418, select=gs_color_select_texture) at ./base/gsptype1.c:1171
 clist_playback_band (playback_action=playback_action_render, cdev=<optimized out>, s=0x7fff99a4ffa0, target=0xbfa418, x0=0, y0=1216, mem=0x6f0f18) at ./base/gxclrast.c:1685
 clist_playback_file_bands (action=playback_action_render, crdev=0x76d798, page_info=<optimized out>, target=0xf74da0, band_first=<optimized out>, band_last=<optimized out>, x0=0, y0=1216) at ./base/gxclread.c:852

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in ghostscript (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
visibility: private → public
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you follow the instructions in "CUPS error_log" and "Capturing print job data" of https://wiki.ubuntu.com/DebuggingPrintingProblems? Thanks.

Changed in ghostscript (Ubuntu):
status: New → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

This is most probably a duplicate of bug 857527.

Revision history for this message
Thorsten Sick (modern-ronin) wrote :

I have not been able to reproduce it...works like a charm.

Sorry. I will keep watching

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Closing, not reproducible any more by original poster.

Changed in ghostscript (Ubuntu):
status: Incomplete → Invalid
Fila Kolodny (fila)
Changed in ghostscript (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fila, can you reproduce this problem, preferably by a Ghostscript command line?

Changed in ghostscript (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Bruce Stough (sbsrs) wrote :

I see a similar crash each time I boot to my 12.04 beta system. I am not sure how Ghostscript is involved, since the print queue is empty.

tags: added: precise
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ghostscript (Ubuntu) because there has been no activity for 60 days.]

Changed in ghostscript (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Matthias Andree (matthias-andree) wrote :

Also affects precise for me, and is, for me anyways, a regression from the previous releases. This happened during printing of a complex PDF to a HP LaserJet 1320 with hpijs driver. Printer configuration and PDF file available upon request; note to self Focus Drvr Assi Syst PDF 2012

Changed in ghostscript (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Matthias, can you please attach the original PDF file, the PPD file for the printer (in /etc/cups/ppd/), and also follow the instructions in "CUPS error_log" and "Capturing print job data" of https://wiki.ubuntu.com/DebuggingPrintingProblems. Please attach the files one by one, do not compress or package them.

Changed in ghostscript (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ghostscript (Ubuntu) because there has been no activity for 60 days.]

Changed in ghostscript (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Matthias Andree (matthias-andree) wrote :
Changed in ghostscript (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Matthias Andree (matthias-andree) wrote :

The File's SHA1 sum is c04bc0ad712f9d26a00e7e3db47778085d2e5f08 and its size 3324586 bytes.

The error for me occurs if I view the file in evince, and print it to the printer in question in 2-up mode.

Revision history for this message
Matthias Andree (matthias-andree) wrote :

Now, since this is copyrighted material, I cannot easily add the printout file per the debug instructions; I can view the printout file - it is in PDF 1.5 format - just fine with gv (which should be using gs) and with gs (without any more arguments besides the file name) and with evince. I can either GnuPG encrypt the file, or send it to Till or other maintainers directly under the proviso it be handled confidentially.

Revision history for this message
Matthias Andree (matthias-andree) wrote :

Running the gs command line on the original PDF file succeeds, running it on the printout file, however, crashes, first the crash:

Starting program: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=/tmp/blah -sMediaType=Plain -sOutputType=0 -dDuplex -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -dcupsInteger0=26 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c -f /home/mandree/launchpad-print-bug-888898
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
INFO: Start rendering...
INFO: Processing page 1...
INFO: Processing page 2...
[New Thread 0x7ffff0e7e700 (LWP 4588)]
[Thread 0x7ffff0e7e700 (LWP 4588) exited]
[New Thread 0x7ffff0e7e700 (LWP 4589)]
[Thread 0x7ffff0e7e700 (LWP 4589) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff739f371 in gx_pattern_load () from /usr/lib/libgs.so.9

WHEREAS -----------------------------------------------

$ /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=/tmp/blah -sMediaType=Plain -sOutputType=0 -dDuplex -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -dcupsInteger0=26 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c -f Ford\ Focus\ -\ Fahrer-Assistenzsysteme.pdf INFO: Start rendering...
INFO: Processing page 1...
INFO: Processing page 2...
INFO: Processing page 3...
INFO: Processing page 4...
INFO: Processing page 5...
INFO: Processing page 6...
INFO: Processing page 7...
INFO: Processing page 8...
INFO: Processing page 9...
INFO: Rendering completed

-------------------------------------------------------------

Does this mean it is an evince or poppler bug that happens from the page rotation? The printout file in the CUPS queue has rotated pages (90° CCW) compared to the original PDF.

Revision history for this message
Alexander Lobov (alexanderlobov) wrote :

I experience the same issue, just after the system booting. The strange thing is that I do no print anything. Is there any way to know what program try to use gs during the booting?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

If you have empty print queues and get a Ghostscript crash right after boot, it is possible that you have a PostScript (or PDF) file on your desktop and Ghostscript is used for generating the thumbnail image (the preview image which you see on your desktop).

Can you all boot 13.10 (Saucy) and 14.04 (Trusty, current version under development) from a live CD/USB stick and try whether the problem is solved in that version? Please do a complete system update after booting this version and do not reboot when being asked for after the update. Simply ignore or minimize the dialog asking yo for rebooting. There is a new version of Ghostscript which can have the crash fixed.

Changed in ghostscript (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Alexander Lobov (alexanderlobov) wrote :

> it is possible that you have a PostScript (or PDF) file on your desktop

that is right, I have some links to PDF files on my desktop.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ghostscript (Ubuntu) because there has been no activity for 60 days.]

Changed in ghostscript (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.