I think this is probably a reasonable fix, although I'll look into it a bit more. I've confirmed the bug exists outside OGC queries too. Just a simple mode=nquery triggers the segfault. I'm not sure why we just don't return if the layer isn't open though.
Steve On Fri, Jul 22, 2011 at 11:38 AM, myOpenLayersUName < [email protected]> wrote: > While waiting for a patch which will correctly fix the problems described > in > this thread (OGC queries to SDE failing), we have introduced a change to > our > version of mapsde.c that is allowing us to move forward. > > In the msSDELayerFreeItemInfo function, we changed the boolean expressions > at lines 2116 and 2121 to check that sde wasn't NULL before checking the > basedefs and joindefs as shown below. For the time being, this is allowing > us to continue our work with no serious problems encountered so far. If we > do come across some, I'll be sure to let you know. > > Cheers, > jtm > > > void msSDELayerFreeItemInfo(layerObj *layer) > { > #ifdef USE_SDE > msSDELayerInfo *sde = NULL; > int i; > if (!msSDELayerIsOpen(layer)) { > msSetError( MS_SDEERR, > "SDE layer has not been opened.", > "msSDELayerFreeItemInfo()"); > } > sde = layer->layerinfo; > if (sde != NULL && sde->basedefs) { > SE_table_free_descriptions(sde->basedefs); > sde->basedefs = NULL; > } > if (sde != NULL && sde->joindefs) { > SE_table_free_descriptions(sde->joindefs); > sde->joindefs = NULL; > } > if (layer->iteminfo) { > : > > > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6611100.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
