<HTML><BODY><div><div><div>Hello All!</div><div> </div><div>Under certain conditions I get a strange error:</div><div> </div><div>The combination of spatil geometry, style of class in map and bbox in WMS request - leads to the libgeos segmentation error.</div><div> </div><div>All files of Example adding to email:</div><div>* bug_json.map</div><div>* geodata_bug.geojson</div><div>* mapfile_web.py</div><div>* mapstyle_for_7_0_4.zip</div><div> </div><div>Run this:</div><div>python3 mapfile_web.py bug_json.map</div><div> </div><div>Passed WMS request:</div><div>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</div><div> </div><div>Failed WMS request:</div><div>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</div><div> </div><div>Reproduction conditions of error:</div><div>* mapserver & python3-mapscript v7.6.4, v7.6.5 (manual package), geos v3.5.1 (repository package) - OS linux debian 9</div><div>* mapserver & python3-mapscript v7.6.2 (repository package), geos v3.9.0 (repository package) - OS linux debian 11</div><div> </div><div>Error message before segafoult:</div><div>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.</div><div> </div><div> </div><div>The error does not cause segfault in mapserver v7.0.4,(repository package) geos v3.5.1 (repository package) - OS linux debian 9:</div><div> </div><div>Run this (mapstyle & shp files in mapstyle_for_7_0_4.zip):</div><div>python3 mapfile_web.py bug_shp.map</div><div> </div><div>All WMS requests from the example above.</div><div> </div><div>Error message don't segafoult - all WMS query (rendering passed):</div><div>OWSDispatch Error: msGEOSError(): GEOS library error. (message repeated 1 times)</div><div> </div><div> </div><div>P.S:</div><div>Are there any recommendations or patches for mapserver 7.6.*(Preferably) - what to do with this problem?</div></div></div><div> </div><div> </div><div><span style="max-width: 2150px; --left-column-width: 60px; --right-column-width: 172px; --sidebar-column-width: NaNpx;">Baev Alexandr<br><a href="https://e.mail.ru/compose?To=oldbay@bk.ru">oldbay@bk.ru</a></span></div></BODY></HTML>