<div dir="ltr">Tom,<div style>I was able to reproduce a segfault using the CGI, here's the backtrace for the ticket I'm sure you'll open and hopefully fix :)</div><div style><br></div><div style><div>Program received signal SIGSEGV, Segmentation fault.</div>
<div>0x00007ffff7b140af in msDumpLayer (map=0x604d90, lp=0x60d6b0, nVersion=66304,</div><div>    script_url_encoded=0x616330 "<a href="http://foobar">http://foobar</a>?", indent=0x616a80 "        ",</div>
<div>    validated_language=0x0, grouplayer=0) at mapwms.c:2449</div><div>2449<span class="" style="white-space:pre">     </span>                      if (l < lp2->numclasses)</div><div>(gdb) bt</div><div>#0  0x00007ffff7b140af in msDumpLayer (map=0x604d90, lp=0x60d6b0, nVersion=66304,</div>
<div>    script_url_encoded=0x616330 "<a href="http://foobar">http://foobar</a>?", indent=0x616a80 "        ",</div><div>    validated_language=0x0, grouplayer=0) at mapwms.c:2449</div><div>#1  0x00007ffff7b14a67 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,</div>
<div>    pabLayerProcessed=0x6164b0 "", index=0, level=4, nestedGroups=0x616820,</div><div>    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,</div><div>    script_url_encoded=0x616330 "<a href="http://foobar">http://foobar</a>?", validated_language=0x0) at mapwms.c:2619</div>
<div>#2  0x00007ffff7b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,</div><div>    pabLayerProcessed=0x6164b0 "", index=0, level=3, nestedGroups=0x616820,</div><div>    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,</div>
<div>    script_url_encoded=0x616330 "<a href="http://foobar">http://foobar</a>?", validated_language=0x0) at mapwms.c:2644</div><div>#3  0x00007ffff7b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,</div>
<div>    pabLayerProcessed=0x6164b0 "", index=0, level=2, nestedGroups=0x616820,</div><div>    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,</div><div>    script_url_encoded=0x616330 "<a href="http://foobar">http://foobar</a>?", validated_language=0x0) at mapwms.c:2644</div>
<div>#4  0x00007ffff7b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,</div><div>    pabLayerProcessed=0x6164b0 "", index=0, level=1, nestedGroups=0x616820,</div><div>    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,</div>
<div>    script_url_encoded=0x616330 "<a href="http://foobar">http://foobar</a>?", validated_language=0x0) at mapwms.c:2644</div><div>#5  0x00007ffff7b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,</div>
<div>    pabLayerProcessed=0x6164b0 "", index=0, level=0, nestedGroups=0x616820,</div><div>    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,</div><div>    script_url_encoded=0x616330 "<a href="http://foobar">http://foobar</a>?", validated_language=0x0) at mapwms.c:2644</div>
<div>#6  0x00007ffff7b17c65 in msWMSGetCapabilities (map=0x604d90, nVersion=66304, req=0x6045c0,</div><div>    ows_request=0x7fffffffe7c0, requested_updatesequence=0x0, wms_exception_format=0x0,</div><div>    requested_language=0x0) at mapwms.c:3356</div>
<div>#7  0x00007ffff7b1d51d in msWMSDispatch (map=0x604d90, req=0x6045c0, ows_request=0x7fffffffe7c0,</div><div>    force_wms_mode=0) at mapwms.c:4833</div><div>#8  0x00007ffff7b4df6d in msOWSDispatch (map=0x604d90, request=0x6045c0, ows_mode=-1)</div>
<div>    at mapows.c:243</div><div>#9  0x00007ffff7b79c79 in msCGIDispatchRequest (mapserv=0x604380) at mapservutil.c:1607</div><div>#10 0x0000000000400f60 in main (argc=2, argv=0x7fffffffe9a8) at mapserv.c:259</div><div>
<br></div><div style>cheers,</div><div style>thomas</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 June 2013 16:46, Kralidis,Tom [Ontario] <span dir="ltr"><<a href="mailto:Tom.Kralidis@ec.gc.ca" target="_blank">Tom.Kralidis@ec.gc.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi: using 6.2.1 (Ubuntu) built from source along with the following<br>
patch at<br>
<a href="https://github.com/mapserver/mapserver/commit/937dcb6857501835b5489fa4be" target="_blank">https://github.com/mapserver/mapserver/commit/937dcb6857501835b5489fa4be</a><br>
a321105412a20b.patch, we have a requirement to implement a WxS MapScript<br>
approach for our OWS (we have up until now using the mapserv binary).<br>
<br>
All works well, except for WMS GetCapabilities responses.  The result is<br>
a truncated WMS Capabilities XML which gets truncated when MapServer is<br>
printing out the root Layer element.<br>
<br>
I've posted a minimal mapfile and the Python mapscript at<br>
<a href="https://gist.github.com/tomkralidis/f70afd49270cb8efb62f" target="_blank">https://gist.github.com/tomkralidis/f70afd49270cb8efb62f</a>. Observations:<br>
<br>
- commenting out LAYER.METADATA.wms_layer_group eliminates the issue,<br>
but we require this functionality<br>
- commenting out LAYER.CLASSGROUP and LAYER.CLASS.GROUP, and<br>
uncommenting LAYER.METADATA.wms_layer_group eliminates the issue, but we<br>
require this functionality<br>
- the same mapfile works just fine with mapserv binary<br>
<br>
Any suggestions? I'm wondering whether the Python SWIG implementation<br>
affects this.<br>
<br>
..Tom<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br></div>