silpol / pyspatialite

Automatically exported from code.google.com/p/pyspatialite
zlib License
0 stars 0 forks source link

Segmentation fault: 11 #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
on the latest release, on mac os x

If I try to load the extension from within SQLALchemy, I get a segfault

_EXT = '/usr/local/lib/libspatialite.dylib'

class SpatialiteConnectionListener(PoolListener):
    def connect(self, dbapi_con, con_record):
        #import pdb; pdb.set_trace()
        dbapi_con.enable_load_extension(True)
        dbapi_con.execute("select load_extension('%s')" % _EXT)
        dbapi_con.enable_load_extension(False)

stracing it I can see it opens /usr/local/lib/libsqlite3.0.8.6.dylib
before crashing

is that a version issue ?

Original issue reported on code.google.com by ziade.ta...@gmail.com on 30 May 2013 at 10:56

GoogleCodeExporter commented 8 years ago
Sounds like you may have built it against your system sqlite, which won't work. 
 I'd check any modification you made, to be sure that you didn't accidentally 
cause it to be linked with a pre-installed sqlite lib.

Original comment by lok...@gmail.com on 30 May 2013 at 2:31

GoogleCodeExporter commented 8 years ago

Original comment by lok...@gmail.com on 21 Nov 2013 at 10:30