[geos-devel] Segmentation fault when using intersect with multithreading

Sandro Santilli strk at kbt.io
Thu Nov 23 06:50:08 PST 2017

On Sun, Nov 12, 2017 at 04:30:06AM +0100, Fardet Tanguy wrote:
> Dear GEOS developers,
> I would like to know what is the proper way to initialize and use GEOS with
> OpenMP.
> Indeed, I am encountering a segfault problem when using GEOS with
> multithreading enabled.

Are you using the C or C++ API ?
When using the C API you can define
the GEOS_USE_ONLY_R_API macro to be
sure to be only using thread-safe methods.

If you find a non-reentrant path by using that
API then please file a bug report including
the smallest testcase.


More information about the geos-devel mailing list