Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting proj_data_dir with PROJ 6.0.0 segfaults #407

Open
sebastic opened this issue Apr 21, 2019 · 1 comment
Open

setting proj_data_dir with PROJ 6.0.0 segfaults #407

sebastic opened this issue Apr 21, 2019 · 1 comment

Comments

@sebastic
Copy link
Contributor

Context

The rebuild of the mapproxy Debian package with GDAL 2.5.0-beta1 & PROJ 6.0.0 got a segfault during the tests:

mapproxy.test.unit.test_srs.Test_1_ProjDataPath.test_dummy_srs ... Segmentation fault

Expected Behavior

No segfault

Actual Behavior

Segfault

Possible Fix

Update test for GDAL 2.5.0, see:

https://github.com/OSGeo/gdal/blob/v2.5.0beta1/gdal/MIGRATION_GUIDE.TXT

Steps to Reproduce

  1. Build PROJ 6.0.0
  2. Build libgeotiff 1.5.1 with PROJ 6.0.0
  3. Build GDAL 2.5.0-beta1 with the above
  4. Run mapproxy tests with the above

Your Environment

  • Version used: 1.11.0
  • Environment name and version: Python 2.7.16 with PROJ 6.0.0, libgeotiff 1.5.1 & GDAL 2.5.0-beta1
  • Server type and version: N/A
  • Operating System and version: Debian unstable
@olt olt changed the title test_dummy_srs segfault with GDAL 2.5.0 & PROJ 6.0.0 setting proj_data_dir with PROJ 6.0.0 segfaults Jun 24, 2019
@olt
Copy link
Member

olt commented Jun 24, 2019

Confirmed. Setting a custom data proj_data_dir can result in a segmentation fault. This is unrelated to GDAL 2.5, but likely due to the substantial changes in Proj > 4.

I was unable to find a quick fix. MapProxy needs to use the new Proj API in the mid/long term, hopefully fixing this.

Until then, the PROJ_LIB environment can be used to point to custom EPSG definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants