[MacPorts] #58332: py27-astropy segfaults at 14% in tests

MacPorts noreply at macports.org
Tue May 21 04:45:09 UTC 2019


#58332: py27-astropy segfaults at 14% in tests
-----------------------------------+-----------------------
  Reporter:  Russell-Jones-OxPhys  |      Owner:  astrofrog
      Type:  defect                |     Status:  assigned
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.5.4
Resolution:                        |   Keywords:
      Port:  py-astropy            |
-----------------------------------+-----------------------

Comment (by kencu):

 here is what I got on my day-to-day 10.6.8 machine, that also crashed
 during the py27-astropy test run:
 {{{
 Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
 Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
 Crashed Thread:  0  Dispatch queue: com.apple.main-thread

 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   libSystem.B.dylib                   0x00007fff80c6fc00 strlen + 16
 1   org.python.python                   0x000000011aba2ad7
 PyString_FromString + 23
 2   org.python.python                   0x000000011ab95159
 PyDict_SetItemString + 25
 3   _wcs.so                             0x000000010cd5e6d2 PyWcsprm_fix +
 1282
 4   org.python.python                   0x000000011abff07b
 PyEval_EvalFrameEx + 10171
 5   org.python.python                   0x000000011abfc664
 PyEval_EvalCodeEx + 2212
 6   org.python.python                   0x000000011ac071cd fast_function +
 109
 7   org.python.python                   0x000000011abfeacc
 PyEval_EvalFrameEx + 8716
 8   org.python.python                   0x000000011abfc664
 PyEval_EvalCodeEx + 2212
 9   org.python.python                   0x000000011ab7c6a4 function_call +
 340
 10  org.python.python                   0x000000011ab53051 PyObject_Call +
 97
 }}}

 I then tried the small example above:
 {{{
 from astropy.io import fits
 from astropy.wcs import WCS

 ff='HorseHead.fits'
 f_fits = fits.open(ff)
 w_f = WCS(f_fits[0].header, naxis=2)
 }}}
 using <https://astropy.stsci.edu/data/tutorials/FITS-
 images/HorseHead.fits>

 and I got a similar crash in the WCS(f_fits..) function call

 I'll upload both these crashlogs.

 FWIW, I added the test suite to the `wcslib` Portfile:
 {{{

 test.run    yes
 test.target check
 }}}
 and all the tests in `wcslib` pass.

-- 
Ticket URL: <https://trac.macports.org/ticket/58332#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list