Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557268 - sci-libs/gdal-1.11.1-r3 to 2.0.0 SEGFAULT on spatialite input files
Summary: sci-libs/gdal-1.11.1-r3 to 2.0.0 SEGFAULT on spatialite input files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 01:10 UTC by Daniel Hiepler
Modified: 2017-07-19 19:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,5.40 KB, text/plain)
2015-08-11 01:10 UTC, Daniel Hiepler
Details
emerge -pv gdal (emerge_-pv_gdal.txt,447 bytes, text/plain)
2015-08-11 01:11 UTC, Daniel Hiepler
Details

Note You need to log in before you can comment on or make changes to this bug.
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.