Created attachment 408764 [details] emerge --info All applications depending on gdal crash when spatialite/sqlite files are used. It doesn't happen on debian based distros. Reproduce: 1. Download sample database from https://www.gaia-gis.it/spatialite-2.3.1/test-2.3.sqlite.gz 2. gunzip 3. ogrinfo test-2.3.sqlite Produces as SEGFAULT. (The attachments refer to version 1.11.1-r3 but I also tried 2.0.0 and even compiled master manually. Without difference.)
Created attachment 408766 [details] emerge -pv gdal
Here's the valgrind output (using a non debug-build) of the problem: https://gist.github.com/anonymous/948a3e168f05d220b6a7 same crash happens with spatialite 3.0.1
The bug is gone with this combination of versions: * libspatialite-4.3.0 (compiled from the source tarball) * dev-db/sqlite-3.8.10.2 * sci-libs/gdal-2.0.0 So it's definetly linked to libspatialite, which causes the bug. The latest available version in portage is 3.0.1
Thanks Daniel for working this out, dev-db/spatialite-4.3.0 is the oldest version in tree for some time.