[gdal-dev] ogrinfo PGeo segfault in libmdodbc.so mdb_free_indices()

Dave Fuhry dfuhry at gmail.com
Sun Jan 27 22:42:09 EST 2008


$ ogrinfo PGeo:Beaverhead

segfaults.  Is this definitely an mdbtools bug?  Here's the backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2a999ef970 (LWP 8355)]
0x0000002a98261b6b in free () from /lib/libc.so.6
(gdb) bt
#0  0x0000002a98261b6b in free () from /lib/libc.so.6
#1  0x0000002a9a221328 in mdb_free_indices () from /usr/lib/libmdbodbc.so
#2  0x0000002a9a225167 in mdb_free_tabledef () from /usr/lib/libmdbodbc.so
#3  0x0000002a9a21dc1b in mdb_sql_reset () from /usr/lib/libmdbodbc.so
#4  0x0000002a9a21cdbf in ?? () from /usr/lib/libmdbodbc.so
#5  0x0000002a9a21ceb5 in SQLExecDirect () from /usr/lib/libmdbodbc.so
#6  0x0000002a9642ca88 in SQLExecDirect () from /usr/lib/libodbc.so.1
#7  0x0000002a95a24cd2 in CPLODBCStatement::ExecuteSQL (this=0x7fbffff4f0,
    pszStatement=0x0) at cpl_odbc.cpp:400
#8  0x0000002a95ae8272 in OGRPGeoLayer::LookupSRID (this=0x647840, nSRID=1)
    at ogrpgeolayer.cpp:352
#9  0x0000002a95ae9308 in OGRPGeoTableLayer::Initialize (this=0x647840,
    pszTableName=0x643b20 "Corner", pszGeomCol=0x643c10 "Shape",
    nShapeType=<value optimized out>, dfExtentLeft=1, dfExtentRight=-1,
    dfExtentBottom=1, dfExtentTop=-1, nSRID=1, bHasZ=<value optimized out>)
    at ogrpgeotablelayer.cpp:94
#10 0x0000002a95ae69f9 in OGRPGeoDataSource::Open (this=0x605600,
    pszNewName=<value optimized out>, bUpdate=<value optimized out>,
    bTestOpen=<value optimized out>) at ogrpgeodatasource.cpp:155
#11 0x0000002a95ae7963 in OGRPGeoDriver::Open (this=<value optimized out>,
    pszFilename=0x604690 "PGeo:Beaverhead", bUpdate=1) at ogrpgeodriver.cpp:95
#12 0x0000002a95af6bbd in OGRSFDriverRegistrar::Open (
    pszName=0x604690 "PGeo:Beaverhead", bUpdate=1, ppoDriver=0x7fbffff8d8)
    at ogrsfdriverregistrar.cpp:204
#13 0x000000000040196b in main (nArgc=2, papszArgv=0x604650) at ogrinfo.cpp:149

I'm using gdal from svn HEAD, mdbtools 0.6pre1, and unixodbc 2.2.11-16
(debian).  The file is the (large, sorry) mdb contained in
ftp://ftp.gis.mt.gov/CadastralFramework/Beaverhead/Beaverhead.zip

I'm having some trouble getting this working with a debug build of
libmdbodbc.so, but I'll send a backtrace with that when I can.

-Dave Fuhry


More information about the gdal-dev mailing list