[mapserver-users] gmap demo segfault

Caffeinate The World mochaexpress@yahoo.com
Sun, 24 Nov 2002 19:22:48 -0800 (PST)


--0-1968990737-1038194568=:32302
Content-Type: text/plain; charset=us-ascii


Yes I tested both on 3.7 and 3.6.3. The print out I sent was from 3.6.3.
The data file is the one in the gmap demo in the 'data' dir with the name "bath_mapserver.tif".
(gdb) print xi
$1 = 8
(gdb) print boffset
$2 = 1347200
How do I get the return value of TIFFStripSize(tif)?
ns01$ tiffinfo bath_mapserver.tif
TIFF Directory at offset 0x8
  Subfile Type: (0 = 0x0)
  Image Width: 3200 Image Length: 2834
  Resolution: 72, 72 pixels/inch
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: palette color (RGB from colormap)
  Samples/Pixel: 1
  Rows/Strip: 2834
  Min Sample Value: 0
  Max Sample Value: 255
  Planar Configuration: single image plane
  Color Map: (present)
  Photoshop Data: <present>, 3538 bytes
 Frank Warmerdam <warmerdam@pobox.com> wrote:
Caffeinate The World wrote:
> ...
> Reading symbols from /usr/local/lib/libproj.so...done.
> Reading symbols from /usr/pkg/lib/libtiff.so.3...done.
> #0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,
> filename=0x0) at mapraster.c:828
> ---Type to continue, or q to quit---
> 828 vv=buf[xi+boffset];
> (gdb) bt
> #0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,
> filename=0x0) at mapraster.c:828

Hi,

This is apparently not the the current 3.7 (cvs) source for mapraster.c
since line 828 is in drawJPEG(). If you can update to the latest it would
be easier to help you fix the problem (or are you working on 3.6.3?).

The crash is occuring while reading from the TIFF strip buffer. If you
are interested in tracing the problem, I would suggest printing out
xi, boffset, and the value returned by TIFFStripSize(tif). Also, could
you provide a tiffinfo report on the tiff file? Alternatively, point me
to the data, and minimal file demonstrating the problem?

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent





---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-1968990737-1038194568=:32302
Content-Type: text/html; charset=us-ascii

<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>
--0-1968990737-1038194568=:32302--