Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2015 22:06
Show Gist options
  • Save anonymous/948a3e168f05d220b6a7 to your computer and use it in GitHub Desktop.
Save anonymous/948a3e168f05d220b6a7 to your computer and use it in GitHub Desktop.
ogrinfo segfault
valgrind ogrinfo filter_china/filter.sqlite
==1523== Memcheck, a memory error detector
==1523== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==1523== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==1523== Command: ogrinfo filter_china/filter.sqlite
==1523==
==1523== Invalid read of size 8
==1523== at 0x8FA3FC1: spatialite_init (in /usr/lib64/libspatialite.so.2.0.4)
==1523== by 0x572E9BA: OGRSQLiteDataSource::Open(char const*, int, char**) (in /usr/lib64/libgdal.so.2.0.0)
==1523== by 0x573558E: OGRSQLiteDriverOpen(GDALOpenInfo*) (in /usr/lib64/libgdal.so.2.0.0)
==1523== by 0x545A495: GDALOpenEx (in /usr/lib64/libgdal.so.2.0.0)
==1523== by 0x402717: main (in /usr/bin/ogrinfo)
==1523== Address 0x600 is not stack'd, malloc'd or (recently) free'd
==1523==
==1523==
==1523== Process terminating with default action of signal 11 (SIGSEGV)
==1523== Access not within mapped region at address 0x600
==1523== at 0x8FA3FC1: spatialite_init (in /usr/lib64/libspatialite.so.2.0.4)
==1523== by 0x572E9BA: OGRSQLiteDataSource::Open(char const*, int, char**) (in /usr/lib64/libgdal.so.2.0.0)
==1523== by 0x573558E: OGRSQLiteDriverOpen(GDALOpenInfo*) (in /usr/lib64/libgdal.so.2.0.0)
==1523== by 0x545A495: GDALOpenEx (in /usr/lib64/libgdal.so.2.0.0)
==1523== by 0x402717: main (in /usr/bin/ogrinfo)
==1523== If you believe this happened as a result of a stack
==1523== overflow in your program's main thread (unlikely but
==1523== possible), you can try to increase the size of the
==1523== main thread stack using the --main-stacksize= flag.
==1523== The main thread stack size used in this run was 8388608.
==1523==
==1523== HEAP SUMMARY:
==1523== in use at exit: 225,895 bytes in 2,963 blocks
==1523== total heap usage: 3,747 allocs, 784 frees, 418,409 bytes allocated
==1523==
==1523== LEAK SUMMARY:
==1523== definitely lost: 0 bytes in 0 blocks
==1523== indirectly lost: 0 bytes in 0 blocks
==1523== possibly lost: 10,987 bytes in 362 blocks
==1523== still reachable: 214,908 bytes in 2,601 blocks
==1523== suppressed: 0 bytes in 0 blocks
==1523== Rerun with --leak-check=full to see details of leaked memory
==1523==
==1523== For counts of detected and suppressed errors, rerun with: -v
==1523== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment