[gdal-dev] How to run autotest

John Daniel jdaniel at etresoft.com
Thu Apr 18 09:41:41 PDT 2019


Even,
scripts/setdevenv.sh did fix the python problem for me.

However, I get a very similar segfault in the test scripts that I get on the Mac. It seems related to SQLite and SpatiaLite. I'm going to try to rebuild with an older set of GDAL+libs that has worked in the past. 

Here is the backtrace if anyone is curious. Unless anyone recognizes a known issue, I'm assuming this is my problem to work out from here.

Core was generated by `/home/parallels/OS-GIS/build/python/bin/python2.7 /home/parallels/OS-GIS/build/'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f7ba2872378 in spatialite_init ()
   from /home/parallels/OS-GIS/platforms/linux/x86_64/lib/libspatialite.so.5
(gdb) bt
#0  0x00007f7ba2872378 in spatialite_init ()
   from /home/parallels/OS-GIS/platforms/linux/x86_64/lib/libspatialite.so.5
#1  0x00007f7ba7ee69d0 in OGRSQLiteInitOldSpatialite() ()
   from /tmp/gdal/gdal/.libs/libgdal.so.20
#2  0x00007f7ba7ee8332 in OGRSQLiteDataSource::Create(char const*, char**) ()
   from /tmp/gdal/gdal/.libs/libgdal.so.20
#3  0x00007f7ba7ef323f in OGRSQLiteExecuteSQL(GDALDataset*, char const*, OGRGeometry*, char const*) () from /tmp/gdal/gdal/.libs/libgdal.so.20
#4  0x00007f7ba7a012ef in GDALDataset::ExecuteSQL(char const*, OGRGeometry*, char const*, swq_select_parse_options*) () from /tmp/gdal/gdal/.libs/libgdal.so.20
#5  0x00007f7ba7a01298 in GDALDataset::ExecuteSQL(char const*, OGRGeometry*, char const*) () from /tmp/gdal/gdal/.libs/libgdal.so.20
#6  0x00007f7ba7d2fc3f in GDALGeoPackageDataset::ExecuteSQL(char const*, OGRGeometry*, char const*) () from /tmp/gdal/gdal/.libs/libgdal.so.20
#7  0x00007f7ba7c72f3b in OGR_DS_ExecuteSQL ()
   from /tmp/gdal/gdal/.libs/libgdal.so.20
#8  0x00007f7b9b608a2c in OGRDataSourceShadow_ExecuteSQL (
    dialect=0x7f7b9a669dac "INDIRECT_SQLITE", spatialFilter=0x0, 
    statement=0x7f7b9a66ced4 "SELECT ogr_version()", self=0x55f6a0a5ada0)
    at extensions/ogr_wrap.cpp:3974
#9  _wrap_DataSource_ExecuteSQL (args=<optimized out>, kwargs=<optimized out>)
    at extensions/ogr_wrap.cpp:9849
#10 0x000055f6988bc3c8 in ext_do_call (nk=<optimized out>, na=1, 
---Type <return> to continue, or q <return> to quit---
    flags=<optimized out>, pp_stack=0x7fffb12f2e00, func=0x7f7b9b87b2d8)
    at Python/ceval.c:4663
#11 PyEval_EvalFrameEx (f=f at entry=0x7f7b998485d8, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#12 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f6a0b1b7e8, kwcount=1, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#13 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f2fd8, 
    func=0x7f7b9b33ccf8) at Python/ceval.c:4447
#14 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f2fd8)
    at Python/ceval.c:4372
#15 PyEval_EvalFrameEx (f=f at entry=0x55f6a0b1b620, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#16 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7baec3d068, argcount=<optimized out>, 
    kws=kws at entry=0x7f7baec3d068, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#17 0x000055f69893aaad in function_call (func=0x7f7bab6329b0, 
    arg=0x7f7baec3d050, kw=0x7f7b9a772398) at Objects/funcobject.c:523
#18 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7bab6329b0, 
---Type <return> to continue, or q <return> to quit---
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7b9a772398)
    at Objects/abstract.c:2547
#19 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=0, 
    flags=<optimized out>, pp_stack=0x7fffb12f3260, func=0x7f7bab6329b0)
    at Python/ceval.c:4666
#20 PyEval_EvalFrameEx (f=f at entry=0x55f6a0cacd20, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#21 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7b971b8528, argcount=<optimized out>, 
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#22 0x000055f69893a9c9 in function_call (func=0x7f7ba9223320, 
    arg=0x7f7b971b8510, kw=0x0) at Objects/funcobject.c:523
#23 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9223320, 
    arg=arg at entry=0x7f7b971b8510, kw=kw at entry=0x0) at Objects/abstract.c:2547
#24 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=0, 
    flags=<optimized out>, pp_stack=0x7fffb12f34e0, func=0x7f7ba9223320)
    at Python/ceval.c:4666
#25 PyEval_EvalFrameEx (f=f at entry=0x55f69ffd3550, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#26 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
---Type <return> to continue, or q <return> to quit---
    argcount=<optimized out>, kws=0x55f69b09aed8, kwcount=1, 
    defs=0x7f7baac4b068, defcount=1, closure=0x0) at Python/ceval.c:3584
#27 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f36b8, 
    func=0x7f7baacc6b18) at Python/ceval.c:4447
#28 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f36b8)
    at Python/ceval.c:4372
#29 PyEval_EvalFrameEx (f=f at entry=0x55f69b09ad30, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#30 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f6a0ae8bc8, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#31 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f3898, 
    func=0x7f7ba91e7758) at Python/ceval.c:4447
#32 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f3898)
    at Python/ceval.c:4372
#33 PyEval_EvalFrameEx (f=f at entry=0x55f6a0ae8a10, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#34 0x000055f6988bf4d2 in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=4, pp_stack=0x7fffb12f39b8, func=0x7f7baac4e0c8)
    at Python/ceval.c:4437
---Type <return> to continue, or q <return> to quit---
#35 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f39b8)
    at Python/ceval.c:4372
#36 PyEval_EvalFrameEx (f=f at entry=0x55f69b07e200, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#37 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7b97641ce8, argcount=<optimized out>, 
    kws=kws at entry=0x7f7b97172608, kwcount=1, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#38 0x000055f69893aaad in function_call (func=0x7f7baac4cb90, 
    arg=0x7f7b97641cd0, kw=0x7f7b971176e0) at Objects/funcobject.c:523
#39 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7baac4cb90, 
    arg=arg at entry=0x7f7b97641cd0, kw=kw at entry=0x7f7b971176e0)
    at Objects/abstract.c:2547
#40 0x000055f69882746c in instancemethod_call (func=0x7f7baac4cb90, 
    arg=0x7f7b97641cd0, kw=0x7f7b971176e0) at Objects/classobject.c:2602
#41 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7b97654730, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7b971176e0)
    at Objects/abstract.c:2547
#42 0x000055f698889a7a in slot_tp_call (self=0x7f7ba9183190, 
    args=0x7f7baec3d050, kwds=0x7f7b971176e0) at Objects/typeobject.c:5546
#43 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9183190, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7b971176e0)
---Type <return> to continue, or q <return> to quit---
    at Objects/abstract.c:2547
#44 0x000055f6988b7bce in do_call (nk=<optimized out>, na=<optimized out>, 
    pp_stack=0x7fffb12f3f18, func=0x7f7ba9183190) at Python/ceval.c:4569
#45 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f3f18)
    at Python/ceval.c:4374
#46 PyEval_EvalFrameEx (f=f at entry=0x55f6a0be0c40, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#47 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f6a0bdfc60, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#48 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f40f8, 
    func=0x7f7ba92268c0) at Python/ceval.c:4447
#49 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f40f8)
    at Python/ceval.c:4372
#50 PyEval_EvalFrameEx (f=f at entry=0x55f6a0bdfac0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#51 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7ba8c547a8, argcount=<optimized out>, 
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
---Type <return> to continue, or q <return> to quit---
#52 0x000055f69893a9c9 in function_call (func=0x7f7ba920e140, 
    arg=0x7f7ba8c54790, kw=0x0) at Objects/funcobject.c:523
#53 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba920e140, 
    arg=arg at entry=0x7f7ba8c54790, kw=kw at entry=0x0) at Objects/abstract.c:2547
#54 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=0, 
    flags=<optimized out>, pp_stack=0x7fffb12f4380, func=0x7f7ba920e140)
    at Python/ceval.c:4666
#55 PyEval_EvalFrameEx (f=f at entry=0x55f6a01b26a0, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#56 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f69b077a68, kwcount=1, 
    defs=0x7f7baac4b068, defcount=1, closure=0x0) at Python/ceval.c:3584
#57 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f4558, 
    func=0x7f7baacc6b18) at Python/ceval.c:4447
#58 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f4558)
    at Python/ceval.c:4372
#59 PyEval_EvalFrameEx (f=f at entry=0x55f69b0778c0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#60 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f6a0cae0c8, kwcount=0, defs=0x0, 
---Type <return> to continue, or q <return> to quit---
    defcount=0, closure=0x0) at Python/ceval.c:3584
#61 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f4738, 
    func=0x7f7ba91e7758) at Python/ceval.c:4447
#62 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f4738)
    at Python/ceval.c:4372
#63 PyEval_EvalFrameEx (f=f at entry=0x55f6a0cadf10, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#64 0x000055f6988bf4d2 in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=4, pp_stack=0x7fffb12f4858, func=0x7f7baac4e0c8)
    at Python/ceval.c:4437
#65 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f4858)
    at Python/ceval.c:4372
#66 PyEval_EvalFrameEx (f=f at entry=0x55f69b07a790, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#67 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7b976414a8, argcount=<optimized out>, 
    kws=kws at entry=0x7f7b97172578, kwcount=1, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#68 0x000055f69893aaad in function_call (func=0x7f7baac4cb90, 
    arg=0x7f7b97641490, kw=0x7f7bab63ac58) at Objects/funcobject.c:523
#69 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7baac4cb90, 
---Type <return> to continue, or q <return> to quit---
    arg=arg at entry=0x7f7b97641490, kw=kw at entry=0x7f7bab63ac58)
    at Objects/abstract.c:2547
#70 0x000055f69882746c in instancemethod_call (func=0x7f7baac4cb90, 
    arg=0x7f7b97641490, kw=0x7f7bab63ac58) at Objects/classobject.c:2602
#71 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7b99844230, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7bab63ac58)
    at Objects/abstract.c:2547
#72 0x000055f698889a7a in slot_tp_call (self=0x7f7ba9183390, 
    args=0x7f7baec3d050, kwds=0x7f7bab63ac58) at Objects/typeobject.c:5546
#73 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9183390, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7bab63ac58)
    at Objects/abstract.c:2547
#74 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=0, 
    flags=<optimized out>, pp_stack=0x7fffb12f4dc0, func=0x7f7ba9183390)
    at Python/ceval.c:4666
#75 PyEval_EvalFrameEx (f=f at entry=0x55f6a0c4d300, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#76 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f69b08f0f0, kwcount=0, defs=0x0, 
    defcount=0, closure=0x7f7b970f3410) at Python/ceval.c:3584
#77 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f4f98, 
---Type <return> to continue, or q <return> to quit---
    func=0x7f7b970ee140) at Python/ceval.c:4447
#78 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f4f98)
    at Python/ceval.c:4372
#79 PyEval_EvalFrameEx (f=f at entry=0x55f69b08ef30, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#80 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f69b086938, kwcount=2, 
    defs=0x7f7ba920a5a8, defcount=1, closure=0x0) at Python/ceval.c:3584
#81 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f5178, 
    func=0x7f7ba920e5f0) at Python/ceval.c:4447
#82 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f5178)
    at Python/ceval.c:4372
#83 PyEval_EvalFrameEx (f=f at entry=0x55f69b086770, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#84 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7b97658728, argcount=<optimized out>, 
    kws=kws at entry=0x7f7baec3d068, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#85 0x000055f69893aaad in function_call (func=0x7f7ba920e410, 
    arg=0x7f7b97658710, kw=0x7f7b9710b050) at Objects/funcobject.c:523
---Type <return> to continue, or q <return> to quit---
#86 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba920e410, 
    arg=arg at entry=0x7f7b97658710, kw=kw at entry=0x7f7b9710b050)
    at Objects/abstract.c:2547
#87 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=2, 
    flags=<optimized out>, pp_stack=0x7fffb12f5400, func=0x7f7ba920e410)
    at Python/ceval.c:4666
#88 PyEval_EvalFrameEx (f=f at entry=0x55f69b0767f0, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#89 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f6a01afc70, kwcount=0, 
    defs=0x7f7ba9203ce8, defcount=1, closure=0x0) at Python/ceval.c:3584
#90 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f55d8, 
    func=0x7f7ba920e320) at Python/ceval.c:4447
#91 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f55d8)
    at Python/ceval.c:4372
#92 PyEval_EvalFrameEx (f=f at entry=0x55f6a01afaa0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#93 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f6a0caf668, kwcount=1, 
    defs=0x7f7ba9306d58, defcount=2, closure=0x0) at Python/ceval.c:3584
---Type <return> to continue, or q <return> to quit---
#94 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f57b8, 
    func=0x7f7ba9208f50) at Python/ceval.c:4447
#95 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f57b8)
    at Python/ceval.c:4372
#96 PyEval_EvalFrameEx (f=f at entry=0x55f6a0caf4d0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#97 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7b976a38d8, argcount=<optimized out>, 
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#98 0x000055f69893a9c9 in function_call (func=0x7f7ba9208ed8, 
    arg=0x7f7b976a38c0, kw=0x0) at Objects/funcobject.c:523
#99 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9208ed8, 
    arg=arg at entry=0x7f7b976a38c0, kw=kw at entry=0x0) at Objects/abstract.c:2547
#100 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=0, 
    flags=<optimized out>, pp_stack=0x7fffb12f5a40, func=0x7f7ba9208ed8)
    at Python/ceval.c:4666
#101 PyEval_EvalFrameEx (f=f at entry=0x55f69ae74120, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#102 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
---Type <return> to continue, or q <return> to quit---
    argcount=<optimized out>, kws=0x55f6a0920fe8, kwcount=1, 
    defs=0x7f7baac4b068, defcount=1, closure=0x0) at Python/ceval.c:3584
#103 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f5c18, 
    func=0x7f7baacc6b18) at Python/ceval.c:4447
#104 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f5c18)
    at Python/ceval.c:4372
#105 PyEval_EvalFrameEx (f=f at entry=0x55f6a0920e40, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#106 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x7f7b9715b208, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#107 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f5df8, 
    func=0x7f7ba91e7758) at Python/ceval.c:4447
#108 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f5df8)
    at Python/ceval.c:4372
#109 PyEval_EvalFrameEx (f=f at entry=0x7f7b9715b050, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#110 0x000055f6988bf4d2 in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=4, pp_stack=0x7fffb12f5f18, func=0x7f7baac4e0c8)
    at Python/ceval.c:4437
---Type <return> to continue, or q <return> to quit---
#111 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f5f18)
    at Python/ceval.c:4372
#112 PyEval_EvalFrameEx (f=f at entry=0x55f6a0c69730, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#113 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7b9bb04368, argcount=<optimized out>, 
    kws=kws at entry=0x7f7b977084e0, kwcount=2, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#114 0x000055f69893aaad in function_call (func=0x7f7baac4cb90, 
    arg=0x7f7b9bb04350, kw=0x7f7b9a79a280) at Objects/funcobject.c:523
#115 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7baac4cb90, 
    arg=arg at entry=0x7f7b9bb04350, kw=kw at entry=0x7f7b9a79a280)
    at Objects/abstract.c:2547
#116 0x000055f69882746c in instancemethod_call (func=0x7f7baac4cb90, 
    arg=0x7f7b9bb04350, kw=0x7f7b9a79a280) at Objects/classobject.c:2602
#117 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7b9ae4a1e0, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7b9a79a280)
    at Objects/abstract.c:2547
#118 0x000055f698889a7a in slot_tp_call (self=0x7f7ba9183610, 
    args=0x7f7baec3d050, kwds=0x7f7b9a79a280) at Objects/typeobject.c:5546
#119 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9183610, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7b9a79a280)
---Type <return> to continue, or q <return> to quit---
    at Objects/abstract.c:2547
#120 0x000055f6988b7bce in do_call (nk=<optimized out>, na=<optimized out>, 
    pp_stack=0x7fffb12f6478, func=0x7f7ba9183610) at Python/ceval.c:4569
#121 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f6478)
    at Python/ceval.c:4374
#122 PyEval_EvalFrameEx (f=f at entry=0x7f7b979dade0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#123 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7ba8bf9da8, argcount=<optimized out>, 
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#124 0x000055f69893a9c9 in function_call (func=0x7f7ba9211398, 
    arg=0x7f7ba8bf9d90, kw=0x0) at Objects/funcobject.c:523
#125 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9211398, 
    arg=arg at entry=0x7f7ba8bf9d90, kw=kw at entry=0x0) at Objects/abstract.c:2547
#126 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=0, 
    flags=<optimized out>, pp_stack=0x7fffb12f6700, func=0x7f7ba9211398)
    at Python/ceval.c:4666
#127 PyEval_EvalFrameEx (f=f at entry=0x55f69c702990, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#128 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
---Type <return> to continue, or q <return> to quit---
    argcount=<optimized out>, kws=0x55f69c449868, kwcount=1, 
    defs=0x7f7baac4b068, defcount=1, closure=0x0) at Python/ceval.c:3584
#129 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f68d8, 
    func=0x7f7baacc6b18) at Python/ceval.c:4447
#130 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f68d8)
    at Python/ceval.c:4372
#131 PyEval_EvalFrameEx (f=f at entry=0x55f69c4496c0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#132 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f69c74a4b8, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#133 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f6ab8, 
    func=0x7f7ba91e7758) at Python/ceval.c:4447
#134 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f6ab8)
    at Python/ceval.c:4372
#135 PyEval_EvalFrameEx (f=f at entry=0x55f69c74a300, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#136 0x000055f6988bf4d2 in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=4, pp_stack=0x7fffb12f6bd8, func=0x7f7baac4e0c8)
    at Python/ceval.c:4437
---Type <return> to continue, or q <return> to quit---
#137 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f6bd8)
    at Python/ceval.c:4372
#138 PyEval_EvalFrameEx (f=f at entry=0x7f7b97a26da8, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#139 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7ba8bf9ca8, argcount=<optimized out>, 
    kws=kws at entry=0x7f7b9b35d5c0, kwcount=1, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#140 0x000055f69893aaad in function_call (func=0x7f7baac4cb90, 
    arg=0x7f7ba8bf9c90, kw=0x7f7b9ae49b40) at Objects/funcobject.c:523
#141 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7baac4cb90, 
    arg=arg at entry=0x7f7ba8bf9c90, kw=kw at entry=0x7f7b9ae49b40)
    at Objects/abstract.c:2547
#142 0x000055f69882746c in instancemethod_call (func=0x7f7baac4cb90, 
    arg=0x7f7ba8bf9c90, kw=0x7f7b9ae49b40) at Objects/classobject.c:2602
#143 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7b9ae4a140, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7b9ae49b40)
    at Objects/abstract.c:2547
#144 0x000055f698889a7a in slot_tp_call (self=0x7f7ba9183790, 
    args=0x7f7baec3d050, kwds=0x7f7b9ae49b40) at Objects/typeobject.c:5546
#145 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9183790, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7b9ae49b40)
---Type <return> to continue, or q <return> to quit---
    at Objects/abstract.c:2547
#146 0x000055f6988b7bce in do_call (nk=<optimized out>, na=<optimized out>, 
    pp_stack=0x7fffb12f7138, func=0x7f7ba9183790) at Python/ceval.c:4569
#147 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f7138)
    at Python/ceval.c:4374
#148 PyEval_EvalFrameEx (f=f at entry=0x7f7b9b364938, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#149 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f69b1156c0, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#150 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f7318, 
    func=0x7f7ba92112a8) at Python/ceval.c:4447
#151 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f7318)
    at Python/ceval.c:4372
#152 PyEval_EvalFrameEx (f=f at entry=0x55f69b115500, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#153 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x55f69b198798, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#154 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
---Type <return> to continue, or q <return> to quit---
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f74f8, 
    func=0x7f7ba92111b8) at Python/ceval.c:4447
#155 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f74f8)
    at Python/ceval.c:4372
#156 PyEval_EvalFrameEx (f=f at entry=0x55f69b198600, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#157 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7ba8c9ada8, argcount=<optimized out>, 
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#158 0x000055f69893a9c9 in function_call (func=0x7f7ba9211230, 
    arg=0x7f7ba8c9ad90, kw=0x0) at Objects/funcobject.c:523
#159 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9211230, 
    arg=arg at entry=0x7f7ba8c9ad90, kw=kw at entry=0x0) at Objects/abstract.c:2547
#160 0x000055f6988b8710 in ext_do_call (nk=<optimized out>, na=0, 
    flags=<optimized out>, pp_stack=0x7fffb12f7780, func=0x7f7ba9211230)
    at Python/ceval.c:4666
#161 PyEval_EvalFrameEx (f=f at entry=0x55f69b1b5fa0, throwflag=throwflag at entry=0)
    at Python/ceval.c:3028
#162 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x7f7ba8c88d68, kwcount=1, 
---Type <return> to continue, or q <return> to quit---
    defs=0x7f7baac4b068, defcount=1, closure=0x0) at Python/ceval.c:3584
#163 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f7958, 
    func=0x7f7baacc6b18) at Python/ceval.c:4447
#164 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f7958)
    at Python/ceval.c:4372
#165 PyEval_EvalFrameEx (f=f at entry=0x7f7ba8c88bc0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#166 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x7f7ba8c963e8, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:3584
#167 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f7b38, 
    func=0x7f7ba91e7758) at Python/ceval.c:4447
#168 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f7b38)
    at Python/ceval.c:4372
#169 PyEval_EvalFrameEx (f=f at entry=0x7f7ba8c96230, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#170 0x000055f6988bf4d2 in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=4, pp_stack=0x7fffb12f7c58, func=0x7f7baac4e0c8)
    at Python/ceval.c:4437
#171 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f7c58)
---Type <return> to continue, or q <return> to quit---
    at Python/ceval.c:4372
#172 PyEval_EvalFrameEx (f=f at entry=0x7f7ba8c90230, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#173 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, 
    args=args at entry=0x7f7baeb11ca8, argcount=<optimized out>, 
    kws=kws at entry=0x7f7ba9304380, kwcount=1, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:3584
#174 0x000055f69893aaad in function_call (func=0x7f7baac4cb90, 
    arg=0x7f7baeb11c90, kw=0x7f7ba8cdc7f8) at Objects/funcobject.c:523
#175 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7baac4cb90, 
    arg=arg at entry=0x7f7baeb11c90, kw=kw at entry=0x7f7ba8cdc7f8)
    at Objects/abstract.c:2547
#176 0x000055f69882746c in instancemethod_call (func=0x7f7baac4cb90, 
    arg=0x7f7baeb11c90, kw=0x7f7ba8cdc7f8) at Objects/classobject.c:2602
#177 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba9503910, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7ba8cdc7f8)
    at Objects/abstract.c:2547
#178 0x000055f698889a7a in slot_tp_call (self=0x7f7ba917b1d0, 
    args=0x7f7baec3d050, kwds=0x7f7ba8cdc7f8) at Objects/typeobject.c:5546
#179 0x000055f69882386a in PyObject_Call (func=func at entry=0x7f7ba917b1d0, 
    arg=arg at entry=0x7f7baec3d050, kw=kw at entry=0x7f7ba8cdc7f8)
    at Objects/abstract.c:2547
---Type <return> to continue, or q <return> to quit---
#180 0x000055f6988b7bce in do_call (nk=<optimized out>, na=<optimized out>, 
    pp_stack=0x7fffb12f81b8, func=0x7f7ba917b1d0) at Python/ceval.c:4569
#181 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f81b8)
    at Python/ceval.c:4374
#182 PyEval_EvalFrameEx (f=f at entry=0x55f69ae0d4f0, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#183 0x000055f6988c0380 in PyEval_EvalCodeEx (co=<optimized out>, 
    globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, 
    argcount=<optimized out>, kws=0x7f7baeb66c88, kwcount=0, 
    defs=0x7f7ba9306c80, defcount=2, closure=0x0) at Python/ceval.c:3584
#184 0x000055f6988bd0dd in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffb12f8398, 
    func=0x7f7ba92bd9b0) at Python/ceval.c:4447
#185 call_function (oparg=<optimized out>, pp_stack=0x7fffb12f8398)
    at Python/ceval.c:4372
#186 PyEval_EvalFrameEx (f=f at entry=0x7f7baeb66b00, throwflag=throwflag at entry=0)
    at Python/ceval.c:2989
#187 0x000055f6988c0380 in PyEval_EvalCodeEx (co=co at entry=0x7f7baeb808b0, 
    globals=globals at entry=0x7f7baec12168, locals=locals at entry=0x7f7baec12168, 
    args=args at entry=0x0, argcount=argcount at entry=0, kws=kws at entry=0x0, 
    kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3584
#188 0x000055f6988c0599 in PyEval_EvalCode (co=co at entry=0x7f7baeb808b0, 
    globals=globals at entry=0x7f7baec12168, locals=locals at entry=0x7f7baec12168)
---Type <return> to continue, or q <return> to quit---
    at Python/ceval.c:669
#189 0x000055f6988e8e70 in run_mod (arena=0x55f69a944b10, 
    flags=0x7fffb12f864c, locals=0x7f7baec12168, globals=0x7f7baec12168, 
    filename=0x7fffb12fa02c "/home/parallels/OS-GIS/build/python/bin/pytest", 
    mod=0x55f69a9ca7c8) at Python/pythonrun.c:1376
#190 PyRun_FileExFlags (fp=0x55f69a96dfa0, 
    filename=0x7fffb12fa02c "/home/parallels/OS-GIS/build/python/bin/pytest", 
    start=<optimized out>, globals=0x7f7baec12168, locals=0x7f7baec12168, 
    closeit=1, flags=0x7fffb12f864c) at Python/pythonrun.c:1362
#191 0x000055f6988eb621 in PyRun_SimpleFileExFlags (fp=0x55f69a96dfa0, 
    filename=0x7fffb12fa02c "/home/parallels/OS-GIS/build/python/bin/pytest", 
    closeit=1, flags=0x7fffb12f864c) at Python/pythonrun.c:948
#192 0x000055f6988152a0 in Py_Main (argc=<optimized out>, argv=<optimized out>)
    at Modules/main.c:640
#193 0x00007f7badcf3b97 in __libc_start_main (main=0x55f6988144f0 <main>, 
    argc=2, argv=0x7fffb12f8808, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffb12f87f8)
    at ../csu/libc-start.c:310
#194 0x000055f69881452a in _start ()
(gdb) 


John Daniel
Etresoft, Inc.

> On Apr 18, 2019, at 5:17 AM, Even Rouault <even.rouault at spatialys.com> wrote:
> 
>> E   ImportError:
>> /home/parallels/OS-GIS/platforms/linux/x86_64/gdal/lib/python2.7/site-packa
>> ges/osgeo/_gdal.so: undefined symbol: CPLGetErrorCounter
> 
> Try
> 
> ldd /home/parallels/OS-GIS/platforms/linux/x86_64/gdal/lib/python2.7/site-packages/osgeo/_gdal.so
> 
> and check which libgdal.so it links to. It is likely that it is not the right one.
> 
> You'll have to adjust your LD_LIBRARY_PATH then.
> Sourcing scripts/setdevenv.sh should do that for you
> 
> 
> -- 
> Spatialys - Geospatial professional services
> http://www.spatialys.com



More information about the gdal-dev mailing list