Skip to content

x/build: memory corruption crashes on darwin builders #77515

Description

@prattmic
#!watchflakes
post <- goos == "darwin" && (
	log ~ `fatal error: found pointer to free object` ||
	log ~ `fatal error: found bad pointer in Go heap` ||
	log ~ `fatal error: workbuf is not empty` ||
	log ~ `fatal error: workbuf is empty` ||
	log ~ `schedule: holding locks` ||
	log ~ `fatal error: bad summary data` ||
	log ~ `fatal: morestack on gsignal` ||
	log ~ `fatal error: fault` ||
	log ~ `SIGBUS: bus error` ||
	log ~ `runtime\.\(\*mheap\)\.allocNeedsZero` ||
	(log ~ `panic: runtime error: invalid memory address or nil pointer dereference` && log ~ `^\s*runtime\.sigpanic.*\n\s+.*\n\s*runtime\.sweepone`) ||
	(log ~ `panic: runtime error: invalid memory address or nil pointer dereference` && pkg == "cmd/compile/internal/ssa") ||
	(log ~ `SIGSEGV: segmentation violation` && log ~ `^\s*runtime\.spanOfUnchecked\(`) ||
	log ~ `undefined: s4ring` ||
	log ~ `internal compiler error:`)

We have seen a recent rise in flakes that look like memory or disk corruption on darwin builders (amd64 and arm64).

At the moment, I'm assuming these are issues with the builders themselves, but it's also possible that there is a bug in Go itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Darwin

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Active
    Status
    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions