[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-13 Thread STINNER Victor
STINNER Victor added the comment: Ok, I understand, thanks for the explanation. -- ___ Python tracker ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: Also the existing test coverage of these functions in all the Python versions is very weak. -- ___ Python tracker

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > What about Python 2.7? _testcapi.set_nomemory() does not exist on Pyhton 2.7 so the changes cannot be tested. Applying the changes to PyRun_InteractiveLoopFlags() in 2.7 looks rather straightforward but there are too many differences in

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-13 Thread STINNER Victor
STINNER Victor added the comment: Thanks for fixing this very old bug! What about Python 2.7? -- ___ Python tracker ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-12 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset ea5b545e38b3fec7ff29276b5cd59dec583ebf34 by xdegaye in branch '3.6': [3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). (#4379)

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-12 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4327 ___ Python tracker ___ ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-11-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset e0582a37c8d1776a2fd4968e9216f3a05f780276 by xdegaye in branch 'master': bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160) https://github.com/python/cpython/commit/e0582a37c8d1776a2fd4968e9216f3a05f780276

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-10-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.5 ___ Python tracker ___ ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-10-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4129 stage: -> patch review ___ Python tracker ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-25 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: -2416 ___ Python tracker ___ ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2416 ___ Python tracker ___ ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: -2407 ___ Python tracker ___ ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2407 ___ Python tracker ___ ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-19 Thread STINNER Victor
STINNER Victor added the comment: See also my old issue #8070 opened 7 years ago :-) -- ___ Python tracker ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch is far too simplistic. With this patch an exception kills the interactive loop, for example: $ ./python -q >>> x Traceback (most recent call last): File "", line 1, in NameError: name 'x' is not defined $ --

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-18 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-18 Thread Xavier de Gaye
New submission from Xavier de Gaye: To reproduce the problem, apply the nomemory_allocator.patch from issue 30695 and run the following two statements that must be interrupted with ^C: $ ./python -q >>> import _testcapi >>> _testcapi.set_nomemory_allocator() sys.excepthook is missing ^Cpython: