[geos-devel] Parallel use of GEOSPreparedIntersects_r

Sandro Santilli strk at keybit.net
Thu Jun 26 00:48:22 PDT 2014


On Wed, Jun 25, 2014 at 09:10:27PM -0300, Thiago Borges wrote:
> Hi!
> 
> Can the GEOSPreparedIntersects_r function be called in parallel? For
> distinct Geometries in each call (reentrant)?
> 
> I'm trying to implement a parallel intersection check (spatial join), but
> I'm receiving some EXC_BAD_ACCESS and ": pointer being freed was not
> allocated". Partial stack below.
> 
> Those errors don't happen when I replace GEOSPreparedIntersects_r by
> GEOSIntersects_r in the same parallel code.

You're probably the one in the best position to debug this.
GEOS C++ library is known to have possibly non-reentrant portions,
patches fixing the specific path you're trying are welcome.

--strk;


More information about the geos-devel mailing list