<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&nbsp;do&nbsp;I&nbsp;get the return&nbsp;value of TIFFStripSize(tif)?
<P>ns01$ tiffinfo bath_mapserver.tif<BR>TIFF Directory at offset 0x8<BR>&nbsp; Subfile Type: (0 = 0x0)<BR>&nbsp; Image Width: 3200 Image Length: 2834<BR>&nbsp; Resolution: 72, 72 pixels/inch<BR>&nbsp; Bits/Sample: 8<BR>&nbsp; Compression Scheme: None<BR>&nbsp; Photometric Interpretation: palette color (RGB from colormap)<BR>&nbsp; Samples/Pixel: 1<BR>&nbsp; Rows/Strip: 2834<BR>&nbsp; Min Sample Value: 0<BR>&nbsp; Max Sample Value: 255<BR>&nbsp; Planar Configuration: single image plane<BR>&nbsp; Color Map: (present)<BR>&nbsp; Photoshop Data: &lt;present&gt;, 3538 bytes
<P>&nbsp;<B><I>Frank Warmerdam &lt;warmerdam@pobox.com&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>Caffeinate The World wrote:<BR>&gt; ...<BR>&gt; Reading symbols from /usr/local/lib/libproj.so...done.<BR>&gt; Reading symbols from /usr/pkg/lib/libtiff.so.3...done.<BR>&gt; #0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,<BR>&gt; filename=0x0) at mapraster.c:828<BR>&gt; ---Type <RETURN>to continue, or q <RETURN>to quit---<BR>&gt; 828 vv=buf[xi+boffset];<BR>&gt; (gdb) bt<BR>&gt; #0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,<BR>&gt; 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>