WFS server very wierd behaviour

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Fri Mar 25 16:44:24 EST 2005


Update: Steve and I worked on this offline.  Memory issue in mapgml.c.
Fixed and commited.  Thanks Steve!

..Tom


> -----Original Message-----
> From: UMN MapServer Developers List 
> [mailto:MAPSERVER-DEV at lists.umn.edu] On Behalf Of 
> Kralidis,Tom [Burlington]
> Sent: Monday, 14 March, 2005 19:07
> To: MAPSERVER-DEV at lists.umn.edu
> Subject: [UMN_MAPSERVER-DEV] WFS server very wierd behaviour
> 
> 
> Hi,
> 
> Using latest CVS:
> 
> # ./mapserv -v
> MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
> OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORT S=FREETYPE 
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
> SUPPORTS=WFS_CLIENT SUPPORTS= WCS_SERVER INPUT=EPPL7 
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> 
> On fedora, using latest of all libs, including gdal 1.2.6.
> 
> When I make clean, ./configure and make, I retest my WMS and WFS.
> 
> WMS works as expected (GetCapabilities, GetMap, GetFeatureInfo).
> 
> WFS GetCapabilities works
> 
> WFS DescribeFeatureType works
> 
> WFS GetFeature does not work
> 
> Tests
> 
> 1./ WFS GetFeature (underlying data is shapefile)
>  - 
> http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?version=1.0.0&serv
> ice=WFS&re
> quest=GetFeature&typename=naps&
>   - RESPONSE: truncated output, no attributes output, just geometries
> 
> Running this through gdb
> 
> (gdb) set arg "QUERY_STRING=..........."
> (gdb) run
> ......
> ......
> ......
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1208061824 (LWP 13120)]
> 0x006f26e9 in free () from /lib/tls/libc.so.6
> (gdb) bt
> #0  0x006f26e9 in free () from /lib/tls/libc.so.6
> #1  0x0805daf5 in msFree ()
> #2  0x080d0619 in msGMLFreeItems ()
> #3  0x080d131f in msGMLWriteWFSQuery ()
> #4  0x0809e6dc in msWFSGetFeature ()
> #5  0x0809efcf in msWFSDispatch ()
> #6  0x0809b13c in msOWSDispatch ()
> #7  0x08051c85 in main ()
> (gdb)
> 
> 2./ WFS GetFeature (underlying data is GML file)
>  - 
> http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?version=1.0.0&serv
ice=WFS&re
quest=GetFeature&typename=neis
  - RESPONSE: 500 error

Running this through gdb:

(gdb) set arg
"QUERY_STRING=map=/usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv
/services/ecows/config.map&service=WFS&version=1.0.0&request=GetFeature&
typename=neis"
(gdb) run
......
......
......

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208061824 (LWP 13131)]
0x008746e9 in free () from /lib/tls/libc.so.6
(gdb) bt
#0  0x008746e9 in free () from /lib/tls/libc.so.6
#1  0x0805daf5 in msFree ()
#2  0x080d0619 in msGMLFreeItems ()
#3  0x080d131f in msGMLWriteWFSQuery ()
#4  0x0809e6dc in msWFSGetFeature ()
#5  0x0809efcf in msWFSDispatch ()
#6  0x0809b13c in msOWSDispatch ()
#7  0x08051c85 in main ()
(gdb)

...at first I thought this is a gdal upgrade problem, but then again
maybe it is a mapgml.c issue (or both/neither?).

..Tom



More information about the mapserver-dev mailing list