-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
ndarray.fill crashes in master #12503
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
I can't reproduce the NumPy-only test case crash above locally on Ubuntu at the same NumPy commit hash. I haven't seen that SciPy test failure in dev CI or wheel builds either. Anything different about your configuration vs. what we use for i.e., CI? |
I can't reproduce either, using latest master and both Python2 and Python3 on Fedora. What compiler/optimization are you using? |
How sporadic is "sporadic"? |
Thank you all for checking. I am compiling using Intel compiler, and compiling with pytest calls crashes 3 out of 4 times, but my stand alone example crashes every time I tried. I will report my findings here. |
18.x series? If the compiler is the difference vs. our test infrastructure I'm not sure we have an easy way to CI test with Intel compilers because of the license stuff, if I'm not mistaken. |
As I said, I am using Intel C Compiler 2016 update 3, but I can reproduce the problem when compiling the entire NumPy with
when running the above snippet. I will run more experiments. |
Indeed, using the current master, f07a38d, the problem is not reproducible if compiling with gcc (I was using 4.8.4), but I get a reliable crash with both icc 2016, and with icc 2018. |
Ok, I can reproduce the problem with If I undo it, by compiling master as
I get the assert causing the crash:
|
The SHA were this problem was reproduced is the root of maintenance/1.16.x branch. Unless it is a matter of the assert needing to be fixed, perhaps this issue should be fixed in 1.16 |
Does this mean we are missing / need a CI entry that runs tests with C-level assert macros active? |
The DEBUG travis build should not have the -DNDEBUG flag, I have seen it |
Can reproduce when |
The problem PR is #6377. |
@ahaldane Want to take a look? |
OK, I see the problem. It is actually related to the In that commit I tried to add This didn't happen in 1.15 because |
Don't check alignment of size-0 arrays in copy-loops, because of RELAXED_STRIDES. Fixes numpy#12503
Don't check alignment of size-0 arrays in copy-loops, because of RELAXED_STRIDES. Fixes numpy#12503
Uh oh!
There was an error while loading. Please reload this page.
Reproducing code example:
A test
scipy._lib.tests.test__utils::test__aligned_zeros
from 1.2.0rc2, with NumPy built from sources sporadically crashes.The best reproducer I could build is
Error message:
Numpy/Python version information:
The text was updated successfully, but these errors were encountered: