[New-bugs-announce] [issue46908] Debugger jumps to a wrong instruction in for loop

Francisco Arenas Afán de Rivera report at bugs.python.org
Thu Mar 3 05:20:54 EST 2022


New submission from Francisco Arenas Afán de Rivera <franarenasafan at gmail.com>:

I found that the debugger doesn't follow the normal program order when executing a foor loop with more than 3 instructions inside and one loop.

code example:

a = 0
b = 0
c = 0
for i in range(1):
    a += 1
    b += 1 # Set breakpoint here
    c += 1 # Also crash with breakpoint here

jumps to the line b += 1 after the end of the loop and crashes with error: Process finished with exit code -1073741819 (0xC0000005)

----------
messages: 414417
nosy: franarenasafan
priority: normal
severity: normal
status: open
title: Debugger jumps to a wrong instruction in for loop
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46908>
_______________________________________


More information about the New-bugs-announce mailing list