This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Another dealloc stack killer
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: georg.brandl, gvanrossum, nnorwitz, tim.peters
Priority: low Keywords:

Created on 2002-08-26 01:37 by tim.peters, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (5)
msg12170 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-08-26 01:37
From c.l.py:

"""
From: Pavel Pergamenshchik <pp64@cornell.edu>
Sent: Sunday, August 25, 2002 9:17 PM
To: python-list@python.org
Subject: Python 2.2.1 bug

I found a way to break Python 2.2.1 (at least) both on 
Linux and Windows.
...

eval("int" + ".__call__"*100000)

at the prompt, then press ctrl-D or ctrl-Z to edit. This 
will result in a segfault on Linux and some 
weird "unknown software exception" thing on Windows.
"""

At shutdown, the C stack is blown by a very deep 
nest of

_Py_Dealloc
wrapper_dealloc

calls.  That was under current CVS head; I'm sure it's 
the same deal in 2.2.
msg12171 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-08-26 13:56
Logged In: YES 
user_id=6380

Hm, I cannot reproduce this on Linux, with either the
2.2maintenance branch or 2.3. I trust that it's a problem
though. Reducing priority.
msg12172 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-08-26 14:06
Logged In: YES 
user_id=31435

I suppose you need to reduce your stack limit, or boost the 
multiplier, then.  I would agree it's hard to get excited 
about this one <wink>.
msg12173 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-08-28 23:30
Logged In: YES 
user_id=33168

The threshold was 300000 for me on Linux.
msg12174 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-01-10 22:02
Logged In: YES 
user_id=1188172

Duplicate of #927248.
History
Date User Action Args
2022-04-10 16:05:37adminsetgithub: 37088
2002-08-26 01:37:40tim.peterscreate