Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48077 - fax2tiff segfaults (but libtiff-3.5.5 doesn't and it's not in portage)
Summary: fax2tiff segfaults (but libtiff-3.5.5 doesn't and it's not in portage)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Steve Arnold
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-16 14:41 UTC by Eric Thibodeau
Modified: 2004-04-25 00:05 UTC (History)
0 users

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


Attachments
A G3 sample file (fn07d9577S0-514-849-1495.01,47.04 KB, application/octet-stream)
2004-04-16 14:43 UTC, Eric Thibodeau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Thibodeau 2004-04-16 14:41:23 UTC
fax2tiff segfaults (but libtiff-3.5.5 doesn't and it's not in portage). I have tried all ebuilds present in portage but there seems to be no alternative but to revert to 3.5.5.

Reproducible: Always
Steps to Reproduce:
1.Try to convert a G3 file (I will attach the G3 file in the command line example) with the following command:
fax2tiff -s -M -4 -o test.tiff fn07d9577S0-514-849-1495.01
Actual Results:  
The application segfaults. Note that I have tried with different swithes (they
seem to have changed in the newer versions).

Expected Results:  
fax2tiff should convert the G3 file into a tiff file.

The reasons I insist on using fax2tiff:
1.- reverse compatibility with many old scripts
2.- seems to be the only app that will merge multi-page faxes into 1 tiff file.
3.- quite simple to use.

Note that I have been able to merge tiff-3.5.7 and tiff-3.5.5 (in that order)
with the AUTOCLEAN=no. This results in a functionning fax2tiff and functionning
tiff libs for other apps. But this not a nice "patch".

To make the tiff-3.5.5.ebuild, simply copy the
tiff-3.5.7.ebuildtiff-3.5.5.ebuild to and add the "old" to the download line as
such:
SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/old/${MY_P}.tar.gz
.
Comment 1 Eric Thibodeau 2004-04-16 14:43:40 UTC
Created attachment 29455 [details]
A G3 sample file
Comment 2 Steve Arnold archtester gentoo-dev 2004-04-25 00:05:44 UTC
Hmmm...  3.6.1 with lzw-compression barfs on it, but doesn't segfault.  Check this bug for the last comment:

http://bugzilla.remotesensing.org/show_bug.cgi?id=424

I'll go ahead and add the 3.5.5 tiff ebuild for now, but it looks like it needs a real upstream fix.

sarnold@rama gentoo $ fax2tiff -s -M -4 -o test.tiff fn07d9577S0-514-849-1495.01Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 94 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Uncompressed data (not supported) at scanline 252 (x 1726).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 296 (x 39).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 389 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Uncompressed data (not supported) at scanline 394 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Uncompressed data (not supported) at scanline 401 (x 38).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 404 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 414 (x 39).
Fax4Decode: fn07d9577S0-514-849-1495.01: Uncompressed data (not supported) at scanline 415 (x 38).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 418 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 428 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Uncompressed data (not supported) at scanline 429 (x 1727).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 432 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 440 (x 0).
Fax4Decode: fn07d9577S0-514-849-1495.01: Bad code word at scanline 466 (x 0).
...