Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67069 - pdflatex crashes when trying to include png images after upgrade to media-libs/libpng-1.2.7
Summary: pdflatex crashes when trying to include png images after upgrade to media-lib...
Status: RESOLVED FIXED
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: Bug
Depends on:
Blocks:
 
Reported: 2004-10-11 03:35 UTC by Anthony Brown
Modified: 2004-11-20 14:58 UTC (History)
4 users (show)

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


Attachments
Test PNG file (test.png,6.29 KB, image/png)
2004-11-19 16:21 UTC, Justin Huff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Brown 2004-10-11 03:35:00 UTC
When converting latex source documents to pdf files with pdflatex the inclusion
of png images no longer works after upgrading to libpng-1.2.7.

Downgrading to libpng-1.2.5-r8 "solves" the problem

Reproducible: Always
Steps to Reproduce:
1. Create latex file (file.tex):
   \documentclass{article}
   \usepackage{graphicx}
   \begin{document}
   \begin{center}
   \includegraphics[width=\textwidth]{an_image.png}
   \end{center}
   \end{document}

2. pdflatex file.tex
3.

Actual Results:  
A segmentation fault occurs and pdflatex crashes

Expected Results:  
a pdf file named file.pdf which includes the png image

Portage 2.0.50-r11 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.8.1)
=================================================================
System uname: 2.6.8.1 x86_64 12
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /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/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
http://gentoo.tiscali.nl/gentoo/
ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr
encode esd f77 fftw foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde ldap
libg++ libwww mikmod motif mozilla mpeg mysql ncurses nls nogcj oggvorbis opengl
oss pam pdflib perl png python qt quicktime readline ruby sdl slang spell ssl
tcltk tcpd tetex tiff truetype xml2 xmms xprint xv zlib"
Comment 1 Christian Theune 2004-10-11 06:31:07 UTC
Happens on i86 as well. 

Argh. I can't change the settings. Grrr.

I propose:

- Setting Hardware to "all".
- Using 2004.2 currently. 
- Severity is critical imho.

Would be nice if this could be resolved soon. Strace showed a munmap that segfaults.
Comment 2 Justin Huff 2004-11-17 10:02:14 UTC
I'm seeing this as well and reported it in 60835
I tried tetex-2.99.1.20041026 with the same result.

The errors are a bunch of

libpng warning: Ignoring bad adaptive filter type

followed by:
libpng error: incorrect data check

Error: pdfelatex: libpng: internal error
 ==> Fatal error occurred, the output PDF file is not finished!

Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 14:26:54 UTC
It doesn't fail on my machine with libpng-1.2.7 and 
tetex-2.99.3.20041109. Could you attach the png
image file you actually failed to run pdflatex on?
Comment 4 Justin Huff 2004-11-19 16:21:41 UTC
Created attachment 44328 [details]
Test PNG file
Comment 5 Justin Huff 2004-11-19 16:24:26 UTC
Using:
\documentclass[12pt]{article}
\usepackage{graphicx}

\begin{document}
\includegraphics[width=5in]{test.png}
\end{document}

on libpng-1.2.7 and pdfeTeX, Version 3.141592-1.20a-2.2 (from tetex 2.99.1.20041026)
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 20:00:35 UTC
Thanks, this was a bug introduced in libpng-1.2.7.
libpng-1.2.8beta4 isn't affected by this bug, but
I extracted a patch to fix it for libpng-1.2.7 and
added to CVS as libpng-1.2.7-r1.ebuild.
Please run `emerge --sync` and test if this
solves your problem.
Comment 7 Christian Theune 2004-11-20 03:03:10 UTC
Yes. Problem is solved by using 1.2.7-r1. Thanks.
Comment 8 Anthony Brown 2004-11-20 07:06:33 UTC
I can confirm that upgrading to libpng-1.2.7-r1 resolves the problem.
Many thanks!
Anthony
Comment 9 Justin Huff 2004-11-20 14:58:03 UTC
Works for me as well, thanks!