This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Emmanuel.Decitre, Peter.Wentworth, asvetlov, dino.viehland, flupke, gregorlingl, kbk, loewis, pitrou, python-dev, r.david.murray, serhiy.storchaka, terry.reedy, vstinner, willingc
Date 2018-06-16.17:51:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529171516.16.0.56676864532.issue6717@psf.upfronthosting.co.za>
In-reply-to
Content
I reran Dino's test.py on current master on Win10 and got 

Traceback (most recent call last):
  File "f:/dev/tem/recursion_crash.py", line 23, in <module>
    f()
  File "f:/dev/tem/recursion_crash.py", line 18, in f
    f()
  File "f:/dev/tem/recursion_crash.py", line 18, in f
    f()
  File "f:/dev/tem/recursion_crash.py", line 18, in f
    f()
  [Previous line repeated 991 more times]
  File "f:/dev/tem/recursion_crash.py", line 17, in f
    print(sys.getrecursionlimit())
RecursionError: maximum recursion depth exceeded while calling a Python object

The request for a fix to get a nice traceback is out of date.

When I run Gregor's tkinter_recursionbug_31.py, I immediately get this:

f:\dev\3x>python f:/dev/tem/tk_recbug.py
Running Debug|Win32 interpreter...
f:/dev/tem/tk_recbug.py:14: DeprecationWarning: invalid escape sequence \P
  """

The closet I came to reproducing this is
>>> eval(r"f'\P{1}'")

Warning (from warnings module):
  File "<string>", line 1
DeprecationWarning: invalid escape sequence \P
'\\P1'

When I continue and move the red box, I eventually get

Fatal Python error: Cannot recover from stack overflow.

Current thread 0x000012c8 (most recent call first):
  File "F:\dev\3x\lib\enum.py", line 535 in __new__
  File "F:\dev\3x\lib\enum.py", line 307 in __call__
  File "F:\dev\3x\lib\tkinter\__init__.py", line 1431 in _substitute
  File "F:\dev\3x\lib\tkinter\__init__.py", line 1701 in __call__
  File "F:\dev\3x\lib\tkinter\__init__.py", line 1174 in update
  File "f:/dev/tem/tk_recbug.py", line 39 in move
  File "F:\dev\3x\lib\tkinter\__init__.py", line 1702 in __call__
  File "F:\dev\3x\lib\tkinter\__init__.py", line 1174 in update
  <repeat last 3 lines multiple times>
  ...

f:\dev\3x>

and the tk window disappears.  With pythonw, the tk window disappears with no feedback.

There is no Windows message box, so the request to not get one is fixed already.  There is a (truncated) traceback (without the code lines, but they are viewable in the source), so the requested to get one is also fulfilled.  The only thing left is 'Fatal Python error'.  From Antoine's messages, the request to get a normal exception instead is "Won't fix unless someone has a bright new idea".
History
Date User Action Args
2018-06-16 17:51:56terry.reedysetrecipients: + terry.reedy, loewis, kbk, pitrou, vstinner, gregorlingl, dino.viehland, r.david.murray, asvetlov, flupke, python-dev, Peter.Wentworth, Emmanuel.Decitre, serhiy.storchaka, willingc
2018-06-16 17:51:56terry.reedysetmessageid: <1529171516.16.0.56676864532.issue6717@psf.upfronthosting.co.za>
2018-06-16 17:51:56terry.reedylinkissue6717 messages
2018-06-16 17:51:55terry.reedycreate