Internal Server Error
Christian Blumer
christian.blumer at EPFL.CH
Mon Dec 6 06:39:14 PST 2004
MessaggioI got the same error due to mistakes in the Mapfile. You should try to check it too. Especially check if the layer definition for the shapefile is correct.
Christian
----- Original Message -----
From: Daniele Margotti
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: Monday, December 06, 2004 1:35 PM
Subject: [UMN_MAPSERVER-USERS] Internal Server Error
Hi list,
I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50:
<!-- MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer.
I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it?
The browser only show the "Internal Server Error" page.
The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv"
I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results:
----------------------------------------------------------------------------
[root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455
[Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s
[Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s
[Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s
[Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s
Segmentation fault
----------------------------------------------------------------------------
[root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali
Segmentation fault
----------------------------------------------------------------------------
When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message.
I launched the following command (where "road_elements.shp" is the probably bad shapefile):
[root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145
It returns a 85 Kb output with apparently no detected errors.
How can I understand where the error lies?
Is there a more powerful debug tool?
Thank you,
Daniele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041206/1af09ead/attachment.htm>
More information about the MapServer-users
mailing list