[MapServer-users] Geos segfault error under certain conditions

Baev Alexandr oldbay at bk.ru
Mon Feb 5 01:24:10 PST 2024


Hello All!
 
Under certain conditions I get a strange error:
    
The combination of spatil geometry, style of class in map and bbox in WMS request - leads to the libgeos segmentation error.
 
All files of Example adding to email:
* bug_json.map
* geodata_bug.geojson
* mapfile_web.py
* mapstyle_for_7_0_4.zip
 
Run this:
python3 mapfile_web.py bug_json.map
 
Passed WMS request:
http://localhost:3007/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=3032662.425975159276,5637758.341410524212,3340530.939469947945,5864962.737246668898&CRS=EPSG:3857&WIDTH=1103&HEIGHT=814&LAYERS=good&FORMAT=image/png
 
Failed WMS request:
http://localhost:3007/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=3032662.425975159276,5637758.341410524212,3340530.939469947945,5864962.737246668898&CRS=EPSG:3857&WIDTH=1103&HEIGHT=814&LAYERS=bad&FORMAT=image/png
 
Reproduction conditions of error:
* mapserver & python3-mapscript v7.6.4, v7.6.5 (manual package), geos v3.5.1 (repository package) - OS linux debian 9
* mapserver & python3-mapscript v7.6.2 (repository package), geos v3.9.0 (repository package) - OS linux debian 11
 
Error message before segafoult:
python3: geos_ts_c.cpp:3742: int GEOSCoordSeq_getOrdinate_r(GEOSContextHandle_t, const geos::geom::CoordinateSequence*, unsigned int, unsigned int, double*): Assertion `0 != cs' failed.
 
 
The error does not cause segfault in mapserver v7.0.4,(repository package)  geos v3.5.1 (repository package) - OS linux debian 9:
 
Run this (mapstyle & shp files in mapstyle_for_7_0_4.zip):
python3 mapfile_web.py bug_shp.map
 
All WMS requests from the example above.
 
Error message don't segafoult - all WMS query (rendering passed):
OWSDispatch Error: msGEOSError(): GEOS library error. (message repeated 1 times)
 
 
P.S:
Are there any recommendations or patches for mapserver 7.6.*(Preferably) - what to do with this problem?
 
 
Baev Alexandr
oldbay at bk.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240205/f7219d91/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_json.map
Type: application/x-navimap
Size: 865 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240205/f7219d91/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geodata_bug.geojson
Type: application/geo+json
Size: 1591 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240205/f7219d91/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapfile_web.py
Type: application/x-python
Size: 1538 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240205/f7219d91/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapstyle_for_7_0_4.zip
Type: application/zip
Size: 2135 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240205/f7219d91/attachment.zip>


More information about the MapServer-users mailing list