Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124731 - gs-esp 8 crashes on some .ps files
Summary: gs-esp 8 crashes on some .ps files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 18:59 UTC by Dima Ryazanov
Modified: 2006-05-28 15:51 UTC (History)
0 users

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


Attachments
Testcase for gs crash (slashdot.ps,252.99 KB, application/postscript)
2006-03-02 19:00 UTC, Dima Ryazanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2006-03-02 18:59:02 UTC
Very often, when trying to print something to PDF using KDE's print dialog, KDE shows an error message, saying that the "gs" process ended abnormally.

Apparently, gs crashes on certain .ps files. I'm using version 8.15.1.
I will attach a testcase.


Portage 2.1_pre5-r2 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r3, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.noved.org/"
LC_ALL="en_US.UTF-8"
LINGUAS="en uk ru de es"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac aalib acl acpi aim alsa asf audiofile avi bcmath berkdb bitmap-fonts browserplugin bzip2 cairo cdparanoia crypt css cups curl dbus dga directfb divx4linux dri dvd dvdr emboss encode fbcon ffmpeg flash foomaticdb gcj gdbm gif glut gpm gstreamer gtk gtk2 hal icq idn imlib ipv6 javascript jikes jpeg jpeg2k kde kdeenablefinal lcms lesstif libg++ libwww litz live lm_sensors logitech-mouse mad mikmod mmx mng mp3 mpeg mplayer msn musicbrainz ncurses nls nptl nsplugin offensive ogg oggvorbis openexr opengl oscar pam pdf pdflib perl pic png povray ppds qt quicktime rdesktop readline real rtc samba scanner sdl session sftplogging slp snmp speex spell sse ssl subversion svg symlink tcpd tetex theora tiff timidity truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs xcomposite xine xinerama xml2 xprint xscreensaver xv xvid yahoo zeroconf zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en linguas_uk linguas_ru linguas_de linguas_es userland_GNU video_cards_radeon video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, MAKEOPTS
Comment 1 Dima Ryazanov 2006-03-02 19:00:48 UTC
Created attachment 81172 [details]
Testcase for gs crash

Here's what I get:

dima ~ $ gs -q -dSAFER -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=slashdot.pdf -sPAPERSIZE=a4  -c .setpdfwrite -f /tmp/slashdot.ps
Segmentation fault (core dumped)
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-04-02 15:15:27 UTC
DOes the same also happen with ghostscript-gnu -afpl or gs-esp-7?
Comment 3 Dima Ryazanov 2006-04-02 18:03:11 UTC
I never realized there were multiple implementations of ghostscript...

I tried -gnu, -afpl, and -esp-7 - and they all work perfectly, as far as I can tell. So it looks like it's just a bug in -esp-8.
(Though I was sure I upgraded to 8 *because* of the bug in 7...)

Just in case, I recompiled -esp-8, but it still crashes.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-04-02 21:58:28 UTC
ok, another gs-esp-8 bug :(
I suggest you to use gs-gnu in the time being. I have also made gs-gnu the virtual default.
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-28 15:51:56 UTC
This works for me now with the latest gs-esp-8 version in portage, I also changed back the virtual. Can you confirm?