[mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames
Dejan Gambin
dejan.gambin at coin.hr
Mon Nov 14 01:35:38 PST 2011
Hi,
I have a serious issue usng MapServer WFS in making GetFeature request using multiple typenames. Here is the example post request:
[Mon Nov 14 09:16:06 2011].666863 msWFSParseRequest(): WFS post request: <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" maxFeatures="10" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="ms:ppu_sportska" srsName="EPSG:900913" xmlns:ms="http://www.openplans.org/topp"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Envelope xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"><gml:lowerCorner>1533843.3519844 5619282.0492426</gml:lowerCorner><gml:upperCorner>1533938.8982697 5619377.595528</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query><wfs:Query typeName="ms:ppu_turisticka" srsName="EPSG:900913" xmlns:ms="http://www.openplans.org/topp"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Envelope xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"><gml:lowerCorner>1533843.3519844 5619282.0492426</gml:lowerCorner><gml:upperCorner>1533938.8982697 5619377.595528</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>
[Mon Nov 14 09:16:06 2011].683317 msQueryByFilter(): Search returned no results. No matching record(s) found.
It is using 2 typenames: "ms:ppu_sportska" and "ms:ppu_turisticka". Seems like no results were found but there are bunch of errors in apache log file, like:
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] *** glibc detected *** /usr/lib/cgi-bin/mapserv61: double free or corruption (out): 0x0000000001a83d60 ***, referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] ======= Backtrace: =========, referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /lib/libc.so.6(+0x71ad6)[0x7f58d7c43ad6], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /lib/libc.so.6(cfree+0x6c)[0x7f58d7c4884c], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x4328c6], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x438719], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x455d2d], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x455b8c], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x4df5c4], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x4bf415], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61(msLayerApplyPlainFilterToLayer+0x23)[0x47a99c], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x4bf362], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x49ffe0], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x4a1c8e], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x495f17], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x4182b7], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /lib/libc.so.6(__libc_start_main+0xfd)[0x7f58d7bf0c4d], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mapserv61[0x413609], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] ======= Memory map: ========, referer: http://www.coin.hr/coingis/demo.html
...bunch of library references
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] 7f58db7ca000-7f58db7cb000 r--p 0001d000 ca:01 1855039 /lib/ld-2.11.2.so, referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] 7f58db7cb000-7f58db7cc000 rw-p 0001e000 ca:01 1855039 /lib/ld-2.11.2.so, referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] 7f58db7cc000-7f58db7cd000 rw-p 00000000 00:00 0 , referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] 7fff70721000-7fff70736000 rw-p 00000000 00:00 0 [stack], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] 7fff70777000-7fff70778000 r-xp 00000000 00:00 0 [vdso], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall], referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] /usr/lib/cgi-bin/mywfs6: line 4: 3294 Aborted /usr/lib/cgi-bin/mapserv61, referer: http://www.coin.hr/coingis/demo.html
[Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] Premature end of script headers: mywfs6, referer: http://www.coin.hr/coingis/demo.html
Sometimes the error was starting with:
[Mon Nov 14 08:25:06 2011] [error] [client 83.131.213.54] *** glibc detected *** /usr/lib/cgi-bin/mapserv61: munmap_chunk(): invalid pointer: 0x000000000273ca80 ***, referer: http://www.coin.hr/coingis/demo.html
NOTE: Making individual requests to those typenames works OK
I would appreciate any help since I am pretty stucked with this. Should I report it as a bug?
Thanks very much
regards, dejan
More information about the MapServer-users
mailing list