]> Cypherpunks repositories - gostls13.git/commit
runtime: skip tests for GOEXPERIMENT=arenas that do not handle clobberfree=1
authorthepudds <thepudds1460@gmail.com>
Wed, 5 Nov 2025 17:18:49 +0000 (12:18 -0500)
committert hepudds <thepudds1460@gmail.com>
Fri, 14 Nov 2025 21:37:37 +0000 (13:37 -0800)
commit1a03d0db3f36c1a81a184fa15a54f716569a9972
tree98ccc20162aeb812fa8baf95361e2e27b971bb50
parentcb0d9980f5721715ebb73dd2e580eaa11c2ddee2
runtime: skip tests for GOEXPERIMENT=arenas that do not handle clobberfree=1

When run with GODEBUG=clobberfree=1, three out of seven of the top-level
tests in runtime/arena_test.go fail with a SIGSEGV inside the
clobberfree function where it is overwriting freed memory
with 0xdeadbeef.

This is not a new problem. For example, this crashes in Go 1.20:

  GODEBUG=clobberfree=1 go test runtime -run=TestUserArena

It would be nice for all.bash to pass with GODEBUG=clobberfree=1,
including it is useful for testing the automatic reclaiming of
dead memory via runtime.freegc in #74299.

Given the GOEXPERIMENT=arenas in #51317 is not planned to move forward
(and is hopefully slated to be replace by regions before too long),
for now we just skip those three tests in order to get all.bash
passing with GODEBUG=clobberfree=1.

Updates #74299

Change-Id: I384d96791157b30c73457d582a45dd74c5607ee0
Reviewed-on: https://go-review.googlesource.com/c/go/+/715080
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/runtime/arena_test.go
src/runtime/export_test.go