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

os: TestRootConcurrentClose fails when runtime.AddCleanup is used #71117

Open
cagedmantis opened this issue Jan 3, 2025 · 1 comment
Open
Labels
arch-wasm WebAssembly issues Bug Issues describing a bug in the Go implementation. 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.
Milestone

Comments

@cagedmantis
Copy link
Contributor

While in the process of replacing the use of runtime.SetFinalizer with runtime.AddCleanup (#70907) in the os package, the TestRootConcurrentClose tests started failing. An investigation into the build error on go.dev/cl/638555 showed that on the gotip-wasip1-wasm_wazero builder, TestRootConcurrentClose fails because the goroutine that is spawned runs continuously and never allows the the original function to continue processing.

This seems related to #65178.

@golang/wasm

@cagedmantis cagedmantis added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. arch-wasm WebAssembly issues compiler/runtime Issues related to the Go compiler and/or runtime. labels Jan 3, 2025
@gabyhelp
Copy link

gabyhelp commented Jan 3, 2025

Related Code Changes

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@dmitshur dmitshur added this to the Backlog milestone Jan 3, 2025
@gabyhelp gabyhelp added the Bug Issues describing a bug in the Go implementation. label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly issues Bug Issues describing a bug in the Go implementation. 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.
Projects
None yet
Development

No branches or pull requests

3 participants