[SciPy-user] Bus error on Intel mac pro w/Leopard, gcc 4.2, numpy from svn head

Robert Kern robert.kern@gmail....
Tue Jun 17 13:05:23 CDT 2008


On Tue, Jun 17, 2008 at 06:24, Anand Patil
<anand.prabhakar.patil@gmail.com> wrote:
> I found the bit of PyMC that was making views of views & changed it,
> and the problem seems to be gone (now that I have announced that I'm
> sure it'll come back this afternoon)... so this isn't a personal
> emergency anymore. So thanks for the tip about views.

Okay, good. Can you post your patch? That might give us some clues.

> I tried reproducing the bug as follows:
>
> In [1]: from numpy import *
>
> In [2]: A = zeros(10)
>
> In [3]: for i in xrange(100000000):
>    ...:     B = A.view(ndarray)
>
> but no errors happened.

In [1]: from numpy import *

In [2]: A = zeros(1, dtype=uint8)

In [3]: B = A[:]

In [4]: for i in xrange(1000000):
   ...:     B = B[:]
   ...:
   ...:

In [5]: del B
zsh: segmentation fault  ipython

Yay! Reproducibility!

http://scipy.org/scipy/numpy/ticket/822

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco


More information about the SciPy-user mailing list