[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.

James G. sack (jim) report at bugs.python.org
Tue Dec 15 23:06:44 CET 2009


James G. sack (jim) <jgsack at users.sourceforge.net> added the comment:

It seems that on my Fedora 11 AMD X86_64, the problem still exists. In 
test_codecs.UTF32Test, test_handlers() seems to run forever, gobbling 
memory to 99+% and then activating swap until it fills up swap.

tested by 
  svn up -r 74869
  rm /tmp/pynexttest
  .python -Ebb -Lib/tests/regrtest.py -vvs test_codecs

disabling test_handlers() in UTF32Test allows the test to pass and it 
completes very fast. It is puzzling that UTF16Test test_handlers works 
with what looks like similar code in unidoceobject.c

~jim

----------
nosy: +jgsack

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6922>
_______________________________________


More information about the Python-bugs-list mailing list