[geos-devel] thread save
Sandro Santilli
strk at kbt.io
Thu Feb 9 00:37:24 PST 2017
On Thu, Feb 09, 2017 at 10:48:11AM +0300, Gorbachev Ivan wrote:
> Segmentation fault in this place:
>
> bool
> Geometry::intersects(const Geometry *g) const
> {
> #ifdef SHORTCIRCUIT_PREDICATES
> // short-circuit test
> if (! getEnvelopeInternal()->intersects(g->getEnvelopeInternal()))
> <--------- Segmentation fault
> return false;
> #endif
Can you reproduce with just getEnvelopeInternal() calls,
w/out "intersects" ? Those are mutator methods, so maybe
something could go wrong if two threads mutate the object
at the same time. Or can you try asking valgrind's tool "hellgrind"
what it finds about thread safety ?
--strk;
More information about the geos-devel
mailing list