[maplab-users] Segfault when working with raster data (GeoTIFF)

Dan Boitnott
Sun, 04 Apr 2004 14:58:46 -0500
I get a Segmentation Fault when I use a GeoTIFF layer.  I tried my own 
code and then some from the tutorial.  Here's my configure command:

./configure --prefix=/opt/mapserver --with-php=/usr/include/php/main 
--with-gd --enable-force-freetype1 --with-proj=/opt/proj 
--with-wmsclient --with-gdal=/opt/gdal/bin/gdal-config --with-jpeg 
--with-zlib --with-png --with-xpm --with-libiconv --with-tiff 

Here's the GDB back-trace:

(gdb) run "QUERY_STRING=map=/var/www/html/tutorial/"
Starting program: /home/dboitnot/download/mapserver-4.0.1/mapserv 

Program received signal SIGSEGV, Segmentation fault.
0x0022b0d1 in realloc () from /lib/tls/
(gdb) bt
#0  0x0022b0d1 in realloc () from /lib/tls/
#1  0x05cafad3 in _TIFFrealloc () from /usr/lib/
#2  0x004a0095 in TIFFMergeFieldInfo () from /opt/gdal/lib/
#3  0x004c7c68 in _XTIFFLocalDefaultDirectory () from 
#4  0x004c7c8d in _XTIFFDefaultDirectory () from 
#5  0x05c96b12 in TIFFDefaultDirectory () from /usr/lib/
#6  0x05c976c7 in TIFFReadDirectory () from /usr/lib/
#7  0x05caba88 in TIFFClientOpen () from /usr/lib/
#8  0x05caf9e4 in TIFFFdOpen () from /usr/lib/
#9  0x05cafa69 in TIFFOpen () from /usr/lib/
#10 0x004c7d18 in XTIFFOpen () from /opt/gdal/lib/
#11 0x00449fe4 in GTiffDataset::Open(GDALOpenInfo*) () from 
#12 0x004cd6e1 in GDALOpen () from /opt/gdal/lib/
#13 0x080712cc in msDrawRasterLayerLow (map=0xbf531008, layer=0x91e20b4, 
     at mapraster.c:1392
#14 0x0807827e in msDrawLayer (map=0xbf531008, layer=0x91e20b4, 
image=0x9244408) at mapdraw.c:511
#15 0x08077b07 in msDrawMap (map=0xbf531008) at mapdraw.c:269
#16 0x08050d35 in main (argc=1488, argv=0xbff23c54) at mapserv.c:1076


Dan Boitnott

This archive was generated by Pipermail.