Skip to content

runtime: test failures on linux-arm, freebsd-386-12_0, and linux-s390x-ibm at CL 171758 #32452

Closed
@bcmills

Description

@bcmills

As of CL 171758, the linux-arm builder is consistently failing the ../test phase in fixedbugs/issue27518b.go, with the following error:

##### ../test
# go run run.go -- fixedbugs/issue27518b.go
exit status 1
runtime: nelems=128 nalloc=2 previous allocCount=1 nfreed=65535
fatal error: sweep increased allocation count

goroutine 1 [running]:
runtime.throw(0x88eac, 0x20)
	/workdir/go/src/runtime/panic.go:758 +0x5c fp=0x426690 sp=0x42667c pc=0x37044
runtime.(*mspan).sweep(0xb6f75878, 0x0, 0x1f)
	/workdir/go/src/runtime/mgcsweep.go:328 +0x888 fp=0x42671c sp=0x426690 pc=0x2df14
runtime.sweepone(0xd1e3c)
	/workdir/go/src/runtime/mgcsweep.go:136 +0x2d4 fp=0x426764 sp=0x42671c pc=0x2d3b8
runtime.GC()
	/workdir/go/src/runtime/mgc.go:1076 +0x1c0 fp=0x426784 sp=0x426764 pc=0x24014
main.gc(0x426700)
	/workdir/go/test/fixedbugs/issue27518b.go:36 +0x14 fp=0x426788 sp=0x426784 pc=0x61af0
main.main()
	/workdir/go/test/fixedbugs/issue27518b.go:53 +0x84 fp=0x4267a4 sp=0x426788 pc=0x61bf4
runtime.main()
	/workdir/go/src/runtime/proc.go:203 +0x208 fp=0x4267e4 sp=0x4267a4 pc=0x389f0
runtime.goexit()
	/workdir/go/src/runtime/asm_arm.s:868 +0x4 fp=0x4267e4 sp=0x4267e4 pc=0x5d8f0
exit status 2

FAIL	fixedbugs/issue27518b.go	1.908s

(https://build.golang.org/log/fc5cdd37ce154f561cb55d74243500c9432365f0)

It appears that there may be a bad interaction between stack-allocated defer records and the garbage collector.

CC @randall77 @aclements @mdempsky @josharian @mknyszek

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.SoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions