[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    [MapServer-users] =?utf-8?q?Geos_segfault_error_under_certain_co?= =?utf-8?q?nditions?=
From:       Baev Alexandr via MapServer-users <mapserver-users () lists ! osgeo ! org>
Date:       2024-02-05 9:24:10
Message-ID: 1707125050.869858802 () f713 ! i ! mail ! ru
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]


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.425975159 \
276,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.425975159 \
276,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@bk.ru


[Attachment #5 (text/html)]


<HTML><BODY><div><div><div>Hello All!</div><div>&nbsp;</div><div>Under certain \
conditions I get a strange error:</div><div>&nbsp;&nbsp; &nbsp;</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>&nbsp;</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>&nbsp;</div><div>Run \
this:</div><div>python3 mapfile_web.py bug_json.map</div><div>&nbsp;</div><div>Passed \
WMS request:</div><div>http://localhost:3007/?SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUES \
T=GetMap&amp;BBOX=3032662.425975159276,5637758.341410524212,3340530.939469947945,58649 \
62.737246668898&amp;CRS=EPSG:3857&amp;WIDTH=1103&amp;HEIGHT=814&amp;LAYERS=good&amp;FORMAT=image/png</div><div>&nbsp;</div><div>Failed \
WMS request:</div><div>http://localhost:3007/?SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUES \
T=GetMap&amp;BBOX=3032662.425975159276,5637758.341410524212,3340530.939469947945,58649 \
62.737246668898&amp;CRS=EPSG:3857&amp;WIDTH=1103&amp;HEIGHT=814&amp;LAYERS=bad&amp;FORMAT=image/png</div><div>&nbsp;</div><div>Reproduction \
conditions of error:</div><div>* mapserver &amp; python3-mapscript v7.6.4, v7.6.5 \
(manual package), geos v3.5.1 (repository package) - OS linux debian 9</div><div>* \
mapserver &amp; python3-mapscript v7.6.2 (repository package), geos v3.9.0 \
(repository package) - OS linux debian 11</div><div>&nbsp;</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>&nbsp;</div><div>&nbsp;</div><div>The error does not cause \
segfault in mapserver v7.0.4,(repository package)&nbsp; geos v3.5.1 (repository \
package) - OS linux debian 9:</div><div>&nbsp;</div><div>Run this (mapstyle &amp; shp \
files in mapstyle_for_7_0_4.zip):</div><div>python3 mapfile_web.py \
bug_shp.map</div><div>&nbsp;</div><div>All WMS requests from the example \
above.</div><div>&nbsp;</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>&nbsp;</div><div>&nbsp;</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>&nbsp;</div><div>&nbsp;</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>



["=?UTF-8?B?YnVnX2pzb24ubWFw?=" (application/x-navimap)]
["=?UTF-8?B?Z2VvZGF0YV9idWcuZ2VvanNvbg==?=" (application/geo+json)]
["=?UTF-8?B?bWFwZmlsZV93ZWIucHk=?=" (application/x-python)]
["=?UTF-8?B?bWFwc3R5bGVfZm9yXzdfMF80LnppcA==?=" (application/zip)]

_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic