There a multiple iterations of this bug apparently. This is the one I discovered.
CrashSB
Root / Submissions / [.]
RaichuBenderCreated:
Download:JDEX3WNEVersion:1Size:
CrashSB
CrashSB 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.
BGSCREEN 0,888888,888888 can also do it (I think)?
Please post to https://miiverse.nintendo.net/posts/AYMHAAACAAADVHklSy9oJg (or, if you don't have a Miiverse account, please find someone to post for you).
Replying to:SquareFingers
Please post to https://miiverse.nintendo.net/posts/AYMHAAACAAADVHklSy9oJg (or, if you don't have a Miiverse account, please find someone to post for you).
I'll try, if I can get access to Miiverse.
Replying to:SquareFingers
Please post to https://miiverse.nintendo.net/posts/AYMHAAACAAADVHklSy9oJg (or, if you don't have a Miiverse account, please find someone to post for you).
Done.
Yes, this command will crash the interpreter and does not require user input.
True, this program was kinda pointless :P
Replying to:SquareFingers
Please post to https://miiverse.nintendo.net/posts/AYMHAAACAAADVHklSy9oJg (or, if you don't have a Miiverse account, please find someone to post for you).
I didn't know SmileBasic had their own verified user! Much less that they had a Bug Support Thread! Why can't more games have this?
Actually, No! I like breaking Rainmaker >:3
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
An application for homebrew running a homebrew application that runs more homebrew in which runs homebrew applications. Homebrewception.
EDIT: SOMEONE TELL SMEALUM!!!
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
That was super confusing, my head can't wrap around it... You tell smealum.
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
I don't have twitter because i think having social media is stupid
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
While Smealum may appreciate being told about SmileBasic - if he doesn't already know, which I think is highly unlikely - this particular program would probably hold no interest for him.
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
My opinion on this is that if Smealum does know about it, he probably doesn't care, and if he doesn't, we don't need him bashing BASIC lol
Also, I get the feeling this is less exploitable than you might think. Your sandboxed system can crash at an unsandboxed level, but that doesn't mean you can get arbitrary code outside the sandbox. But what do I know.
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
Lumage, you know a lot.
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
Yeah, how does crashing SB run arbitrary code?
Replying to:Defaultio
Wow, already with that homebrew in the end. Wonder if SBHax will be possible....
He does...