New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #35010 (new defect)

Opened 11 months ago

Last modified 8 months ago

gdal: gdalinfo segfault: 11

Reported by: ak@… Owned by: seanasy@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: js2@…
Port: gdal

Description (last modified by ryandesign@…) (diff)

The new gdal instalation seems to be broken. Gdalinfo crashes with the error:

gdalinfo imt_image_COV61m_v3.tif
Driver: GTiff/GeoTIFF
Files: imt_image_COV61m_v3.tif
Size is 4320, 8100
Segmentation fault: 11

It happens with every single geotiff file that is opened without any problems by other software.

Change History

comment:1 Changed 11 months ago by ryandesign@…

  • Description modified (diff)
  • Cc seanasy@…, openmaintainer@… removed
  • Summary changed from gdalinfo segfault: 11 to gdal: gdalinfo segfault: 11
  • Keywords gdalinfo removed
  • Owner changed from macports-tickets@… to seanasy@…
  • Port changed from gdal @1.9.0_3+expat to gdal

What's your OS version? Xcode version? CPU architecture?

comment:2 Changed 11 months ago by ak@…

OS X 10.7.3, 1.8Ghz Intel Core i7, Xcode Version 4.2.1 (4D502)

comment:3 follow-up: ↓ 5 Changed 10 months ago by js2@…

Same problem here on two different 10.7.4 systems, Core i5 (Xcode 4.1 (4B110)) and Core 2 Duo. Also the Python bindings throw the same segfault when trying to read projection data from a dataset. In GDB, the call stack seems corrupted (only one frame with address 0xc0b).

It seems that the binary distfile (http://packages.macports.org/gdal/gdal-1.9.0_3+expat.darwin_11.x86_64.tbz2) is broken, at least on our systems. However, a self-built version works without segfaults.

In other words, if we do:

$ port uninstall gdal  (removes binary distfile install)
$ port build gdal
$ port destroot gdal
$ port install gdal

It all works on both systems with the current portfile.

comment:4 Changed 10 months ago by js2@…

  • Cc js2@… added

Cc Me!

comment:5 in reply to: ↑ 3 Changed 10 months ago by ak@…

I did manually what you suggested:

$ port uninstall gdal 
$ port build gdal
$ port destroot gdal
$ port install gdal

and gdal works fine now! Thanks a lot! I really appreciate your help.

comment:6 Changed 8 months ago by jmr@…

Is this still a problem with 1.9.1?

Note: See TracTickets for help on using tickets.