test/parser.py fails on my port: any clue how to debug this?
Re: test/parser.py fails on my port: any clue how to debug this?
When "compile" raises SyntaxError it corrupts the memory.
Re: test/parser.py fails on my port: any clue how to debug this?
I decided to come back to this issue. I see that the globals pointer is not immediately broken: why would this happen?
Code: Select all
MicroPython v1.11-744-g4679075199-dirty on 2020-05-16; A9/A9G module with RDA8955
Type "help()" for more information.
>>> globals()
mp_globals_get: result 0x82300fe8
mp_globals_get: result 0x82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
{'__name__': '__main__', 'os': <module 'uos'>}
>>> compile("", "stdin", "eval")
mp_globals_get: result 0x82300fe8
mp_globals_get: result 0x82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
mp_globals_get: result 0p82300fe8
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "stdin", line 2
SyntaxError: invalid syntax
>>> globals()
mp_globals_get: result 0x82300fe8
mp_globals_get: result 0x82300fe8
mp_globals_get: result 0p82300fe8
(halt)