[New-bugs-announce] [issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Thu Aug 13 22:07:32 CEST 2009


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com>:

Python 3.1 segfaults when invalid UTF-8 characters are passed from
command line.

In BASH shell you can run:
$ python3.1 -c $'print("\x80")'
Segmentation fault

In other POSIX-compatible shells you can save the attached test.py
files in current directory and run:
$ python3.1 -c "$(<test.py)"
Segmentation fault

----------
components: Unicode
files: test.py
messages: 91533
nosy: Arfrever
severity: normal
status: open
title: Python 3.1 segfaults when invalid UTF-8 characters are passed from command line
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14711/test.py

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


More information about the New-bugs-announce mailing list