<P>Yes I tested both on 3.7 and 3.6.3. The print out I sent was from 3.6.3.
<P>The data file is the one in the gmap demo in the 'data' dir with the name "bath_mapserver.tif".
<P>(gdb) print xi<BR>$1 = 8
<P>(gdb) print boffset<BR>$2 = 1347200
<P>How do I get the return value of TIFFStripSize(tif)?
<P>ns01$ tiffinfo bath_mapserver.tif<BR>TIFF Directory at offset 0x8<BR> Subfile Type: (0 = 0x0)<BR> Image Width: 3200 Image Length: 2834<BR> Resolution: 72, 72 pixels/inch<BR> Bits/Sample: 8<BR> Compression Scheme: None<BR> Photometric Interpretation: palette color (RGB from colormap)<BR> Samples/Pixel: 1<BR> Rows/Strip: 2834<BR> Min Sample Value: 0<BR> Max Sample Value: 255<BR> Planar Configuration: single image plane<BR> Color Map: (present)<BR> Photoshop Data: <present>, 3538 bytes
<P> <B><I>Frank Warmerdam <warmerdam@pobox.com></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>Caffeinate The World wrote:<BR>> ...<BR>> Reading symbols from /usr/local/lib/libproj.so...done.<BR>> Reading symbols from /usr/pkg/lib/libtiff.so.3...done.<BR>> #0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,<BR>> filename=0x0) at mapraster.c:828<BR>> ---Type <RETURN>to continue, or q <RETURN>to quit---<BR>> 828 vv=buf[xi+boffset];<BR>> (gdb) bt<BR>> #0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,<BR>> filename=0x0) at mapraster.c:828<BR><BR>Hi,<BR><BR>This is apparently not the the current 3.7 (cvs) source for mapraster.c<BR>since line 828 is in drawJPEG(). If you can update to the latest it would<BR>be easier to help you fix the problem (or are you working on 3.6.3?).<BR><BR>The crash is occuring while reading from the TIFF strip buffer. If you<BR>are interested in tracing the problem, I would suggest printing out<BR>xi, boffset, and the value returned by TIFFStripSize(tif). Also, could<BR>you provide a tiffinfo report on the tiff file? Alternatively, point me<BR>to the data, and minimal file demonstrating the problem?<BR><BR>Best regards,<BR><BR>-- <BR>---------------------------------------+--------------------------------------<BR>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<BR>light and sound - activate the windows | http://pobox.com/~warmerdam<BR>and watch the world go round - Rush | Geospatial Programmer for Rent<BR><BR></P></BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>