MapTools.org

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

Dan Boitnott dan@lclinux.org
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 
--with-ogr=/opt/gdal/bin/gdal-config

Here's the GDB back-trace:

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

Program received signal SIGSEGV, Segmentation fault.
0x0022b0d1 in realloc () from /lib/tls/libc.so.6
(gdb) bt
#0  0x0022b0d1 in realloc () from /lib/tls/libc.so.6
#1  0x05cafad3 in _TIFFrealloc () from /usr/lib/libtiff.so.3
#2  0x004a0095 in TIFFMergeFieldInfo () from /opt/gdal/lib/libgdal.1.1.so
#3  0x004c7c68 in _XTIFFLocalDefaultDirectory () from 
/opt/gdal/lib/libgdal.1.1.so
#4  0x004c7c8d in _XTIFFDefaultDirectory () from 
/opt/gdal/lib/libgdal.1.1.so
#5  0x05c96b12 in TIFFDefaultDirectory () from /usr/lib/libtiff.so.3
#6  0x05c976c7 in TIFFReadDirectory () from /usr/lib/libtiff.so.3
#7  0x05caba88 in TIFFClientOpen () from /usr/lib/libtiff.so.3
#8  0x05caf9e4 in TIFFFdOpen () from /usr/lib/libtiff.so.3
#9  0x05cafa69 in TIFFOpen () from /usr/lib/libtiff.so.3
#10 0x004c7d18 in XTIFFOpen () from /opt/gdal/lib/libgdal.1.1.so
#11 0x00449fe4 in GTiffDataset::Open(GDALOpenInfo*) () from 
/opt/gdal/lib/libgdal.1.1.so
#12 0x004cd6e1 in GDALOpen () from /opt/gdal/lib/libgdal.1.1.so
#13 0x080712cc in msDrawRasterLayerLow (map=0xbf531008, layer=0x91e20b4, 
image=0x9244408)
     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

Help?

Dan Boitnott
dan@lclinux.org


This archive was generated by Pipermail.