Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111188 - pnmtopng from media-libs/netpbm segfaults
Summary: pnmtopng from media-libs/netpbm segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 13:44 UTC by Matthew Gates
Modified: 2006-10-28 19:49 UTC (History)
1 user (show)

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


Attachments
file that causes pnmtopng to choke. (test.pnm,238.78 KB, image/pnm)
2005-11-01 18:38 UTC, Matthew Gates
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Gates 2005-11-01 13:44:23 UTC
When running latex2html, it excludes grraphics that are in eps format. The
culprit appears to be the pstoimg.pl script:

$ ls -l parallax.eps
-rw-r--r--  1 matthew users 77400 Nov  1 11:57 parallax.eps
$ PERL5LIB:/usr/lib/latex2html" perl /usr/lib/latex2html/pstoimg.pl parallax.eps
pstoimg.pl V2002-2-1 (Revision 1.19, Perl 5.008006)
pstoimg.pl: Processing parallax.eps
pstoimg.pl: Error: "/usr/bin/ppmquant 256 < /tmp/p17779.pnm | /usr/bin/pnmtopng
 > parallax.png" failed: Bad file descriptor



Reproducible: Always
Steps to Reproduce:
1. create an eps file (I made mine by exporting in eps from inkscape)
2. create a latex document that includes this graphic. (I used lyx to generate one)
3. run latex2html on the .tex file.

Actual Results:  
html was generated, but all figures that were in eps format were excluded

Expected Results:  
eps figures should be converted to a raster format and be visible from html
version of document

$ emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 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.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium4 -pipe -mno-sse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium4 -pipe -mno-sse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
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 7zip X a52 aac aalib accessibility acpi adns aim alsa amarok amr ao
aotuv apache2 applet arts asm async atlas audiofile avi bash-completion bdf
berkdb bidi bitmap-fonts blender-game bluetooth bonobo bzip2 cairo calendar
ccache cdda cddb cdio cdparanoia cdr cegui cg cgi corba cpudetection crypt css
cups curl curlwrappers daap dbm dbus dbx devil dga dhcp divx4linux doc dpms
dumb-allegro dv dvb dvd dvdr dvdread dxr3 editor eds emacs emboss encode esd
ethereal examples exif fam fame fb fbcon ffmpeg fftw flac flash fmod foomaticdb
fortran freetds freetts freetype gb gd gdbm gif gimp gimpprint glitz gmail
gmtfull gmthigh gmtsuppl gmttria gnome gnome-print gnomedb gnuplot gnutls
gphoto2 gpm gps gsl gstreamer gtk gtk2 gtkhtml guile hbci icq id3 ieee1394
imagemagick imlib inifile inkjar ipv6 irmc jabber jack jack-tmpfs java
javascript jikes john joystick jpeg jpeg2k junit kcal kde koffice-plugin ladspa
lame lcd lcms ldap lesstif libcaca libg++ libvisual libwww live lzo mad maildir
matroska mikmod ming mjpeg mmap mmx mmxext mng mod motif mozilla mp3 mp4live
mpeg mpeg2 mpeg4 mplayer msn mysql mythtv nas ncurses network nls nptl nsplugin
ntlm nvidia offensive ofx ogdi ogg oggvorbis ogre openal openexr opengl oscar
oss pam parse-clocks pcmcia pcre pda pdflib perforce perl php physfs pic player
plotutils plugin png pnp posix postgres ppds python qt quicktime readline real
recode rss samba scanner screen sdl sharedmem shorten sndfile soap sounds sox
speech speex spell spl sql sqlite sse sse2 ssh ssl stencil-buffer stream
subtitles subversion svg svga svgz tcltk tcpd tetex theora threads tiff timidity
transcode truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vcdimager
vidix visualization vlm voice vorbis wavelan webdav wifi win32codecs wma123 wmf
wxwindows xanim xface xine xml xml2 xmms xosd xpm xv xvid xvmc yahoo yv12 zeo
zeroconf zlib zvbi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Matthew Gates 2005-11-01 18:38:36 UTC
Created attachment 71903 [details]
file that causes pnmtopng to choke.

test convertsion using command "pnmtopng test.pnm > test.png".	I get SEGV.
Comment 2 Matthew Gates 2005-11-01 18:49:30 UTC
Looks like the problem is pnmtopng choking on the intermediate pnm file - looks
like the trouble is with the netpbm package - possibly one of my use flags? I
attached a test file that causes the choke, can someone test and see if they get
the same error?
Comment 3 Alexandre Buisse (RETIRED) gentoo-dev 2005-11-02 00:20:10 UTC
Hi,

I obtain the same error with netpbm-10.29, all USE flags enabled. I used an eps
graphics of mine which, iirc, wasn't generated by inkscape but xfig.
It occurs in a sscanf in pnmtopng.c, so I think the problem comes from upstream.
I'll investigate further, but later.

And please don't attach big binary files to bugzilla, but store them on an
external ftp or indicate how to recreate them.
Comment 4 Alexandre Buisse (RETIRED) gentoo-dev 2005-11-07 10:14:40 UTC
After some more code reading, I don't see how this could have been caused by
gentoo... So the problem must be upstream, please report it there.
Comment 5 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-26 13:07:14 UTC
This seems related to the media-libs/netpbm package, so reassigning to media-gfx, and changing the subject to match the issue.
Comment 6 SpanKY gentoo-dev 2006-01-26 18:32:16 UTC
sounds like Bug 115489 (which i'm unable to reproduce as well as this one) ...
Comment 7 SpanKY gentoo-dev 2006-01-26 18:33:18 UTC
although you are using invalid CFLAGS

-march=pentium4 is not correct for a pentium m machine
Comment 8 SpanKY gentoo-dev 2006-01-26 19:07:34 UTC
can you try upgrading to 10.31 and see if that fixes things for you ?
Comment 9 SpanKY gentoo-dev 2006-02-02 14:41:24 UTC
well re-open if 10.31 doesnt fix the issue
Comment 10 Alexandre Buisse (RETIRED) gentoo-dev 2006-10-28 19:49:48 UTC
*** Bug 153078 has been marked as a duplicate of this bug. ***