cmd/compile: broken write barrier #71228
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
Critical
A critical problem that affects the availability or correctness of production systems built using Go
release-blocker
Milestone
I've found a case where we can get a pointer write without a corresponding write barrier.
(This is distilled from a Google-internal failure.)
Reproducer:
Run with
GOMAXPROCS=2
. Seems to fail 5% of the time or so (if anyone has ideas about how to get that percentage up, please do so). When it fails, we get a zombie object report like this:This is because in
f
, the write ofptr
todst.ptr
is done erroneously without a write barrier, which ends up hiding a pointer to a white object in a black object.This fails at tip, 1.23.4, and 1.22.6.
I suspect it may have started with CL 447780.
The text was updated successfully, but these errors were encountered: