2004.10.18 19:03 "Re: [Tiff] libtiff 3.7.0 dumps core while writing photoshop tag", by Bob Friesenhahn
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.