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

runtime: EBADF on wasm #69783

Closed
gopherbot opened this issue Oct 4, 2024 · 3 comments
Closed

runtime: EBADF on wasm #69783

gopherbot opened this issue Oct 4, 2024 · 3 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "golang.org/x/tools/go/ssa/ssautil" && test == "TestCreateProgram"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestCreateProgram
read /home/swarming/.swarming/w/ir/x/w/goroot/src/sync/runtime.go: Bad file number
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:69:7: undefined: runtime_notifyListAdd
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:71:2: undefined: runtime_notifyListWait
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:84:2: undefined: runtime_notifyListNotifyOne
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:93:2: undefined: runtime_notifyListNotifyAll
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:128:56: undefined: runtime_canSpin
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:136:4: undefined: runtime_doSpin
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:171:21: undefined: runtime_nanotime
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:173:4: undefined: runtime_SemacquireMutex
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:174:27: undefined: runtime_nanotime
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:248:5: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:259:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:72:3: undefined: runtime_SemacquireRWMutexR
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:135:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:153:3: undefined: runtime_SemacquireRWMutex
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:214:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/waitgroup.go:83:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/waitgroup.go:118:4: undefined: runtime_Semacquire
    deprecated_test.go:31: couldn't load packages due to errors: sync
--- FAIL: TestCreateProgram (21.51s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 4, 2024
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/go/ssa/ssautil" && test == "TestCreateProgram"
2024-10-04 15:35 x_tools-go1.23-wasip1-wasm_wazero tools@efd951d8 release-branch.go1.23@9563300f x/tools/go/ssa/ssautil.TestCreateProgram (log)
=== RUN   TestCreateProgram
read /home/swarming/.swarming/w/ir/x/w/goroot/src/sync/runtime.go: Bad file number
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:69:7: undefined: runtime_notifyListAdd
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:71:2: undefined: runtime_notifyListWait
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:84:2: undefined: runtime_notifyListNotifyOne
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/cond.go:93:2: undefined: runtime_notifyListNotifyAll
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:128:56: undefined: runtime_canSpin
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:136:4: undefined: runtime_doSpin
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:171:21: undefined: runtime_nanotime
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:173:4: undefined: runtime_SemacquireMutex
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:174:27: undefined: runtime_nanotime
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:248:5: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/mutex.go:259:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:72:3: undefined: runtime_SemacquireRWMutexR
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:135:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:153:3: undefined: runtime_SemacquireRWMutex
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/rwmutex.go:214:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/waitgroup.go:83:3: undefined: runtime_Semrelease
/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/waitgroup.go:118:4: undefined: runtime_Semacquire
    deprecated_test.go:31: couldn't load packages due to errors: sync
--- FAIL: TestCreateProgram (21.51s)

watchflakes

@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Oct 4, 2024
@gopherbot gopherbot added this to the Unreleased milestone Oct 4, 2024
@adonovan adonovan changed the title x/tools/go/ssa/ssautil: TestCreateProgram failures runtime: EBADF on wasm Oct 7, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Oct 7, 2024
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/go/ssa/ssautil" && test == "TestCreateProgram"
2024-10-07 22:08 x_tools-gotip-wasip1-wasm_wazero tools@f21a1dce go@356ba0f0 x/tools/go/ssa/ssautil.TestCreateProgram (log)
=== RUN   TestCreateProgram
read /home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec_unix.go: Bad file number
/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:301:9: undefined: findProcess
/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:342:11: p.release undefined (type *Process has no field or method release, but does have method Release)
/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:358:11: p.wait undefined (type *Process has no field or method wait, but does have method Wait)
/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:364:11: p.signal undefined (type *Process has no field or method signal, but does have method Signal)
/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:369:11: p.userTime undefined (type *ProcessState has no field or method userTime, but does have method UserTime)
/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:374:11: p.systemTime undefined (type *ProcessState has no field or method systemTime, but does have method SystemTime)
    deprecated_test.go:31: couldn't load packages due to errors: os
--- FAIL: TestCreateProgram (23.39s)

watchflakes

@gopherbot
Copy link
Contributor Author

Change https://go.dev/cl/618555 mentions this issue: go/ssa/ssautil: disable fmt imports on wasm tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
Archived in project
Development

No branches or pull requests

1 participant