[New-bugs-announce] [issue31852] Crashes with lines of the form "async \"

Alexandre Hamelin report at bugs.python.org
Mon Oct 23 15:22:17 EDT 2017

New submission from Alexandre Hamelin <quad.on at gmail.com>:


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)


$ docker run -ti --rm python36
root at 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
SyntaxError: invalid syntax
>>> async \
Segmentation fault
root at 4c09392f83c8:/#


----- file: test.py
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.

components: Interpreter Core
messages: 304835
nosy: Alexandre Hamelin
priority: normal
severity: normal
status: open
title: Crashes with lines of the form "async \"
type: crash
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list