From mrspock@Gina.esfm.ipn.mx  Mon Oct 11 16:02:18 2004
Return-Path: <mrspock@Gina.esfm.ipn.mx>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BA25F16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Oct 2004 16:02:18 +0000 (GMT)
Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5914643D5A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Oct 2004 16:02:18 +0000 (GMT)
	(envelope-from mrspock@Gina.esfm.ipn.mx)
Received: from Gina.esfm.ipn.mx (localhost.esfm.ipn.mx [127.0.0.1])
	by Gina.esfm.ipn.mx (8.12.10/8.12.10) with ESMTP id i9BG1V4I083298
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Oct 2004 11:01:31 -0500 (CDT)
	(envelope-from mrspock@Gina.esfm.ipn.mx)
Received: (from mrspock@localhost)
	by Gina.esfm.ipn.mx (8.12.10/8.12.10/Submit) id i9BG1VUH083296;
	Mon, 11 Oct 2004 11:01:31 -0500 (CDT)
	(envelope-from mrspock)
Message-Id: <200410111601.i9BG1VUH083296@Gina.esfm.ipn.mx>
Date: Mon, 11 Oct 2004 11:01:31 -0500 (CDT)
From: mrspock@esfm.ipn.mx
Reply-To: mrspock@esfm.ipn.mx
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: latex2html/netpbm-10.24 does not work 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72521
>Category:       ports
>Synopsis:       latex2html/netpbm-10.24 does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 11 16:10:27 GMT 2004
>Closed-Date:    Sun Nov 14 20:50:22 CET 2004
>Last-Modified:  Sun Nov 14 20:50:22 CET 2004
>Originator:     Eduardo Viruena Silva
>Release:        FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
ESFM-IPN
>Environment:
System: FreeBSD Gina.esfm.ipn.mx 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Tue Aug 24 14:05:35 CDT 2004 root@gina.esfm.ipn.mx:/usr/src/sys/i386/compile/eviruena i386


	
>Description:
	latex2html does not work with netpbm-10.24
>How-To-Repeat:
	Install:
		latex2html-2002.2.1_3
		netpbm-10.24
		teTeX-2.0.2_5   
	Save the lines:
		\documentclass{article}
		\begin{document} $sin(x)$  \end{document}
	in a file, and call it:  "test.tex"
	Process the file with latex2html:
		latex2html test.tex
	you will receive an error, the images that the file generates
	cannot be processed.  Try then with:
		latex2html -notransparent test.tex

	Now, if you can, try installing netpbm-9.24,
	latex2html  will work perfectly.
>Fix:

	I think there is something wrong with netpbm-10.24,
	it seems to remove the image files before it processes
	them.   I compiled netpbm-9.24 and and it worked fine
	with latex2html.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Oct 13 16:45:42 GMT 2004 
Responsible-Changed-Why:  
Over to netpbm maintainer for consideration. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72521 
State-Changed-From-To: open->analyzed 
State-Changed-By: dinoex 
State-Changed-When: Sun Nov 14 07:38:10 CET 2004 
State-Changed-Why:  
I can reporduce produce the problem now, 
but found no quick fix. 
Author mailed about this problem. 

Core was generated by `pnmtopng'. 
Program terminated with signal 10, Bus error. 
Reading symbols from /usr/local/lib/libnetpbm.so.1...done. 
Reading symbols from /usr/local/lib/libpng.so.5...done. 
Reading symbols from /usr/lib/libz.so.2...done. 
Reading symbols from /usr/lib/libm.so.2...done. 
Reading symbols from /usr/lib/libc.so.4...done. 
Reading symbols from /usr/libexec/ld-elf.so.1...done. 
#0  0x80493a7 in closestColorInPalette (targetColor={r = 255, g = 255, b = 255}, palette_pnm=0xbfbfe77c,  
paletteSize=15872, bestIndexP=0xbfbfdbcc, bestMatchP=0xbfbfdbc8) at pnmtopng.c:167 
167             unsigned int const dist =  
(gdb) bt 
#0  0x80493a7 in closestColorInPalette (targetColor={r = 255, g = 255, b = 255}, palette_pnm=0xbfbfe77c,  
paletteSize=15872, bestIndexP=0xbfbfdbcc, bestMatchP=0xbfbfdbc8) at pnmtopng.c:167 
#1  0x804add3 in makeOneColorTransparentInPalette (transColor={r = 255, g = 255, b = 255}, exact=0,  
palette_pnm=0xbfbfe77c, paletteSize=15872, trans_pnm=0xbfbfe078, transSizeP=0xbfbfdf74) at pnmtopng.c:1002 
#2  0x804b596 in computeColorMap (ifP=0x281bad80, imagepos=15, cols=565, rows=282, maxval=255, format=20534,  
force=0, pfP=0x0, alpha=0, transparent=1, transcolor={r = 255, g = 255, b = 255}, transexact=0, background=-1,  
backcolor={r = 671569952, g = 3217027908, b = 6}, alpha_mask=0x0, pnm_meaningful_bits=8,  
palette_pnm=0xbfbfe77c, paletteSizeP=0xbfbfe478, trans_pnm=0xbfbfe078, transSizeP=0xbfbfdf74,  
backgroundIndexP=0xbfbfdf68, noColormapReasonP=0xbfbfdd48) at pnmtopng.c:1366 
#3  0x804c06b in convertpnm (ifp=0x281bad80, afp=0x0, pfp=0x0, tfp=0x0, gamma=-1, interlace=0, downscale=0,  
transparent_opt=1, transstring=0xbfbff72d "white", alpha_opt=0, alpha_file=0x281057e0 "202003",  
background=-1,  
backstring=0x8050b0c "0M021(217a(R220004bb220004br220004b$b(222220004b220004bx013(220004bX216a(PVb(220004b221a(022221004b"221004b2221004b", hist=0, chroma={wx = -1, wy = -1,  
rx = -1, ry = -1, gx = -1, gy = -1, bx = -1, by = -1}, phys_x=-1, phys_y=-1, phys_unit=-1, text=0, ztxt=0,  
text_file=0x280569c1 "[201;001", mtime=0, date_string=0x1000001 <Address 0x1000001 out of bounds>,  
time_string=0x28072040 "", filterSet=0, force=0, zlib_compression={level = -1, mem_level = -1077938968,  
strategy = 671434424, window_bits = 671433756, method = 109760260, buffer_size = 671555648}) 
at pnmtopng.c:1755 
#4  0x804de42 in main (argc=4, argv=0xbfbff5a8) at pnmtopng.c:2392 


http://www.freebsd.org/cgi/query-pr.cgi?pr=72521 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dinoex 
State-Changed-When: Sun Nov 14 20:49:57 CET 2004 
State-Changed-Why:  
Fix is commited 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72521 
>Unformatted:
