-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
importing umath_tests and then CTRL-D crashes with core dump (Trac #1425) #2023
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
@johannct wrote on 2010-03-10 backtrace of a python session that exhibits this crash: |
@pv wrote on 2010-03-10 More discussion here: Current best guess: some sort of refcounting error in the generalized ufunc code, maybe? |
@bsouthey wrote on 2010-03-10 This occurred in changeset 8262, specifically in the file: The following line 54(?) should have be removed. |
Attachment added by @bsouthey on 2010-03-10: generate_ufunc_api.diff |
@pv wrote on 2010-03-10 Nice sleuthing! But things don't seem very straightforward at all here: the refcounting there in itself seems perfectly solid. Before fixing this, the reason for the failure should preferably be better understood, and explained as a comment in the code. The issue seems to be something like this: when Python exits, it deallocates stuff. However, the numpy module is deallocated before some stuff that tries to use after deallocation -> bomb. It might be a hint that the failure occurs only in umath_tests -- maybe there's something amiss there? |
Milestone changed to |
@bsouthey wrote on 2010-03-10 It was an interesting and learning experience even if it was 99.99% trial and error! From the very little I understand, this defines the umath and ufunc APIs so it should occur with those tests. Looking further, the line might just be out of place. When I look at the '#if PY_VERSION_HEX >= 0x03010000', I see two Py_DECREF(c_api); statements but only one 'Py_DECREF(numpy);' statement. |
@charris wrote on 2010-05-25 Pauli, I believe you fixed this in r8408. |
@charris wrote on 2010-05-25 I don't see this crash in recent svn, so I am closing the ticket. If there is still a problem reopen it. |
Milestone changed to |
Original ticket http://projects.scipy.org/numpy/ticket/1425 on 2010-03-10 by @johannct, assigned to unknown.
[cohen@jarrett core]$ python
This occurs on my Fedora 12 box with python 2.6.2 and numpy 2.0.0.dev8291
The text was updated successfully, but these errors were encountered: