Hi,

I've noticed segfaults in geos when using Shapely in a 64bit Linux
environment (Ubuntu hardy, Python 2.5.2). These failures do not happen
in the same 32bit environment which makes me think this is 64bit
related. Here's the stack trace I get:

#0  0x00007feebe4638e3 in GEOSGeomTypeId () from /usr/lib/libgeos_c.so.1
#1  0x00007feec2348238 in ffi_call_unix64 () at
Python-2.5.2/Modules/_ctypes/libffi/src/x86/unix64.S:73
#2  0x00007feec2347e25 in ffi_call (cif=0x4356f3f0, fn=0x7feebe4638d0
<GEOSGeomTypeId>, rvalue=0x4356f340, avalue=0x4356f320)
    at Python-2.5.2/Modules/_ctypes/libffi/src/x86/ffi64.c:428
#3  0x00007feec23429f4 in _CallProc (pProc=0x7feebe4638d0
<GEOSGeomTypeId>, argtuple=0x1f9bb10, flags=<value optimized out>,
argtypes=0x0,
    restype=0xaa6710, checker=0x0) at
Python-2.5.2/Modules/_ctypes/callproc.c:668
#4  0x00007feec233c55f in CFuncPtr_call (self=0x1918438,
inargs=0x1f9bb10, kwds=0x0)
    at Python-2.5.2/Modules/_ctypes/_ctypes.c:3373
#5  0x0000000000417e63 in PyObject_Call (func=0xb8001c20, arg=0x1d95d50,
kw=0xe) at Objects/abstract.c:1861


The corresponding Python code is calling shapely.wkb.loads() from a
geometry string retrieved out of a database.

I could notice the crash only occurs when two requests are done at the
same time, so there may be some concurrency issues involved.

I know it would help to have a reduced testcase, I'll try to investigate
more when I have time.

Sylvain
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to