[issue31301] Python 2.7 SIGSEGV

Jakub Wilk report at bugs.python.org
Fri Sep 1 13:02:49 EDT 2017


Jakub Wilk added the comment:

I can't reproduce it here:

Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> s = open('id%3A000000,sig%3A11,src%3A000000,op%3Ahavoc,rep%3A32').read()
>>> ast.parse(s)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
TypeError: compile() expected string without null bytes

----------
nosy: +jwilk

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


More information about the Python-bugs-list mailing list