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

Make catch thread safe #3879

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Make catch thread safe #3879

merged 1 commit into from
Mar 10, 2024

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Mar 9, 2024

After some significant amount of time debugging corrupted memory, I found the culprit of some random crashes I had: a static mut was used to implement catch, which obviously introduces a race condition if mutated and accessed from multiple threads at the same time.

My assumption here is that this was done to preserve no-std, which has been broken a long time ago. I also double-checked all other statics, but didn't find any other culprits.

@daxpedda daxpedda merged commit 1317b34 into rustwasm:main Mar 10, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants