Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200373 - cups-1.3.4-r3: unable to print due to /usr/libexec/cups/filter/pstops segfault with outputorder=reverse
Summary: cups-1.3.4-r3: unable to print due to /usr/libexec/cups/filter/pstops segfaul...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-26 07:57 UTC by Jeremy Huddleston (RETIRED)
Modified: 2008-04-14 20:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2007-11-26 07:57:27 UTC
I am unable to print due to a crash that is appearing in pstops:

/var/log/cups # grep crash error_log 
E [25/Nov/2007:23:41:43 -0800] PID 22524 (/usr/libexec/cups/filter/pstops) cras ed on signal 11!

I discovered it was being run with these options:
/usr/libexec/cups/filter/pstops 600 root tmpxMUUqY 1 "media=Letter finishings=3 number-up=1 outputorder=reverse job-uuid=urn:uuid:33f4ca04-fbeb-342d-5944-bf92112eed86" /var/spool/cups/d00600-001

If I remove outputorder=reverse, pstops does not segfault.

---

Starting program: /usr/libexec/cups/filter/pstops 600 root tmpxMUUqY 1 "media=Letter finishings=3 number-up=1 outputorder=reverse job-uuid=urn:uuid:33f4ca04-fbeb-342d-5944-bf92112eed86" /var/spool/cups/d00600-001
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff855fd000
DEBUG: slow_collate=0, slow_duplex=0, slow_order=1
%!PS-Adobe-3.0
DEBUG: Before copy_comments - %!PS-Adobe-3.0
DEBUG: %!PS-Adobe-3.0
DEBUG: %%BoundingBox: 0 0 612 792
DEBUG: %%Pages: 1
%%For: (root)
%%Title: (tmpxMUUqY)
DEBUG: Before copy_prolog - /hplipversion (2.7.10) def
DEBUG: Before copy_setup - DEBUG: Before page loop - 
Program received signal SIGSEGV, Segmentation fault.
0x0000000000405789 in copy_dsc (fp=0x60a2b0, doc=0x7fff855c42e0, ppd=0x0, 
    line=0x7fff855c22e0 "", linelen=0, linesize=8192) at pstops.c:1001
1001		copy_bytes(doc->temp, 0, pageinfo->offset);
(gdb) bt
#0  0x0000000000405789 in copy_dsc (fp=0x60a2b0, doc=0x7fff855c42e0, ppd=0x0, 
    line=0x7fff855c22e0 "", linelen=0, linesize=8192) at pstops.c:1001
#1  0x0000000000406afb in main (argc=<value optimized out>, 
    argv=0x7fff855c4978) at pstops.c:364
(gdb) 

---

Portage 2.1.4_rc3 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.23-hardened-r1 x86_64)
=================================================================
System uname: 2.6.23-hardened-r1 x86_64 AMD Athlon(tm) 64 Processor 2800+
Timestamp of tree: Sun, 25 Nov 2007 10:16:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r2, 2.17-r1, 2.17.50.0.18, 2.18-r1, 2.18.50.0.1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -g3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -g3"
DISTDIR="/var/tmp/gentoo/distfiles"
FEATURES="bindeps candy distlocks keeptemp keepwork metadata-transfer nostrip sandbox sfperms strict unmerge-orphans userfetch userpriv userpriv_fakeroot usersandbox verify-rdepend"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/gentoo/packages-amd64"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/tmp/gentoo/portage"
SYNC="rsync://cloud.cs.berkeley.edu/gentoo-portage"
USE="3dnow 3dnowext 3ds S3TC X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adplug aim alsa amd amd64 amr ao apache2 artworkextra atlas audiofile avahi avantgo bash-completion bcmath berkdb bidi bindist bitmap-fonts bl browserplugin buttons bzip2 bzlib c++ cairo calendar caps cdda cddb cdio cdparanoia cdr cgi chroot clamav clanJavaScript clanVoice clearpasswd cli client clisp cpudetection cracklib crciprec crypt cscope ctype cups curl curlwrappers cvsgraph daap dba dbase dbcp dbm dbus dbx debug dedicated dga dio divx4linux dmx dnd doc dri dts dv dvd dvdr dvdread edl eds elf emacs emacs-w3 enca encode erandom ethereal evms2 evo exif expat ext-png ext-zlib extensions extrafilters f77 faac faad fam fame fat fax fbcon fbdev ffmpeg firefox flac flash flatfile fltk fluidsynth font-server foomaticdb fortran fpx freebox freetype fs ftp gb gcj gcl gd-external gdbm ggi gif gimp gimpprint glade glibc-omitfp glut gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gnuplot gnutls gphoto2 gpm gps graphviz gs gstreamer gtk gtkhtml hal hbci hdri howl howl-compat httpd iconv icq idea idl ieee1394 image imagemagick imap imlib imlib2 innodb ipalias ipod iproute2 ipsec ipv6 isdnlog jabber jack javacomm javamail javascript jbig jikes joystick jp2 jpeg jpeg2k junit justify kde ladcca lcms libcaca libclamav libdsk libedit libgda libnotify libsamplerate lids linuxthreads-tls lirc live lm_sensors lmtp log4j logitech-mouse ltsp lua lucid lzo mad maildir makecheck matroska mbrola mcal md5sum mdnsresponder-compat mhash midi mikmod mime mixer mjpeg mmap mmx mmxext mng mod modplug mozcalendar mozctl mozdevelop mozilla mozp3p mozsvg mozxmlterm mp2 mp3 mp4 mp4live mpd mpeg mpeg4 mpi mplayer mpm-prefork msession msn mtp mudflap mule multislot musepack music musicbrainz mysql mysqli mythtv nas native ncurses neXt network nis nls nptl nptlonly nsplugin nvidia nviz oav objc offensive ofx ogg oggvorbis oldworld openal openexr opengl openmp oscar oss pam parport parse-clocks pcap pcntl pcre pda pdf pear perl php physfs pic pie plotutils png pnm pnp portaudio posix povray ppds pppd prelude procmail pulseaudio pvr python q32 qhull qt qt3 qt3support qt4 quicktime rar readline recode reflection regexp rplay rpm rtc rtsp samba sasl savedconfig scanner sdk sdl sdl-image sdl-sound sdlaudio server session sharedmem shout sid silc simplexml skey skins sndfile snmp soap sockets socks5 sox speex spell spl sql sqlite sqlite3 src srt sse sse2 ssl startup-notification stream subversion svg syslog sysvipc tcpd teletext tga theora tidy tiff timidity tokenizer transcode transparent-proxy truetype truetype-fonts trusted tta type1 type1-fonts ucs2 unicode upnp usb utf8 v4l v4l2 vcd vda vdr videos vim-with-x virus-scan visualization vlm vorbis wav wavpack wddx wma wmf wsconvert wxwin wxwindows x264 xanim xchattext xemacs xext xface xforms xfs xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid xvmc yahoo zeo zeroconf zip zlib zoran zvbi" ALSA_CARDS="via82xx bt87x emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2008-03-10 09:23:09 UTC
Jeremy, can you reproduce the bug with more recent ~cups-1.3.6?
Comment 2 Timo Gurr (RETIRED) gentoo-dev 2008-04-14 20:59:48 UTC
Closing for now, please reopen if it's still an issue for you with a recent cups 1.3 version.