Opened 20 years ago

Closed 19 years ago

#779 closed defect (fixed)

WMS getCapabilities output truncated

Reported by: norbert.thieme@… Owned by: hobu
Priority: high Milestone:
Component: WMS Server Version: 4.2
Severity: normal Keywords:
Cc:

Description

After requesting the capabilities from our SDE WMS Layers e.g.:

http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&REQUEST=getCapabilities&SERVICE=WMS&VERSION=1.1.1&

or:

http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&REQUEST=getCapabilities&SERVICE=WMS&VERSION=1.1.1&

I get a truncated XML back. (Sorry the serevr is only in our intranet.) This
looks like:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
 [
 <!ELEMENT VendorSpecificCapabilities EMPTY>
 ]>  <!-- end of DOCTYPE declaration -->

<WMT_MS_Capabilities version="1.1.1">

<!-- MapServer version 4.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=SDE INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->

<Service>
  <Name>OGC:WMS</Name>
  <Title>WaGIS Test Map</Title>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/>
</Service>

<Capability>
  <Request>
    <GetCapabilities>
      <Format>application/vnd.ogc.wms_xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <GetMap>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>text/html</Format>
      <Format>image/tiff</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>text/html</Format>
      <Format>application/vnd.ogc.gml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetFeatureInfo>
    <DescribeLayer>
      <Format>text/xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </DescribeLayer>
    <GetLegendGraphic>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>text/html</Format>
      <Format>image/tiff</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetLegendGraphic>
  </Request>
  <Exception>
    <Format>application/vnd.ogc.se_xml</Format>
    <Format>application/vnd.ogc.se_inimage</Format>
    <Format>application/vnd.ogc.se_blank</Format>
  </Exception>
  <VendorSpecificCapabilities />
  <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1"
RemoteWFS="0"/>
  <Layer>
    <Name>WaGIS</Name>
    <Title>WaGIS Test Map</Title>
    <SRS>EPSG:31467 EPSG:31468 EPSG:4326</SRS>
    <LatLonBoundingBox minx="5.0902" miny="46.9823" maxx="15.9068" maxy="55.1555" />
    <BoundingBox SRS="EPSG:31467"
                minx="3.25047e+06" miny="5.22116e+06" maxx="3.94202e+06"
maxy="6.1139e+06" />
    <ScaleHint min="0.0498903" max="4091" />
    <Layer>
      <Name>FT_21-Recht_poly</Name>
      <Title>WMS_FT_21-Recht_poly</Title>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_poly_2</Name>
        <Title>WMS_FT_21-Recht_poly_2</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <ScaleHint min="0.00249451" max="0.498903" />
      </Layer>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_poly_4</Name>
        <Title>WMS_FT_21-Recht_poly_2</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <ScaleHint min="0.00249451" max="2.49451" />
      </Layer>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_poly_5</Name>
        <Title>WMS_FT_21-Recht_poly_3</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.86" miny="47.27" maxx="15.05" maxy="55.0739" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.86" miny="47.27" maxx="15.05" maxy="55.0739" />
        <ScaleHint min="2.49451" max="49.8903" />
      </Layer>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_poly_6</Name>
        <Title>WMS_FT_21-Recht_poly_4</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.84121" miny="47.27" maxx="15.05"
maxy="55.1649" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.84121" miny="47.27" maxx="15.05" maxy="55.1649" />
        <ScaleHint min="49.8903" max="374.177" />
      </Layer>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_poly_7</Name>
        <Title>WMS_FT_21-Recht_poly_5</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.86" miny="47.0061" maxx="15.05" maxy="55.0841" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.86" miny="47.0061" maxx="15.05" maxy="55.0841" />
        <ScaleHint min="374.177" max="49890.3" />
      </Layer>
    </Layer>
    <Layer>
      <Name>FT_21-Recht_line</Name>
      <Title>WMS_FT_21-Recht_line</Title>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_line_2</Name>
        <Title>WMS_FT_21-Recht_line_2</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <ScaleHint min="0.00249451" max="0.498903" />
      </Layer>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_line_4</Name>
        <Title>WMS_FT_21-Recht_line_2</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <ScaleHint min="0.00249451" max="2.49451" />
      </Layer>
      <Layer queryable="1" opaque="0" cascaded="0">
        <Name>FT_21-Recht_line_5</Name>
        <Title>WMS_FT_21-Recht_line_3</Title>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <BoundingBox SRS="EPSG:4326"
                    minx="5.86" miny="47.27" maxx="15.05" maxy="55.07" />
        <ScaleHint min="2.49451" max="49.8903" />
      </Layer>
      <Layer queryable="1" opaque="0" cascaded="0">

or:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
 [
 <!ELEMENT VendorSpecificCapabilities EMPTY>
 ]>  <!-- end of DOCTYPE declaration -->

<WMT_MS_Capabilities version="1.1.1">

<!-- MapServer version 4.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=SDE INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->

<Service>
  <Name>OGC:WMS</Name>
  <Title>WaGIS Test Map</Title>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/>
</Service>

<Capability>
  <Request>
    <GetCapabilities>
      <Format>application/vnd.ogc.wms_xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <GetMap>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>text/html</Format>
      <Format>image/tiff</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>text/html</Format>
      <Format>application/vnd.ogc.gml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetFeatureInfo>
    <DescribeLayer>
      <Format>text/xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </DescribeLayer>
    <GetLegendGraphic>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>text/html</Format>
      <Format>image/tiff</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetLegendGraphic>
  </Request>
  <Exception>
    <Format>application/vnd.ogc.se_xml</Format>
    <Format>application/vnd.ogc.se_inimage</Format>
    <Format>application/vnd.ogc.se_blank</Format>
  </Exception>
  <VendorSpecificCapabilities />
  <UserDefinedSymbolization SupportSL

The getcapabilities with the WMS version 1.1.0 work. The getmap works with WMS
version 1.1.0 and version 1.1.1 too.

The mapfiles look like:

MAP
...
---> I cut one layer: <---

  LAYER
    CLASSITEM "objart_id"
    CONNECTION "wagis,5150,wagisimp,***,***"
    CONNECTIONTYPE SDE
    DATA "informix.wg_poly_2,gid"
    DUMP TRUE
    GROUP "FT_21-Recht_poly"
    MAXSCALE 5000
      METADATA
        "WMS_GROUP_TITLE"	"WMS_FT_21-Recht_poly"
        "wms_title"	"WMS_FT_21-Recht_poly_2"
      END
    MINSCALE 5
    NAME "FT_21-Recht_poly_4"
    PROJECTION
      "init=epsg:4326"
    END
    SIZEUNITS PIXELS
    STATUS DEFAULT
    TEMPLATE "../ortslage.html"
    TOLERANCE 5
    TOLERANCEUNITS PIXELS
    TYPE POLYGON
    UNITS METERS
    CLASS
      NAME "LeitwerkTrennmole"
      EXPRESSION "410"
      STYLE
          COLOR 0 0 0
        MAXSIZE 100
        MINSIZE 1
        SIZE 1
        SYMBOL 0
      END
    END
    CLASS
      NAME "Pfahlwand"
      EXPRESSION "572"
      STYLE
          COLOR 0 0 0
        MAXSIZE 100
        MINSIZE 1
        SIZE 1
        SYMBOL 0
      END
    END
    CLASS
      NAME "BebauteFlaeche"
      EXPRESSION "1330"
      STYLE
          COLOR 0 0 0
        MAXSIZE 100
        MINSIZE 1
        SIZE 1
        SYMBOL 0
      END
    END
  END
...
END

or:

MAP
  IMAGETYPE      PNG
  STATUS ON
  SIZE 400 400
  EXTENT 3500000 5900000 3600000 6000000
  UNITS METERS
  TRANSPARENT ON
  SHAPEPATH      '../daten/shapes'
  IMAGECOLOR     255 255 255

  PROJECTION
     "init=epsg:31467"
  END

  WEB
    MINSCALE 100
    MAXSCALE 8200000
    IMAGEPATH '/srv/www/htdocs/mapserv_tmp/'
    IMAGEURL '/mapserv_tmp/'
    EMPTY '/mapserv_anw/daten/empty_res.html'
    ERROR '/mapserv_anw/daten/error_res.html'
    LOG '/srv/www/htdocs/mapserv_anw/mapserv_log.log'
    METADATA
        "wms_srs"	"EPSG:31467 EPSG:31468 EPSG:4326"
        "wms_onlineresource"
"http://wagisimp.ilmenau.baw.de/cgi-bin/mapserv4?map=/srv/www/htdocs/mapserv_WaGIS/test2.map&"
        "wms_title"	"WaGIS Test Map"
    END
  END

  # Start of LAYER DEFINITIONS ---------------------------------------------
  LAYER
    NAME         "Kreise"
    DATA         'wagis.rl_vg250_kreis,gid'
    METADATA
        "wms_title"   "Kreise"
    END
    DEBUG ON
    CONNECTIONTYPE SDE
    CONNECTION "wagis,5150,wagisimp,***,***"
    #STATUS       DEFAULT
    STATUS       ON
    TYPE         POLYGON
    TEMPLATE     "../kreise.html"
    DUMP                   TRUE # allow GML export
    TOLERANCE    5

    PROJECTION
      "init=epsg:4326"
    END

    CLASSITEM             'kreis'
    CLASS
      EXPRESSION          /./
      COLOR               230 230 230
      OUTLINECOLOR        220 180 180
    END
  END
  # End of LAYER DEFINITIONS -------------------------------

END # end of map file/object

Change History (16)

comment:1 by dmorissette, 20 years ago

Cc: mapserver-bugs@… added
Owner: changed from mapserverbugs to hobu@…
I think I've heard of a similar issue before with SDE (maybe it was from you).
I'll reassign to Howard since we're not setup to test with SDE and this has
probably more to do with the SDE driver than with WMS.

comment:2 by hobu, 20 years ago

First thing to try:
Please specify a version to query from in the connection string similar to what
is outlined on the wiki page:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE

On the SDE Data string, DATA 'wagis.rl_vg250_kreis,gid', is gid the ObjectID
column, or the column that contains the actual shape data?

Also, please turn off the class item stuff on the sde layer, so we can eliminate
the kind of flaky regex support that sdelayers have in mapserver

Report back, and if you're still having problems, I'll try to replicate with my
own setup.

comment:3 by norbert.thieme@…, 20 years ago

Thanks for the reply.

Like I mentioned the SDE stuff works with WMS verion 1.1.0 and the getmap also
works with version 1.1.1 - only the getcapabilities don't work with this
version. If I use the mapfile in the normal way with the Mapserver there is also
no problem. So I don't know if the class item stuff and the connection is the
problem. But I tried:

I turned off the class item stuff and put the color/outlinecolor into a style
object in the class. The output is still truncated.

If I understand the wiki page correct the SDE.DEFAULT should be enough for the
connection string because the database we use is a kind of read only one - so no
editing is made on it.

The gid field is the field with the geometry / actual shape data.

Perhaps the problem is the communication between the Apache and the Mapserver.
Is it possible that the Apache stops sending before the XML is complete? Can I
check that? How? I tried it with debug on but the logs don't tell a problem.

comment:4 by dmorissette, 20 years ago

Apache would not truncate the output with no reason. Seems very much like
mapserv is crashing in the middle of the generation of the Capabilities. To
verify this, you could run your request at the command line with:

./mapserv
"QUERY_STRING=map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&REQUEST=getCapabilities&SERVICE=WMS&VERSION=1.1.1"

Note that the double quotes are important.  

When you run the above command you'll probably see a truncated XML output as
well, and if my guess is right the output will end with "segmentation Fault" or
something like that.

If you get a segmentation fault, then we need to find out where and why... that
can be hard to do remotely if you are not familiar with GDB. At a minimum
getting a GDB call stack would be a good start. To do this, run:

  gdb ./mapserv
  ....
  (gdb) run
"QUERY_STRING=map=/srv/www/htdocs/mapserv_WaGIS/WaGIS_FT_21-Recht.map&REQUEST=getCapabilities&SERVICE=WMS&VERSION=1.1.1"
  ....
  ... and when the program stops/crashes...
  (gdb) bt

... and send the output of the bt command in this bug report.

comment:5 by hobu, 20 years ago

dependson: 767
Do you have opportunity to update to CVS MapServer?  Ah, this is all starting to
make a little more sense now.  I fixed a bug (#767) in SDE support that was
causing it to segfault for layers with shared connections.  

If you have two layers in SDE with the same connection string, the old code
(4.2) will try and free up resources from both of the shared layers, which
causes a segfault.  The new code leaks in the face of indecision instead of
trying to free up those resources.  

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=767

comment:6 by sgillies@…, 20 years ago

hobu, check out bug 670.  Daniel mentioned that it would be nice to be able
to handle just these kind of exceptions during capabilities output.

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=670

comment:7 by dmorissette, 20 years ago

Actually in this case we're probably talking about a segmentation fault, which
is not a trappable exception of course.

comment:8 by norbert.thieme@…, 20 years ago

I have no time at the moment to get the cvs version but I tried gdb and the
output is:

#0  0x4087c6e9 in free () from /lib/i686/libc.so.6
#1  0x08077a49 in msSDELayerClose (layer=0x9e9) at mapsde.c:492
#2  0x08065f46 in msCloseConnections (map=0x40f10008) at mapfile.c:4597
#3  0x080645ad in msFreeMap (map=0x40f10008) at mapfile.c:3885
#4  0x08052378 in main (argc=1089536008, argv=0xbfffec54) at mapserv.c:974
#5  0x408264c2 in __libc_start_main () from /lib/i686/libc.so.6

BTW, the output looks OK here - the xml seems to be complete and the seg fault
appears after that:

...
  </Layer>
</Capability>
</WMT_MS_Capabilities>

Program received signal SIGSEGV, Segmentation fault.

comment:9 by hobu, 20 years ago

Norbert,

This is definitely the bug that was fixed in 767.  You'll have to update to CVS
or wait for 4.2.2, which should have the patch backported to it.

Howard

comment:10 by dmorissette, 20 years ago

Cc: steve.lime@… added
Howard, will you backport the patch to 4.2?  I'm not setup to test with SDE
myself so I can't do it.

comment:11 by hobu, 20 years ago

Resolution: fixed
Status: newclosed
done

comment:12 by dmorissette, 20 years ago

Thanks. BTW I have added a note about this fix to the HISTORY.TXT in the 4.2 branch.

comment:13 by norbert.thieme@…, 20 years ago

Resolution: fixed
Status: closedreopened
Sorry I haven't checked this when the version 4.2.2 was available. But now with
version 4.2.4 I tried but it still fails with a segmentation.

comment:14 by hobu, 20 years ago

Do you have any opportunity to try CVS MapServer?  In CVS, SDE was upgraded to
the new connection pooling API, which I believe fixes this problem (and many
others with connection pooling).  4.4 (which will be based on current CVS) is
due out in a couple of months.  

comment:15 by assefa, 19 years ago

Is this still an issue with lastest versions ? If not please update the bug so 
we can mark it as Fixed.

comment:16 by hobu, 19 years ago

Resolution: fixed
Status: reopenedclosed
marking fixed.  The new connection pooling should have cleaned this up.
Note: See TracTickets for help on using tickets.