Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: "fatal error: s.allocCount != s.nelems && freeIndex == s.nelems" during newobject on windows-amd64 #45775

Open
bcmills opened this issue Apr 26, 2021 · 2 comments

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Apr 26, 2021

2021-04-23T21:42:59-41e5ae4/windows-amd64-2012

runtime: s.allocCount= 63 s.nelems= 64
            fatal error: s.allocCount != s.nelems && freeIndex == s.nelems
            
            goroutine 1 [running]:
            runtime.throw({0xd5860d, 0x0})
            	C:/workdir/go/src/runtime/panic.go:1198 +0x76 fp=0xc0000898a0 sp=0xc000089870 pc=0x438f76
            runtime.(*mcache).nextFree(0x330598, 0x14)
            	C:/workdir/go/src/runtime/malloc.go:877 +0x1e5 fp=0xc0000898e8 sp=0xc0000898a0 pc=0x40d145
            runtime.mallocgc(0xc000089990, 0xd042a0, 0x1)
            	C:/workdir/go/src/runtime/malloc.go:1066 +0x4e5 fp=0xc000089978 sp=0xc0000898e8 pc=0x40d665
            runtime.newobject(0x8)
            	C:/workdir/go/src/runtime/malloc.go:1174 +0x27 fp=0xc0000899a0 sp=0xc000089978 pc=0x40dac7
            cmd/internal/obj.(*Link).LookupABIInit(0xc0000de400, {0xc00051a0a0, 0xd32209}, 0x7, 0xc000089a28)
            	C:/workdir/go/src/cmd/internal/obj/sym.go:104 +0xbd fp=0xc000089a00 sp=0xc0000899a0 pc=0x542b1d
            cmd/compile/internal/base.linksym({0xd32209, 0xd32209}, {0xc00051a0a0, 0xe7ad08}, 0x7)
            	C:/workdir/go/src/cmd/compile/internal/base/link.go:35 +0x5c fp=0xc000089a50 sp=0xc000089a00 pc=0x550b3c
            cmd/compile/internal/base.PkgLinksym({0xd32209, 0xc0000addc0}, {0xd3399d, 0xc0000adea0}, 0x10)
            	C:/workdir/go/src/cmd/compile/internal/base/link.go:23 +0x92 fp=0xc000089ab0 sp=0xc000089a50 pc=0x550a92
            cmd/compile/internal/typecheck.LookupRuntimeABI(...)
            	C:/workdir/go/src/cmd/compile/internal/typecheck/syms.go:102
            cmd/compile/internal/typecheck.LookupRuntimeVar(...)
            	C:/workdir/go/src/cmd/compile/internal/typecheck/syms.go:97
            cmd/compile/internal/ssagen.InitConfig()
            	C:/workdir/go/src/cmd/compile/internal/ssagen/ssa.go:208 +0x1cd7 fp=0xc000089c98 sp=0xc000089ab0 pc=0xa67a97
            cmd/compile/internal/gc.Main(0xd64c20)
            	C:/workdir/go/src/cmd/compile/internal/gc/main.go:267 +0xd2a fp=0xc000089f20 sp=0xc000089c98 pc=0xc18f6a
            main.main()
            	C:/workdir/go/src/cmd/compile/main.go:55 +0xdd fp=0xc000089f80 sp=0xc000089f20 pc=0xc3b79d
            runtime.main()
            	C:/workdir/go/src/runtime/proc.go:255 +0x217 fp=0xc000089fe0 sp=0xc000089f80 pc=0x43b537
            runtime.goexit()
            	C:/workdir/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000089fe8 sp=0xc000089fe0 pc=0x4691c1

CC @mknyszek

@bcmills
Copy link
Member Author

@bcmills bcmills commented Apr 26, 2021

Tentatively marking as release-blocker for 1.17 until we can determine whether this is a regression. (The only other occurrence of this error I could find in the logs was in 2019 on plan9, which seems likely to be unrelated.)

@toothrot
Copy link
Contributor

@toothrot toothrot commented Apr 29, 2021

/cc @bufflig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants