[Numpy-svn] [numpy/numpy] a226da: BUG: Choose a more unique PY_ARRAY_UNIQUE_SYMBOL i...

GitHub noreply@github....
Fri Mar 1 19:48:39 CST 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: a226daa75816577ac9c734133e600e5eebd9aaa9
      https://github.com/numpy/numpy/commit/a226daa75816577ac9c734133e600e5eebd9aaa9
  Author: Bradley M. Froehle <brad.froehle@gmail.com>
  Date:   2013-02-24 (Sun, 24 Feb 2013)

  Changed paths:
    M numpy/f2py/src/fortranobject.h

  Log Message:
  -----------
  BUG: Choose a more unique PY_ARRAY_UNIQUE_SYMBOL in f2py.

In a few exceptional cases where symbols are shared between different
Python modules the use of `PyArray_API` in f2py (fortranobject.h)
conflicts with the regular use of the same symbol in the multiarray
module. Generally the symptom of this conflicting use is a segfault
when importing a f2py'ed module. This occurs because the module init
code somehow overwrites the first element of `PyArray_API` with the
location of `PyArray_API`, causing a crash when
`PyArray_GetNDArrayCVersion` is called.

Closes gh-2521.


  Commit: d21281a6f4070afc706da90e40802b42ceda7e99
      https://github.com/numpy/numpy/commit/d21281a6f4070afc706da90e40802b42ceda7e99
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-03-01 (Fri, 01 Mar 2013)

  Changed paths:
    M numpy/f2py/src/fortranobject.h

  Log Message:
  -----------
  Merge pull request #3014 from bfroehle/f2py_unque_symbol

BUG: Choose a more unique PY_ARRAY_UNIQUE_SYMBOL in f2py.


Compare: https://github.com/numpy/numpy/compare/2b71ffb70266...d21281a6f407


More information about the Numpy-svn mailing list