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
Python segfaults when freeing "deep" objects #40113
Comments
An example to produce this behavior: >>> f = lambda: None
>>> for i in range(1000000):
... f = f.__call__
...
>>> f = None
Segmentation fault |
Logged In: YES Oh. my patch doesn't fix another scenario that using |
Logged In: YES CVS for 2.4 has comments for (and a fix for) problems similar |
Logged In: YES Python CVS as of April 7th consistently segfaults with the smulloni@bracknell src $ ~/apps/python-cvs/bin/python
Python 2.4a0 (#1, Apr 7 2004, 23:10:34)
[GCC 3.3.2 20031218 (Gentoo Linux 3.3.2-r5,
propolice-3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> f=lambda: None
>>> for x in xrange(1000000):
... f=f.__call__
...
>>> f=None
Segmentation fault Of course, maybe that's a good thing :). |
Logged In: YES Python CVS from 2004-06-02 seems to work:
Python 2.4a0 (#5, Jun 2 2004, 20:23:30)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> f = lambda: None
>>> for x in xrange(1000000):
... f = f.__call__
...
>>> f
<method-wrapper object at 0x4259478c>
>>> f = None
>>> f
>>> |
Logged In: YES CVS HEAD of 2006/01/10 still segfaults (here GCC 3.4.5). Segfault occurs at wrapper_dealloc in descrobject.c. |
Logged In: YES Note that in doerwalter transcript, _ is still bound to the |
Logged In: YES This is now fixed in r47217 and r47218, by putting the |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: