<html><body><div><span style="font-size: 13px;" data-mce-style="font-size: 13px;">➜ ls -lah /usr/lib/ | grep -i libproj  </span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">lrwxrwxrwx   1 root root    17 Sep 14  2016 libproj.so -> libproj.so.12.0.0</span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">lrwxrwxrwx   1 root root    17 Sep 14  2016 libproj.so.12 -> libproj.so.12.0.0</span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">-rwxr-xr-x   1 root root  423K Sep 14  2016 libproj.so.12.0.0</span><br><br>Also, <br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">➜ ldd /usr/bin/ogr2ogr | grep -i proj </span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">libproj.so.12 => /usr/lib/libproj.so.12 (0x00007fcbcfd92000)</span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">➜ /usr/bin/ogr2ogr | grep -i spatial </span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">libspatialite.so.7 => /usr/lib/libspatialite.so.7 (0x00007f20274ad000)</span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">➜ ldd /usr/lib/libspatialite.so.7 | grep -i proj </span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">libproj.so.12 => /usr/lib/libproj.so.12 (0x00007f7c7a032000)</span><br><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">➜ print $LD_LIBRARY_PATH</span><br><span style="font-size: 13px;" data-mce-style="font-size: 13px;">/usr/lib:/usr/lib32</span><br></div><div><br>On Sep 13, 2017, at 02:22 AM, Even Rouault <even.rouault@spatialys.com> wrote:<br><br><div><blockquote type="cite"><div class="msg-quote" style="font-family: 'monospace'; font-size: 9pt; font-weight: 400; font-style: normal;" data-mce-style="font-family: 'monospace'; font-size: 9pt; font-weight: 400; font-style: normal;"><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">On mardi 12 septembre 2017 23:47:09 CEST Nick Cummins wrote:</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> I am using Arch Linux (continuous/rolling distro), using gdal from the</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> official repositories.</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">></p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> Using proj. 4.9.3-1 from official repos.</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> As mentioned, previously (within the past month) the first re-projection</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> example was working fine. Suddenly today I was analyzing a different tile</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> and ran into the error, and I have not made any changes to my setup that I</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> am aware of that would change behavior. </p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">></p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> Output of running ogr2ogr with valgrind in attached file.</p><p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;" data-mce-style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">It crashes in proj.4. But the lines mentionned are weird : pj_free (pj_init.c:496). At line 496 of pj_init.c, this is not the pj_free() function. Perhaps due to optimizations that mess up line reporting. I tried with proj 4.9.3 and it works fine for me.</p><p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;" data-mce-style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">I see from</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;"><a href="https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gdal" data-mce-href="https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gdal">https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gdal</a> that archlinux doesn't build with GDAL with --with-static-proj4, so I'm wondering if there isn't a mix of proj.4 versions. Isn't there a chance that one of the dependencies of GDAL links against a libproj.so.X (spatialite could be a good candidate) and that GDAL then loads a libproj.so that is a symlink to libproj.so.Y</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">Can you check your /usr/lib/libproj.so* files ?</p><p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;" data-mce-style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">Even</p><p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;" data-mce-style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">--</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">Spatialys - Geospatial professional services</p><p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;"><a href="http://www.spatialys.com" data-mce-href="http://www.spatialys.com">http://www.spatialys.com</a><br data-mce-bogus="1"></p><style class="existing-message-styles" type="text/css">.msg-quote p, li {white-space: pre-wrap;}
</style></div></blockquote></div></div></body></html>