test/parser.py fails on my port: any clue how to debug this?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
pulkin
Posts: 44
Joined: Tue Feb 19, 2019 10:22 pm

Re: test/parser.py fails on my port: any clue how to debug this?

Post by pulkin » Thu Mar 26, 2020 6:49 pm

When "compile" raises SyntaxError it corrupts the memory.

pulkin
Posts: 44
Joined: Tue Feb 19, 2019 10:22 pm

Re: test/parser.py fails on my port: any clue how to debug this?

Post by pulkin » Sat May 16, 2020 3:37 pm

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)

Post Reply