aussieplusplus
aussieplusplus copied to clipboard
thread 'main' panicked at 'already borrowed: BorrowMutError'
I had written this program:
G'DAY MATE!
THE HARD YAKKA FOR recursiveFunc IS () <
GIMME"running...";
recursiveFunc();
>
recursiveFunc();
CHEERS C***!
Notice the typo -- GIMME"
rather than GIMME "
. The program failed with a syntax error. However, when I fixed it and ran it again, I got this error:
thread 'main' panicked at 'already borrowed: BorrowMutError', /Users/zackradisic/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/io/stdio.rs:872:20 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The more I click run, the worse the errors get, saying thread panicked while panicking. aborting.
and then thread panicked while processing panic. aborting.
.
Nice catch, investigated a little bit and the code above should crash bc of stack overflow, but on the site the wasm environment is not being teared down properly so funky things are happening when you run once again.
I'll modify the site to detect crashes like this and restart the wasm module
@all-contributors please add @bbrk24 for bugs