8000 Segfault deallocating long chains of views (Trac #822) · Issue #1420 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Segfault deallocating long chains of views (Trac #822) #1420

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

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 1 comment
Closed

Segfault deallocating long chains of views (Trac #822) #1420

numpy-gitbot opened this issue Oct 19, 2012 · 1 comment

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/822 on 2008-06-17 by @rkern, assigned to unknown.

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

This has caused a problem for someone using PyMC.

The segfault occurs on line 2079 of arrayobject.c . On 32-bit Intel OS X, I only get the segfault if the number of iterations is >= 261935.

@numpy-gitbot
Copy link
Author

@rkern wrote on 2008-06-17

Dupe of #1064

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

No branches or pull requests

1 participant
0