[New-bugs-announce] [issue2297] Patch for fatal stack overflow in Windows caused by -v

Douglas Greiman report at bugs.python.org
Sun Mar 16 06:24:46 CET 2008


New submission from Douglas Greiman <dgreiman at users.sourceforge.net>:

When python is invoked with -v or -vv under Windows, the process of
importing the codec for sys.stderr causes a message to be written to
stderr, which in turn causes the codec to be recursively imported. 
Sometimes the stack overflow exception is swallowed, other times it is
not.  The bug depends on the particular locale settings of the Windows
machine.

To reproduce: python_d.exe -v
and look for many repeated imports of encodings.<some codec>

Patch is attached.

----------
components: Interpreter Core
files: py3k-win-codec-recursion-20080315.diff
keywords: patch
messages: 63570
nosy: dgreiman
severity: normal
status: open
title: Patch for fatal stack overflow in Windows caused by -v
type: crash
versions: Python 3.0
Added file: http://bugs.python.org/file9678/py3k-win-codec-recursion-20080315.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2297>
__________________________________


More information about the New-bugs-announce mailing list