Bug#278705: tetex-bin: pdflatex seg faults on loading particular PNG
On 29.10.04 Graham Williams (Graham.Williams@togaware.com) wrote:
> Received Sat 30 Oct 2004 2:07am +1000 from Hilmar Preusse:
> > On 28.10.04 Graham Williams (Graham.Williams@togaware.com) wrote:
Hi all,
> The log below shows my testing - I think the problem might be with
> libpng12-0. Are you able to reassign the bug report to that package
> in the BTS? Otherwise I'll have to submit a bug report there.
>
Yes, it is. I'll think about that.
When answring: would you be so kind to keep the bug in Cc:
(bugnumber@bugs.debian.org), to make sure the other maintainers see
the bug too?
I leave the rest of the mail uncommented, I'm just forwarding.
Regards,
Hilmar
> > > pdflatex fails for me. I'm still investigating it to see exactly
> > > what is causing it, but a simple \includegraphics of a specific PNG
> > > file leads to a Seg Violation:
>
> > IIRC there where some changes in the pdf processing code of pdftex in
> > latest release, but only there. So I can't see, how the png-part
> > could be affected.
> > However, could you try to downgrade to tetex-bin 2.0.2-22? It should
> > be sufficient to just download the deb-file, unpavk it using dpkg-deb
> > or ar and put /usr/bin/pdftex into the actual directory and then call
> > ./pdftex filename.tex
> > does that cause the same segfault?
>
> $ wajig install tetex-bin=2.0.2-22
> $ pdflatex TMP
> [...]
> loading : Context Support Macros / PDF
> ) <TMP.png, id=1, 567.11874pt x 577.15625pt> <use TMP.png>
> [1{/var/lib/texmf/dv
> ips/config/pdftex.map} <./TMP.pngSegmentation fault
>
> [...]
>
> > > If I replace TMP.png with another png it works just fine. It also
> > > works just fine on an older pdflatex. Display of TMP.png and edit
> > > of TMP.png in gimp work just fine.
> > >
> > So it seems a valid file.
>
> Yes. I've since found perhaps half a dozen of my PNG files that now
> cause this same problem. Yet some 2 or 3 dozen others have no problem?
>
> > > ------------------------------------------------------------------------
> > > \documentclass[12pt,a4paper,twoside]{book}
> > > \usepackage{graphicx}
> > > \begin{document}
> > > \begin{figure}[htbp]
> > > \begin{center}
> > > \includegraphics[width=\textwidth]{TMP}
> > > \caption{Sample GIMP screenshot.}
> > > \label{fig:gimp01}
> > > \end{center}
> > > \end{figure}
> > > \end{document}
> > > ------------------------------------------------------------------------
> > >
> > Well, just valid LaTeX code.
>
> Well yes I know it is valid LaTeX. Just wanted to supply a minimal
> example for any one to replicate the problem. Do you, for example, get
> the same error with the PNG file I made available?
>
>
> Anyhow, I've tried earlier versions:
>
> ------------------------------------------------------------------------
> $ wajig avail tetex-bin
> tetex-bin:
> Installed: 2.0.2-22
> Candidate: 2.0.2-23
> Version Table:
> 2.0.2-23 0
> 500 http://ftp.debian.org unstable/main Packages
> *** 2.0.2-22 0
> 500 ftp://mirror.aarnet.edu.au unstable/main Packages
> 100 /var/lib/dpkg/status
> 2.0.2-13 0
> 500 ftp://ftp.iinet.net.au unstable/main Packages
> $ wajig avail tetex-base
> tetex-base:
> Installed: 2.0.2c-1
> Candidate: 2.0.2c-1
> Version Table:
> *** 2.0.2c-1 0
> 500 ftp://mirror.aarnet.edu.au unstable/main Packages
> 500 http://ftp.debian.org unstable/main Packages
> 100 /var/lib/dpkg/status
> 2.0.2-7 0
> 500 ftp://ftp.iinet.net.au unstable/main Packages
> $ wajig install tetex-bin=2.0.2-13 tetex-base=2.0.2-7
> ------------------------------------------------------------------------
>
> But same problem.
>
> On a machine with an even older version of tetex-base
>
> ------------------------------------------------------------------------
> $ wajig status tetex-bin tetex-base
> Package Installed Previous Now State
> =======================-===============-===============-===============-=====
> tetex-base 2.0.2-9 2.0.2-9 2.0.2b-6 install
> tetex-bin 2.0.2-15 2.0.2-15 2.0.2-22 install
> ------------------------------------------------------------------------
>
> it works just fine. However, grabbing these packages and putting them
> on the machine where pdflatex fails does not help the situation.
>
> ------------------------------------------------------------------------
> $ wajig repackage tetex-bin
> $ wajig repackage tetex-base
> [... transfer tetex-base_2.0.2-9_i386.deb and tetex-bin_2.0.2-15_i386.deb]
> $ wajig install tetex-base_2.0.2-9_i386.deb tetex-bin_2.0.2-15_i386.deb
> ------------------------------------------------------------------------
>
> does not fix the problem. This begins to sound like a library problem
> then?
>
> ------------------------------------------------------------------------
> $ ldd /usr/bin/pdflatex
> libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4002c000)
> libz.so.1 => /usr/lib/libz.so.1 (0x40051000)
> libkpathsea.so.3 => /usr/lib/libkpathsea.so.3 (0x40064000)
> libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40076000)
> libm.so.6 => /lib/tls/libm.so.6 (0x40130000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40153000)
> libc.so.6 => /lib/tls/libc.so.6 (0x4015c000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> $ wajig whichpkg /usr/lib/libpng12.so.0
> File Path Package
> ===========================================================-=================
> /usr/lib/libpng12.so.0 libpng12-0
> usr/lib/libpng12.so.0 libs/libpng12-0
>
> $ wajig status libpng12-0
> Package Installed Previous Now State
> =======================-===============-===============-===============-=====
> libpng12-0 1.2.7-1 1.2.7-1 1.2.7-1 install
> ------------------------------------------------------------------------
>
> On the machine where it works it is 1.2.5.0-6. I repackaged and
> installed this older version. BINGO - it is now
> working!!!!!!!!!!!!!!!!!
>
--
sigmentation fault
Reply to: