Skip to content

Add stack validity check and raise an error when it happens. #1294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 91 additions & 69 deletions locale/circuitpython.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-04 16:17-0500\n"
"POT-Creation-Date: 2018-12-06 17:04-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -151,70 +151,37 @@ msgstr ""
msgid "script compilation not supported"
msgstr ""

#: main.c:155
#: main.c:150
msgid " output:\n"
msgstr ""

#: main.c:169 main.c:242
#: main.c:164 main.c:237
msgid ""
"Auto-reload is on. Simply save files over USB to run them or enter REPL to "
"disable.\n"
msgstr ""

#: main.c:171
#: main.c:166
msgid "Running in safe mode! Auto-reload is off.\n"
msgstr ""

#: main.c:173 main.c:244
#: main.c:168 main.c:239
msgid "Auto-reload is off.\n"
msgstr ""

#: main.c:187
#: main.c:182
msgid "Running in safe mode! Not running saved code.\n"
msgstr ""

#: main.c:203
#: main.c:198
msgid "WARNING: Your code filename has two extensions\n"
msgstr ""

#: main.c:251
msgid "You requested starting safe mode by "
msgstr ""

#: main.c:254
msgid "To exit, please reset the board without "
msgstr ""

#: main.c:261
msgid ""
"You are running in safe mode which means something really bad happened.\n"
msgstr ""

#: main.c:263
msgid "Looks like our core CircuitPython code crashed hard. Whoops!\n"
msgstr ""

#: main.c:264
msgid "Please file an issue here with the contents of your CIRCUITPY drive:\n"
msgstr ""

#: main.c:267
msgid ""
"The microcontroller's power dipped. Please make sure your power supply "
"provides\n"
msgstr ""

#: main.c:268
msgid ""
"enough power for the whole circuit and press reset (after ejecting "
"CIRCUITPY).\n"
msgstr ""

#: main.c:272
#: main.c:244
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
msgstr ""

#: main.c:430
#: main.c:407
msgid "soft reboot\n"
msgstr ""

Expand Down Expand Up @@ -443,7 +410,7 @@ msgid "pop from an empty PulseIn"
msgstr ""

#: ports/atmel-samd/common-hal/pulseio/PulseIn.c:237
#: ports/esp8266/common-hal/pulseio/PulseIn.c:182 py/obj.c:420
#: ports/esp8266/common-hal/pulseio/PulseIn.c:182 py/obj.c:422
msgid "index out of range"
msgstr ""

Expand Down Expand Up @@ -1349,116 +1316,116 @@ msgstr ""
msgid "Invalid argument"
msgstr ""

#: py/obj.c:90
#: py/obj.c:92
msgid "Traceback (most recent call last):\n"
msgstr ""

#: py/obj.c:94
#: py/obj.c:96
msgid " File \"%q\", line %d"
msgstr ""

#: py/obj.c:96
#: py/obj.c:98
msgid " File \"%q\""
msgstr ""

#: py/obj.c:100
#: py/obj.c:102
msgid ", in %q\n"
msgstr ""

#: py/obj.c:257
#: py/obj.c:259
msgid "can't convert to int"
msgstr ""

#: py/obj.c:260
#: py/obj.c:262
#, c-format
msgid "can't convert %s to int"
msgstr ""

#: py/obj.c:320
#: py/obj.c:322
msgid "can't convert to float"
msgstr ""

#: py/obj.c:323
#: py/obj.c:325
#, c-format
msgid "can't convert %s to float"
msgstr ""

#: py/obj.c:353
#: py/obj.c:355
msgid "can't convert to complex"
msgstr ""

#: py/obj.c:356
#: py/obj.c:358
#, c-format
msgid "can't convert %s to complex"
msgstr ""

#: py/obj.c:371
#: py/obj.c:373
msgid "expected tuple/list"
msgstr ""

#: py/obj.c:374
#: py/obj.c:376
#, c-format
msgid "object '%s' is not a tuple or list"
msgstr ""

#: py/obj.c:385
#: py/obj.c:387
msgid "tuple/list has wrong length"
msgstr ""

#: py/obj.c:387
#: py/obj.c:389
#, c-format
msgid "requested length %d but object has length %d"
msgstr ""

#: py/obj.c:400
#: py/obj.c:402
msgid "indices must be integers"
msgstr ""

#: py/obj.c:403
#: py/obj.c:405
msgid "%q indices must be integers, not %s"
msgstr ""

#: py/obj.c:423
#: py/obj.c:425
msgid "%q index out of range"
msgstr ""

#: py/obj.c:455
#: py/obj.c:457
msgid "object has no len"
msgstr ""

#: py/obj.c:458
#: py/obj.c:460
#, c-format
msgid "object of type '%s' has no len()"
msgstr ""

#: py/obj.c:496
#: py/obj.c:500
msgid "object does not support item deletion"
msgstr ""

#: py/obj.c:499
#: py/obj.c:503
#, c-format
msgid "'%s' object does not support item deletion"
msgstr ""

#: py/obj.c:503
#: py/obj.c:507
msgid "object is not subscriptable"
msgstr ""

#: py/obj.c:506
#: py/obj.c:510
#, c-format
msgid "'%s' object is not subscriptable"
msgstr ""

#: py/obj.c:510
#: py/obj.c:514
msgid "object does not support item assignment"
msgstr ""

#: py/obj.c:513
#: py/obj.c:517
#, c-format
msgid "'%s' object does not support item assignment"
msgstr ""

#: py/obj.c:544
#: py/obj.c:548
msgid "object with buffer protocol required"
msgstr ""

Expand Down Expand Up @@ -2524,3 +2491,58 @@ msgstr ""
#: shared-module/usb_hid/Device.c:59
msgid "USB Error"
msgstr ""

#: supervisor/shared/safe_mode.c:97
msgid "You requested starting safe mode by "
msgstr ""

#: supervisor/shared/safe_mode.c:100
msgid "To exit, please reset the board without "
msgstr ""

#: supervisor/shared/safe_mode.c:107
msgid ""
"You are running in safe mode which means something unanticipated happened.\n"
msgstr ""

#: supervisor/shared/safe_mode.c:109
msgid ""
"Looks like our core CircuitPython code crashed hard. Whoops!\n"
"Please file an issue at https://github.com/adafruit/circuitpython/issues\n"
" with the contents of your CIRCUITPY drive and this message:\n"
msgstr ""

#: supervisor/shared/safe_mode.c:111
msgid "Crash into the HardFault_Handler.\n"
msgstr ""

#: supervisor/shared/safe_mode.c:113
msgid "MicroPython NLR jump failed. Likely memory corruption.\n"
msgstr ""

#: supervisor/shared/safe_mode.c:115
msgid "MicroPython fatal error.\n"
msgstr ""

#: supervisor/shared/safe_mode.c:118
msgid ""
"The microcontroller's power dipped. Please make sure your power supply "
"provides\n"
"enough power for the whole circuit and press reset (after ejecting "
"CIRCUITPY).\n"
msgstr ""

#: supervisor/shared/safe_mode.c:120
msgid ""
"The CircuitPython heap was corrupted because the stack was too small.\n"
"Please increase stack size limits and press reset (after ejecting "
"CIRCUITPY).\n"
"If you didn't change the stack, then file an issue here with the contents of "
"your CIRCUITPY drive:\n"
msgstr ""

#: supervisor/shared/safe_mode.c:123
msgid ""
"The reset button was pressed while booting CircuitPython. Press again to "
"exit safe mode.\n"
msgstr ""
Loading