Ticket #2644 (closed defect: fixed)
BBOX FIlter with no srsName results in segfault
| Reported by: | tomkralidis | Owned by: | tomkralidis |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 release |
| Component: | WFS Server | Version: | svn-trunk (development) |
| Severity: | normal | Keywords: | |
| Cc: | assefa |
Description
[devgeo:/home/tkralidi/foss4g/mapserver/trunk/mapserver]$ gdb --args ./mapserv QUERY_STRING="map=/home/tkralidi/foss4g/mapserver/trunk/msautotest/wxs/sos.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=obs&filter=<Filter><BBOX><PropertyName>GEOMETRY</PropertyName><Box srsName=\"EPSG:4326\"><coordinates>10,10 20,20</coordinates></Box></BBOX></Filter>"
GNU gdb Red Hat Linux (6.6-16.fc7rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /home/tkralidi/foss4g/mapserver/trunk/mapserver/mapserv QUERY_STRING=map=/home/tkralidi/foss4g/mapserver/trunk/msautotest/wxs/sos.map\&VERSION=1.0.0\&SERVICE=WFS\&REQUEST=GetFeature\&TYPENAME=obs\&filter=\<Filter\>\<BBOX\>\<PropertyName\>GEOMETRY\</PropertyName\>\<Box\ srsName=\"EPSG:4326\"\>\<coordinates\>10,10\ 20,20\</coordinates\>\</Box\>\</BBOX\>\</Filter\>
[Thread debugging using libthread_db enabled]
[New Thread -1208162608 (LWP 14310)]
Content-type: text/xml
<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
http://mapserver.gis.umn.edu/mapserver http://localhost/cgi-bin/sostest?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=obs&OUTPUTFORMAT=XMLSCHEMA">
<gml:boundedBy>
<gml:null>missing</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>
Program exited normally.
(gdb) q
[devgeo:/home/tkralidi/foss4g/mapserver/trunk/mapserver]$ gdb --args ./mapserv QUERY_STRING="map=/home/tkralidi/foss4g/mapserver/trunk/msautotest/wxs/sos.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=obs&filter=<Filter><BBOX><PropertyName>GEOMETRY</PropertyName><Box><coordinates>10,10 20,20</coordinates></Box></BBOX></Filter>"GNU gdb Red Hat Linux (6.6-16.fc7rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /home/tkralidi/foss4g/mapserver/trunk/mapserver/mapserv QUERY_STRING=map=/home/tkralidi/foss4g/mapserver/trunk/msautotest/wxs/sos.map\&VERSION=1.0.0\&SERVICE=WFS\&REQUEST=GetFeature\&TYPENAME=obs\&filter=\<Filter\>\<BBOX\>\<PropertyName\>GEOMETRY\</PropertyName\>\<Box\>\<coordinates\>10,10\ 20,20\</coordinates\>\</Box\>\</BBOX\>\</Filter\>
[Thread debugging using libthread_db enabled]
[New Thread -1208793392 (LWP 14314)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208793392 (LWP 14314)]
0x02a24473 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x02a24473 in strlen () from /lib/libc.so.6
#1 0x02a241b5 in strdup () from /lib/libc.so.6
#2 0x0810c2ef in FLTParseGMLBox (psBox=0x8759b90, psBbox=0xbfe174a0, ppszSRS=0xbfe174c0) at mapogcfilter.c:3765
#3 0x0810ca26 in FLTInsertElementInNode (psFilterNode=0x8753128, psXMLNode=0x8759d60) at mapogcfilter.c:1561
#4 0x0810db31 in FLTParseFilterEncoding (
szXMLString=0x8753068 "<Filter><BBOX><PropertyName>GEOMETRY</PropertyName><Box><coordinates>10,10 20,20</coordinates></Box></BBOX></Filter>") at mapogcfilter.c:1250
#5 0x080f0b69 in msWFSGetFeature (map=0x87425d8, paramsObj=0x8753008, req=0x8741d48) at mapwfs.c:1300
#6 0x080f1fe2 in msWFSDispatch (map=0x87425d8, requestobj=0x8741d48) at mapwfs.c:1766
#7 0x080ecc5e in msOWSDispatch (map=0x87425d8, request=0x8741d48, force_ows_mode=0) at mapows.c:80
#8 0x0805670f in main (argc=2, argv=0xbfe17c94) at mapserv.c:1245
(gdb)
Change History
Note: See
TracTickets for help on using
tickets.
