Skip to content

x/telemetry/internal/counter: TestRepeatedNew persistently failing on GOOS=wasip1 GOARCH=wasm GOWASIRUNTIME=wasmtime #60971

@dmitshur

Description

@dmitshur

From https://build.golang.org/log/8e4e0ca514d9b97b6031241988af5dde617870c9:

2023/06/23 12:28:59 neither $XDG_CONFIG_HOME nor $HOME are defined
--- FAIL: TestRepeatedNew (0.00s)
    counter_test.go:126: GOOS wasip1 GARCH wasm
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x0 addr=0x0 pc=0x0]

goroutine 8 [running]:
testing.tRunner.func1.2({0x1f840, 0x1e3870})
	/workdir/go/src/testing/testing.go:1545 +0x1b
testing.tRunner.func1()
	/workdir/go/src/testing/testing.go:1548 +0x37
panic({0x1f840, 0x1e3870})
	/workdir/go/src/runtime/panic.go:914 +0x2c
golang.org/x/telemetry/internal/counter.close(0x144e280)
	/workdir/gopath/src/golang.org/x/telemetry/internal/counter/counter_test.go:73 +0x8
golang.org/x/telemetry/internal/counter.TestRepeatedNew(0x1401380)
	/workdir/gopath/src/golang.org/x/telemetry/internal/counter/counter_test.go:139 +0x12
testing.tRunner(0x1401380, 0x4ba70)
	/workdir/go/src/testing/testing.go:1595 +0xc
created by testing.(*T).Run in goroutine 1
	/workdir/go/src/testing/testing.go:1648 +0x47
FAIL	golang.org/x/telemetry/internal/counter	2.970s

Notably, this isn't happening on the wazero builder, it's passing.

CC @golang/wasm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.arch-wasmWebAssembly issuestelemetryx/telemetry issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions