[mapserver-users] gmap demo segfault

Caffeinate The World mochaexpress at yahoo.com
Sun Nov 24 19:22:48 PST 2002


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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20021124/640d3046/attachment.htm>


More information about the MapServer-users mailing list