Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 557268

Summary: sci-libs/gdal-1.11.1-r3 to 2.0.0 SEGFAULT on spatialite input files
Product: Gentoo Linux Reporter: Daniel Hiepler <d-too>
Component: [OLD] LibraryAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge -pv gdal

Description Daniel Hiepler 2015-08-11 01:10:59 UTC
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.)
Comment 1 Daniel Hiepler 2015-08-11 01:11:33 UTC
Created attachment 408766 [details]
emerge -pv gdal
Comment 2 Daniel Hiepler 2015-08-14 09:26:31 UTC
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
Comment 3 Daniel Hiepler 2015-08-17 13:08:21 UTC
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
Comment 4 Andreas Sturmlechner gentoo-dev 2017-07-19 19:03:41 UTC
Thanks Daniel for working this out, dev-db/spatialite-4.3.0 is the oldest version in tree for some time.