Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Crash under sfcgal_geometry_triangulate_2dz / SFCGAL::algorithm::isValid #194

@Algunenano

Description

@Algunenano

Hi,
we've detected a crash from Posgis' ST_ConstrainedDelaunayTriangles which created an sfcgal geometry and calls sfcgal_geometry_triangulate_2dz:

#29 0x00007f30f5783619 in SFCGAL::algorithm::selfIntersectsImpl<2> (line=...) at /usr/include/boost/ptr_container/detail/void_ptr_iterator.hpp:66
#30 0x00007f30f5773286 in SFCGAL::algorithm::selfIntersects (l=...) at /tmp/yaourt-tmp-raul/aur-sfcgal-git/src/sfcgal/src/algorithm/intersects.cpp:503
#31 0x00007f30f5785f1e in SFCGAL::algorithm::isValid (p=..., toleranceAbs=@0x7ffec4a45930: 1.0000000000000001e-09) at /usr/include/c++/9.1.0/bits/stl_vector.h:1058
#32 0x00007f30f57870ff in SFCGAL::algorithm::isValid (mp=..., toleranceAbs=@0x7ffec4a45930: 1.0000000000000001e-09) at /tmp/yaourt-tmp-raul/aur-sfcgal-git/src/sfcgal/include/SFCGAL/MultiPolygon.h:76
#33 0x00007f30f5788a52 in SFCGAL::algorithm::isValid (g=..., toleranceAbs=@0x7ffec4a45930: 1.0000000000000001e-09) at /tmp/yaourt-tmp-raul/aur-sfcgal-git/src/sfcgal/src/algorithm/isValid.cpp:540
#34 0x00007f30f5788be5 in SFCGAL::SFCGAL_ASSERT_GEOMETRY_VALIDITY_ (g=..., ctxt="") at /tmp/yaourt-tmp-raul/aur-sfcgal-git/src/sfcgal/src/algorithm/isValid.cpp:63
#35 0x00007f30f5788c58 in SFCGAL::SFCGAL_ASSERT_GEOMETRY_VALIDITY (g=...) at /usr/include/c++/9.1.0/bits/char_traits.h:300
--Type <RET> for more, q to quit, c to continue without paging--
#36 0x00007f30f5788d91 in SFCGAL::SFCGAL_ASSERT_GEOMETRY_VALIDITY_2D (g=...) at /tmp/yaourt-tmp-raul/aur-sfcgal-git/src/sfcgal/src/algorithm/isValid.cpp:92
#37 0x00007f30f5987951 in SFCGAL::triangulate::triangulate2DZ (g=..., triangulation=...) at /tmp/yaourt-tmp-raul/aur-sfcgal-git/src/sfcgal/src/triangulate/triangulate2DZ.cpp:112

The call appears in SFCGAL::algorithm::selfIntersects, which looks very similar to #171 that is still crashing for me.

Versions:

  • sfcgal: 4369440
  • cgal: 4.14
  • boost: 1.69.0

Full callstack from Postgis: bt.txt
Full geometry WKT: geom.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions