Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44720 - xv segfaults when trying to read TIFF files or refuses to load them.
Summary: xv segfaults when trying to read TIFF files or refuses to load them.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-14 20:12 UTC by Rod Smith
Modified: 2004-04-17 11:54 UTC (History)
1 user (show)

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


Attachments
Patch to make XV work on AMD64 (dh.patch,222 bytes, patch)
2004-04-17 03:48 UTC, Duncan Hill
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rod Smith 2004-03-14 20:12:33 UTC
When I try to launch the xv graphics editor and pass it the name of a TIFF file (e.g., "xv foo.tif"), it either segfaults or reports that it can't load the file. (At first it was segfaulting regularly; but later it started just saying it couldn't load the file.) When I try to read a TIFF file once xv is launched, it fails to do so but hasn't yet crashed or segfaulted. xv appears to be able to save TIFF files, and can read back what it's saved, but other programs (e.g., the GIMP) can't read them, and xv on another platform (an x86 SUSE 8.1 system) can't read what xv on amd64 Linux saves. The GIMP has no problems reading or saving TIFF files.

Reproducible: Always
Steps to Reproduce:
1.Obtain a TIFF file ("foo.tif")
2.Type "xv foo.tif"

Actual Results:  
"foo.tif: Can not read TIFF directory." (Presented in a dialog box.)

Expected Results:  
Loaded and displayed the TIFF file.

Running 2.6.3 kernel and XFce. Installed tiff-3.6.1 and set "tiff" in the USE 
environment variable in /etc/make.conf prior to building xv.
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-04-17 03:07:53 UTC
can we get more information here? like xv version and the output of emerge info?
Comment 2 Duncan Hill 2004-04-17 03:48:16 UTC
Created attachment 29479 [details, diff]
Patch to make XV work on AMD64

XV's source has a call to getwd(), controlled by a #ifdef USE_GETCWD.  man
getwd indicates that it is deprecated on Linux.  This patch adds a #define to
#ifdef LINUX in xv.h to enable use of getcwd instead of getwd.	Works for -r6.
Comment 3 Rod Smith 2004-04-17 09:39:26 UTC
I've just tested Duncan Hill's patch, and it seems to fix the problem; I can now load and save TIFF files from xv. Thanks!
Comment 4 Travis Tilley (RETIRED) gentoo-dev 2004-04-17 11:54:13 UTC
fixed in CVS. give it some time to reach rsync