[Mapserver-users] SunONE chokes on template file (lengthy)
Martin Weinelt
mweinelt at planiglobe.com
Wed Aug 13 01:46:52 PDT 2003
See below
Jean-Francois.Doyon at CCRS.NRCan.gc.ca:
> Interesting ...
>
> I can't help specifically, but can make a few suggestions:
>
> Since you're running the CGI, this is likely a problem with the mapserv
> executable, unrelated to the webserver (Unless the webserver creates a bad
> CGI environment, though since this si done usually with a shell, it's hard
> to imagine)
>
> What compiler are you using? Gcc or Sun's ? I've got mapserver on Solaris 8
> with GCC working fine (Under Apache)
>
> If you have 4.0, you can use -QUERY_STRING="map=..." (Or is it -QUERYSTRING
> ?) as an option to the executable form the command line. With the proper
> query string, you can get mapserver to go through the template parsing, and
> see if it dies there too.
>
> Doesn't provide a solution, but might help find the cause ...
>
> Hope this helps ...
>
> J.F.
"Steve Lime" <steve.lime at dnr.state.mn.us>:
> What does the layer definition that it dies on look like? I just found
> and fixed an error in the development version that caused a segfault
> when a layer template was defined without any classes defined. E.g.
>
> LAYER
> NAME "counties"
> DATA "bdry_counpy2"
> STATUS DEFAULT
> TYPE QUERY
> TEMPLATE "success.html"
> END
>
> I'm hoping this is the same bug.
The mapser version is 3.6.5 and was compiled with gcc. But the
installation is _very_ - er - unusual. The people owning the server
want everything mapserver related to be seperate from their 'normal'
environment - incl. the libs. So I got a '/somedir/mapserver/local/'
where libs and includes used by mapserver are stored.
Moreover because they report problems adding the GNU environment
to the LD_LIBRARY_PATH of the webserver I must wrap the cgi in a
shell-script ('wrapserv') doing just that.
If I call this with an IMG-tag ('<img
src="/cgi-bin/wrapserv?map=/somedir/mapserver/htdocs/relief.map&mode=map">')
I actuallly get inline maps in the doc - surprisingly enough. But this is
actually meant to be an interactive site.
To check the problem with the TEMPLATE file, which is globally defined
under the WEB-object, I deleted all layer definitions without CLASSes as Steve
said. No avail. The problem does not seem to be closely related to the CGI
but to the SunONE server, I guess, because if I insert an empty '[ ]' with
none of the CGI-keywords anywhere in the template the effect is just the
same:
Head of the template file :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content= "HTML Tidy for Linux/x86 (vers 1st August
2003), see www.w3.org">
<title>Bottom Form</title>
</head>
<body>
<p> Hallo Welt </p>
<p> Hallo Welt </p>
[] <------------------------ empty bracket
<p> Hallo Welt </p>
<p> Hallo Welt </p>
<p>Massstab: 1 : [scale] <p>
<form name="bottomForm" method="GET" action="[program]">
<input type="hidden" name="imgxy" value="">
<input type="hidden" name="refxy" value="100 100">
......
Resulting document:
<!-- MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL
INPUT=SHAPEFILE -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content= "HTML Tidy for Linux/x86 (vers 1st August
2003), see www.w3.org">
<title>Bottom Form</title>
</head>
<body>
<p> Hallo Welt </p>
<p> Hallo Welt </p>
Segmentation Fault
This is strange to me, but (this) SunONE seems to intercept and abort exactly
where it finds an angular bracket.
Martin
More information about the MapServer-users
mailing list