==26184== Memcheck, a memory error detector ==26184== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==26184== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==26184== Command: ogr2ogr -f GeoJSON -t_srs EPSG:4326 dest.json TOWNSSURVEY_POLY.shp ==26184== ==26184== Invalid free() / delete / delete[] / realloc() ==26184== at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==26184== by 0x157522B7: pj_free (pj_init.c:496) ==26184== by 0x5215F79: OGRProj4CT::~OGRProj4CT() (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5216099: OGRProj4CT::~OGRProj4CT() (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5238AC1: OGRGeometryFactory::transformWithOptions(OGRGeometry const*, OGRCoordinateTransformation*, char**) (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5319E50: LayerTranslator::Translate(OGRFeature*, TargetLayerInfo*, long long, long long*, long long&, int (*)(double, char const*, void*), void*, GDALVectorTranslateOptions*) (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5321B3C: GDALVectorTranslate (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x109B14: ??? (in /usr/bin/ogr2ogr) ==26184== by 0x6612F69: (below main) (in /usr/lib/libc-2.26.so) ==26184== Address 0x126d7400 is in the Text segment of /usr/lib/libproj.so.12.0.0 ==26184== at 0x126D7400: ??? (in /usr/lib/libproj.so.12.0.0) ==26184== ==26184== Invalid read of size 8 ==26184== at 0x157522B0: pj_free (pj_init.c:495) ==26184== by 0x5215F79: OGRProj4CT::~OGRProj4CT() (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5216099: OGRProj4CT::~OGRProj4CT() (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5238AC1: OGRGeometryFactory::transformWithOptions(OGRGeometry const*, OGRCoordinateTransformation*, char**) (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5319E50: LayerTranslator::Translate(OGRFeature*, TargetLayerInfo*, long long, long long*, long long&, int (*)(double, char const*, void*), void*, GDALVectorTranslateOptions*) (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5321B3C: GDALVectorTranslate (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x109B14: ??? (in /usr/bin/ogr2ogr) ==26184== by 0x6612F69: (below main) (in /usr/lib/libc-2.26.so) ==26184== Address 0x8fe6e90b74ff8548 is not stack'd, malloc'd or (recently) free'd ==26184== ==26184== ==26184== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==26184== General Protection Fault ==26184== at 0x157522B0: pj_free (pj_init.c:495) ==26184== by 0x5215F79: OGRProj4CT::~OGRProj4CT() (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5216099: OGRProj4CT::~OGRProj4CT() (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5238AC1: OGRGeometryFactory::transformWithOptions(OGRGeometry const*, OGRCoordinateTransformation*, char**) (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5319E50: LayerTranslator::Translate(OGRFeature*, TargetLayerInfo*, long long, long long*, long long&, int (*)(double, char const*, void*), void*, GDALVectorTranslateOptions*) (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x5321B3C: GDALVectorTranslate (in /usr/lib/libgdal.so.20.3.0) ==26184== by 0x109B14: ??? (in /usr/bin/ogr2ogr) ==26184== by 0x6612F69: (below main) (in /usr/lib/libc-2.26.so) ==26184== ==26184== HEAP SUMMARY: ==26184== in use at exit: 535,200 bytes in 5,980 blocks ==26184== total heap usage: 34,256 allocs, 28,277 frees, 2,455,572 bytes allocated ==26184== ==26184== LEAK SUMMARY: ==26184== definitely lost: 0 bytes in 0 blocks ==26184== indirectly lost: 0 bytes in 0 blocks ==26184== possibly lost: 0 bytes in 0 blocks ==26184== still reachable: 535,200 bytes in 5,980 blocks ==26184== suppressed: 0 bytes in 0 blocks ==26184== Rerun with --leak-check=full to see details of leaked memory ==26184== ==26184== For counts of detected and suppressed errors, rerun with: -v ==26184== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) [1] 26184 segmentation fault (core dumped) valgrind ogr2ogr -f "GeoJSON" -t_srs EPSG:4326 dest.json TOWNSSURVEY_POLY.shp