-
-
Notifications
You must be signed in to change notification settings - Fork 11k
BUG: A segfault in chararray (2.0.0dev0 regression) #25513
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
Trying a bit, the segfault does not always happen immediately, but the results definitely are not always correct:
When things don't give a segfault, on exit of ipython one gets "double free or corruption (out)" EDIT: or "malloc(): mismatching next->prev_size (unsorted)" |
Found the culprit if not yet the solution - the special-cased single-character case, and specifically the case where numpy/numpy/_core/src/umath/string_fastsearch.h Lines 59 to 78 in bab7280
And indeed,
Basically, |
Also, is it intended that if the replacement string is too long to possibly be present, that an empty output is returned?
|
I think I have a fix in #25515 (for all 3 issues that came up: the segfault, wrong |
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
Astropy's tests against numpy's dev branch are currently choking on a segfault.
The issue can be boiled down to a pure numpy reproducer.
I wasn't able to setup my dev env properly to provide the full stack trace information yet (I'm working on it), but I could bisect the problem to 19396d2 (#25171)
Reproduce the code example:
Error message:
No response
Python and NumPy Versions:
2.0.0.dev0+git20231230.ee3124b
3.12.0 (main, Oct 27 2023, 11:50:57) [Clang 15.0.0 (clang-1500.0.40.1)]
Runtime Environment:
Context for the issue:
astropy/astropy#15797
The text was updated successfully, but these errors were encountered: