wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go
https://pkg.go.dev/github.com/wasmerio/wasmer-go
MIT License
2.8k stars 161 forks source link

Fixes go GC crash on trap #333

Closed gzigzigzeo closed 1 year ago

gzigzigzeo commented 2 years ago

Fixes https://github.com/wasmerio/wasmer-go/issues/291. Please, check https://github.com/wasmerio/wasmer-go/issues/291#issuecomment-1104443467 for the detailed description of the problem.

The crash can be reproduced in the master branch by adding runtime.GC() twice to the end of examples/example_early_exit_test.go file.

Eduard-Voiculescu commented 2 years ago

Upvoting this fix

billettc commented 2 years ago

We did have the same issue and this change fix it!.