-
Notifications
You must be signed in to change notification settings - Fork 920
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
Race condition #3532
Comments
The race condition appears to be triggered when a package with a generic function is imported into two different packages and each package instantiates the generic function. |
I suspect this is a bug in golang.org/x/tools. I've verified the bug is still present after updating the package. |
Verified that it is indeed just two packages racing with each other. testa and testb: package testa
import (
"github.com/tinygo-org/tinygo/testdata/generics/value"
)
func Test() {
value.New(1)
} value: package value
func New[T any](v T) {
} When I delete the cached bitcode for testa and testb, it indeed logs a race condition sometimes. |
So is this an upstream issue we need to work around or just wait for a fix or .. ? |
We probably need to create a standalone reproducer (outside TinyGo) and report upstream, so they can hopefully fix it. |
Possibly related: golang/go#59427 |
Probably the same issue as #3215. |
This is addressed as part of |
We have another race condition, this time it appears to be a bit more serious:
I reproduced it like this (in the fish shell):
The text was updated successfully, but these errors were encountered: