[ python-Bugs-600007 ] Another dealloc stack killer

SourceForge.net noreply at sourceforge.net
Tue Jan 10 23:02:15 CET 2006


Bugs item #600007, was opened at 2002-08-26 03:37
Message generated for change (Settings changed) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=600007&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 3
Submitted By: Tim Peters (tim_one)
Assigned to: Guido van Rossum (gvanrossum)
Summary: Another dealloc stack killer

Initial Comment:
>From c.l.py:

"""
From: Pavel Pergamenshchik <pp64 at cornell.edu>
Sent: Sunday, August 25, 2002 9:17 PM
To: python-list at 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.

----------------------------------------------------------------------

>Comment By: Georg Brandl (birkenfeld)
Date: 2006-01-10 23:02

Message:
Logged In: YES 
user_id=1188172

Duplicate of #927248.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-08-29 01:30

Message:
Logged In: YES 
user_id=33168

The threshold was 300000 for me on Linux.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2002-08-26 16:06

Message:
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>.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-08-26 15:56

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=600007&group_id=5470


More information about the Python-bugs-list mailing list