[UMN_MAPSERVER-USERS] Internal Server Error

Skweda O'Bomsawin sobomsawin at KASSINI.COM
Mon Dec 6 09:29:51 EST 2004


Most of the time, internal server error is caused by a syntax error in the
mapfile.  Can you post the Elementi_stradali layer section of your mapfile?

 

Skweda O'Bomsawin

 

-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de Daniele Margotti
Envoyé : 6 décembre 2004 07:35
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [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

 


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041206/d8edb3c3/attachment.html


More information about the mapserver-users mailing list