[issue31852] Crashes with lines of the form "async \"

2017-10-31 Thread STINNER Victor
STINNER Victor added the comment: > Would it also be the case for 'await' ? "async" requires to maintain a "async_def" state. It seems like await doesn't need a state for itself, but rely on the "async_def" state which has been fixed. Extract of Parser/tokenizer.c: /* Current tok

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread Alexandre Hamelin
Alexandre Hamelin added the comment: Awesome work, thanks to you! Would it also be the case for 'await' ? -- ___ Python tracker ___ ___

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: Thank you Alexandre Hamelin for the bug report and Pablo Galindo for the fix ;-) -- ___ Python tracker ___ ___

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 690c36f2f1085145d364a89bfed5944dd2470308 by Victor Stinner (Pablo Galindo) in branch '3.6': [3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122) https://github.com/python/cpython/commit/690c36f2f1085145d364a89bfed5944dd2

[issue31852] Crashes with lines of the form "async \"

2017-10-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +4091 stage: -> patch review ___ Python tracker ___ ___ Python-

[issue31852] Crashes with lines of the form "async \"

2017-10-25 Thread STINNER Victor
STINNER Victor added the comment: > Does it make sense to backport ac317700ce7439e38a8b420218d9a5035bba92ed to > 3.6? No, async was not a keyword in Python 3.6 on purpose. Making it a keyword can break a lot of code. I confirm that Python 3.6 still crashs with a very high number of "async "

[issue31852] Crashes with lines of the form "async \"

2017-10-25 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31852] Crashes with lines of the form "async \"

2017-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This issue is fixed in the master branch (version 3.7.0 alpha 2). The issue was fixed in this PR: https://github.com/python/cpython/pull/1669 The cause is that async was not a proper keyword and the parser segfaults when checking for the new token and

[issue31852] Crashes with lines of the form "async \"

2017-10-23 Thread Alexandre Hamelin
New submission from Alexandre Hamelin : 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