rp2: re.match with complicated expression crashes MicroPython requiring hard reset #13319
Replies: 3 comments
-
That example succeeds here, but it takes a while. Times:
All boards at their default clock frequencies. And no, it cannot be stopped with Ctrl-C.
Some other candidates:
So I do not think it's bug, but some of the times are quite extreme. |
Beta Was this translation helpful? Give feedback.
-
Wow, I didn't think of letting it run to completion. So is it just standard that library calls can't be interrupted? |
Beta Was this translation helpful? Give feedback.
-
It depends. If it's expected that calls can take long, like e.g. uart.read(), they are made interruptible. For re.match() this seems not to be expected. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
On a Pico with the latest firmware, the follow regex crashes the system completely, requiring a reset / power cycle to recover:
Of course regular expressions can be arbitrarily complicated, but it seems like there must be a mistake if the board is becoming unresponsive.
On CPython the same command returns a result in a second or two:
Beta Was this translation helpful? Give feedback.
All reactions