I am using Arch Linux (continuous/rolling distro), using gdal from the official repositories.
Using proj. 4.9.3-1 from official repos.
As mentioned, previously (within the past month) the first re-projection example was working fine. Suddenly today I was analyzing a different tile and ran into the error, and I have not made any changes to my setup that I am aware of that would change behavior.
Output of running ogr2ogr with valgrind in attached file.
Thanks,
Nick
On Sep 12, 2017, at 04:28 PM, Even Rouault <[email protected]> wrote:
As mentioned, previously (within the past month) the first re-projection example was working fine. Suddenly today I was analyzing a different tile and ran into the error, and I have not made any changes to my setup that I am aware of that would change behavior.
Output of running ogr2ogr with valgrind in attached file.
Thanks,
Nick
On Sep 12, 2017, at 04:28 PM, Even Rouault <[email protected]> wrote:
On mardi 12 septembre 2017 23:08:13 CEST you wrote:
> The source projection is contained in the accompanying .prj file in the zip,
> so it's probably easiest just to download and extract the zip.
I can't reproduce any crash nor error on Ubuntu 16.04 with gdal trunk, head of 2.2 branch or 2.2.1 release.
Which OS do you run ?
If you build GDAL yourself, which configure command line did you use ?
Which proj.4 version do you use ?
Since you probably run Linux from the crash message, can you install valgrind if not already done and run
valgrind ogr2ogr -f "GeoJSON" -t_srs EPSG:4326 dest.json TOWNSSURVEY_POLY.shp
--
Spatialys - Geospatial professional services
==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
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
