I think this is probably a reasonable fix, although I'll look into it a bit more. I've confirmed the bug exists<br>outside OGC queries too. Just a simple mode=nquery triggers the segfault. I'm not sure why we just<br>
don't return if the layer isn't open though.<br><br>Steve<br><br><div class="gmail_quote">On Fri, Jul 22, 2011 at 11:38 AM, myOpenLayersUName <span dir="ltr"><<a href="mailto:joanne.mcgraw@sympatico.ca">joanne.mcgraw@sympatico.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">While waiting for a patch which will correctly fix the problems described in<br>
this thread (OGC queries to SDE failing), we have introduced a change to our<br>
version of mapsde.c that is allowing us to move forward.<br>
<br>
In the msSDELayerFreeItemInfo function, we changed the boolean expressions<br>
at lines 2116 and 2121 to check that sde wasn't NULL before checking the<br>
basedefs and joindefs as shown below. For the time being, this is allowing<br>
us to continue our work with no serious problems encountered so far. If we<br>
do come across some, I'll be sure to let you know.<br>
<br>
Cheers,<br>
jtm<br>
<div class="im"><br>
<br>
void msSDELayerFreeItemInfo(layerObj *layer)<br>
{<br>
#ifdef USE_SDE<br>
msSDELayerInfo *sde = NULL;<br>
int i;<br>
if (!msSDELayerIsOpen(layer)) {<br>
msSetError( MS_SDEERR,<br>
"SDE layer has not been opened.",<br>
"msSDELayerFreeItemInfo()");<br>
}<br>
sde = layer->layerinfo;<br>
</div> if (sde != NULL && sde->basedefs) {<br>
<div class="im"> SE_table_free_descriptions(sde->basedefs);<br>
</div> sde->basedefs = NULL;<br>
}<br>
if (sde != NULL && sde->joindefs) {<br>
SE_table_free_descriptions(sde->joindefs);<br>
sde->joindefs = NULL;<br>
}<br>
if (layer->iteminfo) {<br>
:<br>
<font color="#888888"><br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6611100.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6611100.html</a><br>
</font><div><div></div><div class="h5">Sent from the Mapserver - User mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br>