DescriptionCrashSBCrashSB is a program featuring a bug I discoverd.
What it does
It crashes SB (this also means unsaved data will be lost, so please save everything before doing this. YOU HAVE BEEN WARNED!). Then the 3DS error handler comes in and takes you back to the home menu and then restarts the system.
How to use it
This only works in edit mode. After running the program, the user will be prompted to enter CLEAR in direct mode. After that, They have to enter CRASH to crash SB.
How it works
It is pretty simple, yet confusing. This program defines three variables and a function called CRASH. Once the user clears the RAM and the executes the function, SmileBASIC doesn't know what to do and crashes. The confusing part is that normally when a variable is not defined, it will simply give an undifined variable error. CLEAR only works in direct mode, so that's why the user needs to type it in manually.
I discovered this glitch while working on a CHIP-8 intepreter.
Can this be exploited?Turns out people are exploiting other bugs to launch the homebrew channel.
Fixed in 3.3.2.InstructionsRun the program in edit mode, enter CLEAR in the console, then enter CRASH.