Skip to content
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

thread 'main' panicked at 'already borrowed: BorrowMutError' #16

Open
bbrk24 opened this issue Oct 29, 2021 · 3 comments
Open

thread 'main' panicked at 'already borrowed: BorrowMutError' #16

bbrk24 opened this issue Oct 29, 2021 · 3 comments
Labels
FUCKUP BUG OR SOMETHIN' BROKE

Comments

@bbrk24
Copy link

bbrk24 commented Oct 29, 2021

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..

@zackradisic zackradisic added the FUCKUP BUG OR SOMETHIN' BROKE label Oct 29, 2021
@zackradisic
Copy link
Owner

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

@jwfxpr
Copy link
Contributor

jwfxpr commented Oct 31, 2021

@all-contributors please add @bbrk24 for bugs

@allcontributors
Copy link
Contributor

@jwfxpr

I've put up a pull request to add @bbrk24! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FUCKUP BUG OR SOMETHIN' BROKE
Projects
None yet
Development

No branches or pull requests

3 participants