-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Bus error for F order ndarray creation on SPARC (Trac #2076) #2668
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
Comments
Attachment added by @matthew-brett on 2012-03-08: buf_2d.log.gz |
@mwiebe wrote on 2012-03-12 This is likely related to how the 'aligned' flag in the ndarray interacts with the code that does low-level copying. The way this flag works now doesn't quite communicate the right information to that low-level code, and maybe this issue is a good reason to implement the better replacement. |
Milestone changed to |
Ok, just a quick update, that I was able to reproduce the error on sparc64 with Debian:
Full log is here: https://gist.github.com/4197994 So let's see if I can nail it down. |
Test above now runs without segmentation fault. It would be good to add a test for this - is the test above a reasonable one? Do you want me to add it, or will you? Thanks for the fix. |
I've added a test which I think more directly tests the issue, by taking a complex view at two offsets in a float array. I don't have sparc though to confirm it catches the failure prior to the bugfix. Does that look good? |
This is the test attached to the bug from Matthew Brett. I tried to make a simpler test, but it didn't repro the problem.
BUG: Attempt to fix sparc segfault (gh-2668)
This is the test attached to the bug from Matthew Brett. I tried to make a simpler test, but it didn't repro the problem.
2D and larger dimension arrays of complex numbers causing bus error on numpy 1.4.1 - probabably from bug numpy/numpy#2668 Go to 1D to work round this error.
2D and larger dimension arrays of complex numbers causing bus error on numpy 1.4.1 - probabably from bug numpy/numpy#2668 Go to 1D to work round this error.
Original ticket http://projects.scipy.org/numpy/ticket/2076 on 2012-03-08 by @matthew-brett, assigned to unknown.
This test, using numpy '1.7.0.dev-7c07089':
causes a bus error on Debian squeezy on SPARC64. This is only so for complex types as
dtt
, and if the array is > 1D. Debug log attached.The text was updated successfully, but these errors were encountered: