Return-Path: <tiff-bounces@remotesensing.org>
Received: from inav012.isp.belgacom.be (inav012.isp.belgacom.be [195.238.3.55])
        by mailst034.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i9IJ51PJ002043
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Oct 2004 21:05:01 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inas012.isp.belgacom.be (localhost [127.0.0.1])
        by inav012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id i9IJ4u14032449
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Oct 2004 21:04:56 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inmx008.isp.belgacom.be (inmx008.isp.belgacom.be [195.238.3.88])
        by inas012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id i9IJ4kvu025911
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Oct 2004 21:04:46 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx008.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i9IJ4WRA029828
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Oct 2004 21:04:35 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 871C23CBD20; Mon, 18 Oct 2004 15:03:52 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by xserve.flids.com (Postfix) with ESMTP id 7D6A13CBCF6
	for <tiff@remotesensing.org>; Mon, 18 Oct 2004 15:03:36 -0400 (EDT)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	i9IJ3P9p029731; Mon, 18 Oct 2004 14:03:25 -0500 (CDT)
Date: Mon, 18 Oct 2004 14:03:25 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Andrey Kiselev <dron@ak4719.spb.edu>
Subject: Re: [Tiff] libtiff 3.7.0 dumps core while writing photoshop tag
In-Reply-To: <20041018184035.GC11451@ak4719.spb.edu>
Message-ID: <Pine.SOC.4.60.0410181351180.2727@blade.simplesystems.org>
References: <Pine.SOC.4.60.0410171004270.2727@blade.simplesystems.org>
	<Pine.SOC.4.60.0410171145580.2727@blade.simplesystems.org>
	<20041018184035.GC11451@ak4719.spb.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 1c2db7179688e5b1eb8ea15d685a42c9

On Mon, 18 Oct 2004, Andrey Kiselev wrote:

> On Sun, Oct 17, 2004 at 11:49:19AM -0500, Bob Friesenhahn wrote:
>> Under FreeBSD, the debugger is showing me that the 'filename' argument
>> which is set to an invalid pointer value is being corrupted while
>> executing GraphicsMagick code.  Once this problem is resolved (bug may
>> be compiler specific), hopefully libtiff 3.7.0 will work better.
>
> I'm remember your eaarlier report abouth this problem, but I didn't
> found any criminal in the code that time. Am I understand correctly that
> the bug is in the GM code and not related to libtiff?

It is unclear.  This weekend I saw behavior in GDB which seems to defy 
reason (e.g. stack values zeroed but being mysteriously restored 
several lines of code later).  The mysterious part is in GM code which 
has not changed in at least three years and is executed when any file 
is read.  It is likely that everything is fine but GDB is sometimes 
not keeping track of the variables correctly (i.e. GDB bug).

GM is able to successfully write TIFF with Photoshop tags under Linux 
(without complaints from valgrind) but crashes under Solaris (32-bit 
SPARC) and FreeBSD (32-bit x86).  There is no crash with earlier 
libtiff versions. In my opinion there is a problem with the new 
libtiff but I don't know the cause.  Perhaps the size of something is 
wrong on systems other than Linux.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
