OGR failing on Linux with Premature end of script headers

McGraw, Joanne mcgrawj at AGR.GC.CA
Thu May 18 13:11:06 PDT 2006


Hi Frank,
Nice to hear from you! Hope all is well down your way. No gloating about the Senators loss.

I tried your suggestion and didn't get any additional information:

[mcgrawj at siswebdev temp]$/server/dev4.wms1/bin/shp2img -m /data/dev1.wms1.www/htdocs/gdas/temp/map1147200518.map -o junk.png
Segmentation fault
[mcgrawj at siswebdev temp]$

I'm trying to track down which version of libgdal.so we're actually pointing to, but will have to wait to talk to the configuration manager for that machine. I feel it is entirely possible (likely?) that old versions of the libraries are being used.

Thanks for the suggestion.
jtm
 
Joanne T. McGraw
GIS Data Analyst / Analyste des données du SIG
Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada
Telephone/Téléphone: 613 759-6103
Facsimile/Télécopieur: 613 759-1937
960 Carling Ave, Bldg. 20, Rm. 1136
Ottawa, Ontario
K1A 0C6

mcgrawj at agr.gc.ca
www.agr.gc.ca/nlwis-snite


-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam
Sent: Thursday, May 18, 2006 3:44 PM
To: McGraw, Joanne
Cc: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers

McGraw, Joanne wrote:
> LAYER NAME "ecozones" DATA "ecozones"
> 
> #    CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" #
> CONNECTIONTYPE OGR #    DATA "SELECT * FROM ecozones"
> 
> : END
> 
> In the browser, when I enter the following URL with the above definition,
> the image appears fine: 
> http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones
> 
> 
> However, if I comment the 'DATA "ecozones"' line and uncomment the lines
> referring to OGR, the image displays correctly from a Windows server; so,
> I'm fairly confident the syntax in the file is fine. But, the same map file
> (with a different path to the ecozones.shp file obviously) gives the
> "Premature end of script headers" error.
> 
> Any pointers as to how I can identify what is causing the error are greatly
> appreciated. I'm stuck!

Joanne,

You might want to try "shp2img" on your map file as it will generally give
you better error messages.  In fact, I usually see specific messages for
missing shared libraries in my Apache error_log, so I'm surprised you don't
see more details.  Perhaps an old OGR (libgdal.so) is getting picked up
in your case and this is causing a crash without details.

Good luck,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the MapServer-users mailing list