Author Alexandre Hamelin
Recipients Alexandre Hamelin
Date 2017-10-23.19:22:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508786537.77.0.213398074469.issue31852@psf.upfronthosting.co.za>
In-reply-to
Content
Hi.

Python 3.6.2 crashes when interpreting lines with the text "async \" (future keyword 'async' and ending with a backslash).

Tested in a docker environment (debian jessie). (see github.com/0xquad/docker-python36 if needed)

Examples:

$ docker run -ti --rm python36
4c09392f83c8">root@4c09392f83c8:/# python3.6
Python 3.6.2 (default, Aug  4 2017, 14:35:04)
[GCC 6.4.0 20170724] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> async \
...
  File "<stdin>", line 1
    \ufffd\ufffdF\ufffd\ufffd
         ^
SyntaxError: invalid syntax
>>> async \
Segmentation fault
4c09392f83c8">root@4c09392f83c8:/#



Also,

----- file: test.py
#/usr/bin/python3.6
async \
<repeated 30000 times>
-----

$ ./test.py
Segmentation fault
$


Haven't taken the time to produce a backtrace or investigate with latest the dev versions or any further.

Let me know if I can assist in any way.
History
Date User Action Args
2017-10-23 19:22:17Alexandre Hamelinsetrecipients: + Alexandre Hamelin
2017-10-23 19:22:17Alexandre Hamelinsetmessageid: <1508786537.77.0.213398074469.issue31852@psf.upfronthosting.co.za>
2017-10-23 19:22:17Alexandre Hamelinlinkissue31852 messages
2017-10-23 19:22:17Alexandre Hamelincreate