No subject
Mon Oct 7 05:54:23 PDT 2024
suggested that SegFault problem could be traced to mapserver's shp2img,
so we tried shp2img and did get that segfault crash. When we tried using
gdb to 'debug' the shp2img util with the same mapfile, we found it
crashed on tif_read, here is the message before it died,
########################################################################
##
(gdb) run -m /var/www/html/zoom2it_mapserver/map_file/test_wms.map
Starting program: /root/build/mapserver-4.0.1/shp2img
-m/var/www/html/zoom2it_mapserver/map_file/test_wms.map
(no debugging symbols found)...
(no debugging symbols found)...
(no debugging symbols found)...
(no debugging symbols found)...
(no debugging symbols found)...[Thread debugging using
libthread_dbenabled] [New Thread -1084655424 (LWP 5180)] Program
received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1084655424 (LWP 5180)]0x00a036ad in TIFFFillStrip
(tif=3D0x8863628, strip=3D1) at tif_read.c:252252 bytecount =3D
td->td_stripbytecount[strip];
########################################################################
##
I hope i have explained my problem clearly. Any help/hint will be
greatly appreciated! By the way, almost all mapserver versions above
4.0.1 have been triedwith the same configs as below and failed exactly
the same way.
Here is my mapserver config:
########################################################################
##
MapServer version 4.0.1 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP
OUTPUT=3DPDFOUTPUT=3DSWF SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE
SUPPORTS=3DWMS_SERVERSUPPORTS=3DWMS_CLIENT SUPPORTS=3DWFS_SERVER
SUPPORTS=3DWFS_CLIENT INPUT=3DJPEGINPUT=3DPOSTGIS INPUT=3DOGR =
INPUT=3DGDAL
INPUT=3DSHAPEFILE
########################################################################
#############
And here is the wms map file:(without vector layers)
########################################################################
#############
MAP
NAME DURHAM_WMS_TEST
SIZE 490 440
STATUS ON
EXTENT 523522 4824701 712474 4963303 #simcoe
UNITS METERS
SHAPEPATH "/var/www/data/zoom2it_mapserver/"
FONTSET "/var/www/html/zoom2it_mapserver/map_symbols/fonts.txt"
SYMBOLSET
"/var/www/html/zoom2it_mapserver/map_symbols/symbols.sym"
IMAGECOLOR 255 255 255
IMAGETYPE PNG24
PROJECTION
"init=3DEPSG:26917"
END
# NOT WORKING
#OUTPUTFORMAT #not sure if this is really necessary
# NAME GTiff
# DRIVER "GDAL/GTiff"
# MIMETYPE "image/tiff"
# IMAGEMODE RGB
# EXTENSION "tif"
# #TRANSPARENT FALSE
#END
WEB
MINSCALE 1500
MAXSCALE 700001
TEMPLATE durham_data_wms.html
IMAGEPATH "/var/www/html/zoom2it_mapserver/map_images/"
IMAGEURL "map_images/"
METADATA
WMS_TITLE "durham data served via wms"
WMS_ABSTRACT "WMS server compliant data service
for durham area"
WMS_ACCESSCONSTRAINTS none
WMS_ONLINERESOURCE
"http://pc82.jdbarnes.com/cgi-bin/wms_map"
WMS_SRS "EPSG:26917"
END
END
#LAYER DEFINITIONS ---------------------------------------------
LAYER # testing tiff
NAME durham_tile
STATUS ON
DATA
/var/www/data/zoom2it_mapserver/256/simcoe_10k_6m/ORTH175640485302002FBS
.tif"
TYPE RASTER
METADATA
WMS_TITLE "Durham Ortho Photo(50cm - Tile)"
WMS_ABSTRACT "ortho_lro_40_50cm_wms test tile"
#WMS_SRS "epsg:26917"
END
PROJECTION
"init=3DEPSG:26917"
END
END
END
########################################################################
#############
More information about the MapServer-users
mailing list