Description
We have a segmentation violation errors in some tests during tinygo build <...>
invocation. They start failing very recently after this change (this is not necessarily connected) and not in every run.
Full error message can be seen by following below links, message in both cases more or less similar:
<...>
tinygo build -o tests/well-known/plugin/plugin.wasm -scheduler=none --no-debug --target=wasi tests/well-known/plugin/plugin.go
SIGSEGV: segmentation violation
PC=0x81301c m=0 sigcode=18446744073709551610 addr=0x3e900000ed0
<...>
This error happens with different versions of tinygo
. For example:
This is code which tinygo
failed to compile -> plugin.go.
I can't reproduce this locally. Tried testing with Ubuntu 22.04 and older Ubuntu 20.04 with exact same Go and TinyGo versions as in failing tests, but everything worked well.
So this seems to be some sort of flaky test, probably environment-dependent (github runner).
To reproduce you need to clone https://github.com/knqyf263/go-plugin and run make test
.