Opened 10 years ago
Closed 9 years ago
#3107 closed defect (fixed)
[sfcgal]crash in straight_skeleton
Reported by: | cactusbone | Owned by: | colivier |
---|---|---|---|
Priority: | critical | Milestone: | PostGIS SFCGAL |
Component: | sfcgal | Version: | 2.1.x |
Keywords: | Cc: |
Description
I think it's a bug in CGAL but i'm not sure.
this query :
select ST_StraightSkeleton(ST_GeomFromText('POLYGON((1347259.25 7184745.94,1347273.17 7184758.16,1347280.39 7184749.95,1347278.04 7184747.88,1347281.66 7184743.76,1347284.01 7184745.83,1347293.5 7184735.05,1347279.61 7184722.85,1347269.29 7184734.6,1347270.35 7184735.51,1347267.31 7184738.96,1347266.22 7184738.01,1347259.25 7184745.94),(1347267.31 7184738.96,1347269.31 7184736.7,1347272.57 7184739.55,1347270.56 7184741.83,1347267.31 7184738.96))'))
makes postgresql crash I'm using postgresql 9.4 with PostGIS 2.1.7 and sfcgal 1.1.0 with cgal 4.6
server process (PID 2621) was terminated by signal 11: Segmentation fault
I've opened it in github too : https://github.com/Oslandia/SFCGAL/issues/75
Change History (5)
comment:1 by , 9 years ago
Milestone: | PostGIS 2.1.8 → PostGIS 2.2.0 |
---|
comment:2 by , 9 years ago
comment:3 by , 9 years ago
This should be fixed with SFCGAL 1.2.0, to be released soon. Can you confirm, robe ? Here's what I get:
strk=# select ST_StraightSkeleton(ST_GeomFromText('POLYGON((1347259.25 7184745.94,1347273.17 7184758.16,1347280.39 7184749.95,1347278.04 7184747.88,1347281.66 7184743.76,1347284.01 7184745.83,1347293.5 7184735.05,1347279.61 7184722.85,1347269.29 7184734.6,1347270.35 7184735.51,1347267.31 7184738.96,1347266.22 7184738.01,1347259.25 7184745.94),(1347267.31 7184738.96,1347269.31 7184736.7,1347272.57 7184739.55,1347270.56 7184741.83,1347267.31 7184738.96))')); NOTICE: During straight_skeleton(A) : NOTICE: with A: POLYGON((5389037/4 7714562210592195/1073741824,723311775491031/536870912 1928643832929321/268435456,5786525213592125/4294967296 7714566516296909/1073741824,1446628780104745/1073741824 7714564293651333/1073741824,5786530668200591/4294967296 38572 ERROR: straight skeleton of Polygon with touching interior rings is not implemented
comment:5 by , 9 years ago
Milestone: | PostGIS 2.2.0 → PostGIS SFCGAL |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Switched to PosTGIS SFCGAL. Looks like it doesn't crash anymor with 1.2.0dev in SFCGAL/git master.
running on:
POSTGIS="2.2.0dev r13992" GEOS="3.5.0-CAPI-1.9.0 r4088" SFCGAL="1.2.0" PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 2.0.0, released 2015/06/14 GDAL_DATA not found" LIBXML="2.7.8" LIBJSON="0.12" RASTER NOTICE: During straight_skeleton(A) : NOTICE: with A: POLYGON((5389037/4 7714562210592195/1073741824,723311775491031/536870912 1928643832929321/268435456,5786525213592125/4294967296 7714566516296909/1073741824,1446628780104745/1073741824 7714564293651333/1073741824,5786530668200591/4294967296 38572 ERROR: straight skeleton of Polygon with touching interior rings is not implemented ********** Error ********** ERROR: straight skeleton of Polygon with touching interior rings is not implemented SQL state: XX000
Note:
See TracTickets
for help on using tickets.
still crashes in 2.2 with cgal 4.6.1 and sfcgal 1.1.0. As I recall it also crashed with CGAL 4.2