-
Notifications
You must be signed in to change notification settings - Fork 54
SIGSEV thrown in multithread environment #155
Comments
Hi, CGAL is meant to be thread-safe. See the "Thread Safety" section here. The link you provided is about using the parallel version of some algorithms, which is another story. Are you sure your arguments to sfcgal_geometry_intersects are valid and reachable during the call ? |
Hi, I run the threads changing the code in this way:
basically I replaced |
Hi, if I change the point to intersect itself in multi thread env it works ok:
Could it be wrong the way I build the polygon? This is how I make it:
also as alternative method for *polygon_t I tried this too:
Thank you |
Could you provide a minimal source code so that we can reproduce the problem ? |
@mhugo, in #155 (comment):
He is right. CGAL is mostly thread-safe and the But: note that Lines 26 to 31 in 5499795
|
I am running SFCGAL in a multithread env with the only sfcgal function
sfcgal_geometry_intersects
:and I get
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
.I have excluded issues from my side, so it looks like the SFCGAL call creates the issue. Now the relative code goes straight down to CGAL.
CGAL requires some configuration to be used on multi-threading env:
https://github.com/CGAL/cgal/wiki/Concurrency-in-CGAL
Is SFCGAL meant to work in multithread env?
The text was updated successfully, but these errors were encountered: