Skip to content

runtime: reportZombies throws "found pointer to free object" in sweeper #71451

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

Open
adonovan opened this issue Jan 27, 2025 · 8 comments
Open
Labels
BugReport Issues describing a possible bug in the Go implementation. gopls/telemetry-wins NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.

Comments

@adonovan
Copy link
Member

#!stacks
"reportZombies:+34" && "runtime.goexit"

Issue created by stacks.

This stack Ytavxw was reported by telemetry:

golang.org/x/tools/[email protected] go1.23.4 linux/amd64 vscode (1)

@prattmic

@adonovan adonovan added gopls Issues related to the Go language server, gopls. gopls/telemetry-wins NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository. labels Jan 27, 2025
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jan 27, 2025
@adonovan adonovan removed gopls Issues related to the Go language server, gopls. compiler/runtime Issues related to the Go compiler and/or runtime. labels Jan 27, 2025
@adonovan
Copy link
Member Author

Possibly another manifestation of #71425.

@adonovan adonovan changed the title runtime: reportZombies throws "found pointer to free object" in goexit runtime: reportZombies throws "found pointer to free object" in sweeper Jan 27, 2025
@prattmic
Copy link
Member

I believe this could theoretically be caused by #71228.

@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Jan 27, 2025
@prattmic
Copy link
Member

I think the right way to handle this w.r.t. stacks new reopening ability is to send a CL to bump gopls go.mod to 1.23.5 (once that is released) and then mark this with the milestone of the gopls release that contains that bump?

@mvdan
Copy link
Member

mvdan commented Feb 24, 2025

We just hit a very similar panic in a public repository, cue: https://github.com/cue-lang/cue/actions/runs/13475610686/job/37654390816

In case GitHub wipes the log in the coming weeks, below is the output.

--- FAIL: TestScript (0.06s)
    --- FAIL: TestScript/registry_publish_auth (0.12s)
        testscript.go:584: # Check that we can use the cue mod publish command to publish to a registry
            # that's protected by authorization. (0.118s)
            > memregistry -auth=foo:bar MEMREGISTRY
            > env CUE_REGISTRY=$MEMREGISTRY+insecure
            > env DOCKER_CONFIG=$WORK/dockerconfig
            > env-fill $DOCKER_CONFIG/config.json
            > cd example
            $WORK/example
            > exec cue mod publish v0.0.1
            [stderr]
            runtime: marked free object in span 0x1040f2ed8, elemsize=208 freeindex=15 (bad use of unsafe.Pointer or having race conditions? try -d=checkptr or -race)
            0x14000412000 alloc marked  
            0x140004120d0 alloc marked  
            0x140004121a0 alloc marked  
            0x14000412270 alloc marked  
            0x14000412340 alloc unmarked
            0x14000412410 alloc marked  
            0x140004124e0 alloc marked  
            0x140004125b0 alloc unmarked
            0x14000412680 alloc unmarked
            0x14000412750 alloc unmarked
            0x14000412820 alloc marked  
            0x140004128f0 alloc marked  
            0x140004129c0 alloc marked  
            0x14000412a90 alloc marked  
            0x14000412b60 alloc marked  
            0x14000412c30 free  marked   zombie
            0x0000014000412c30:  0x0000000000000000  0x0000000000000000 
            0x0000014000412c40:  0x0000000000000000  0x0000000000000000 
            0x0000014000412c50:  0x0000000000000000  0x0000000000000000 
            0x0000014000412c60:  0x0000000000000000  0x0000000000000000 
            0x0000014000412c70:  0x0000000000000000  0x0000000000000000 
            0x0000014000412c80:  0x0000000000000000  0x0000000000000000 
            0x0000014000412c90:  0x0000000000000000  0x0000000000000000 
            0x0000014000412ca0:  0x0000000000000000  0x0000000000000000 
            0x0000014000412cb0:  0x0000000000000000  0x0000000000000000 
            0x0000014000412cc0:  0x0000000000000000  0x0000000000000000 
            0x0000014000412cd0:  0x0000000000000000  0x0000000000000000 
            0x0000014000412ce0:  0x0000000000000000  0x0000000000000000 
            0x0000014000412cf0:  0x0000000000000000  0x0000000000000000 
            0x14000412d00 free  unmarked
            0x14000412dd0 free  unmarked
            0x14000412ea0 free  unmarked
            0x14000412f70 free  unmarked
            0x14000413040 free  unmarked
            0x14000413110 free  unmarked
            0x140004131e0 free  unmarked
            0x140004132b0 free  unmarked
            0x14000413380 free  unmarked
            0x14000413450 free  unmarked
            0x14000413520 free  unmarked
            0x140004135f0 free  unmarked
            0x140004136c0 free  unmarked
            0x14000413790 free  unmarked
            0x14000413860 free  unmarked
            0x14000413930 free  unmarked
            0x14000413a00 free  unmarked
            0x14000413ad0 free  unmarked
            0x14000413ba0 free  unmarked
            0x14000413c70 free  unmarked
            0x14000413d40 free  unmarked
            0x14000413e10 free  unmarked
            fatal error: found pointer to free object
            
            runtime stack:
            runtime.throw(***0x10319c8b7?, 0x14000412d00?***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/panic.go:1096 +0x38 fp=0x16d776b90 sp=0x16d776b60 pc=0x102812e48
            runtime.(*mspan).reportZombies(0x1040f2ed8)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgcsweep.go:877 +0x2f0 fp=0x16d776c10 sp=0x16d776b90 pc=0x1027c7c20
            runtime.(*sweepLocked).sweep(0xf200ea6d776d68?, 0x0)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgcsweep.go:652 +0x414 fp=0x16d776d30 sp=0x16d776c10 pc=0x1027c6c24
            runtime.(*mcentral).uncacheSpan(0x6b?, 0x8?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mcentral.go:236 +0xac fp=0x16d776d60 sp=0x16d776d30 pc=0x1027b6afc
            runtime.(*mcache).releaseAll(0x103df8a78)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mcache.go:292 +0x190 fp=0x16d776dd0 sp=0x16d776d60 pc=0x1027b6350
            runtime.(*mcache).prepareForSweep(0x103df8a78)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mcache.go:329 +0x4c fp=0x16d776e00 sp=0x16d776dd0 pc=0x1027b646c
            runtime.gcMarkTermination.func4(0x14000052a08)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1214 +0x24 fp=0x16d776e30 sp=0x16d776e00 pc=0x10280e0b4
            runtime.forEachPInternal(0x1035a50b8)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:2073 +0x184 fp=0x16d776eb0 sp=0x16d776e30 pc=0x1027e0bf4
            runtime.gcMarkTermination.forEachP.func6()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:2032 +0x40 fp=0x16d776ee0 sp=0x16d776eb0 pc=0x1027bc020
            runtime.systemstack(0x80000)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:244 +0x6c fp=0x16d776ef0 sp=0x16d776ee0 pc=0x1028191fc
            
            goroutine 35 gp=0x140001ae540 m=2 mp=0x14000066808 [flushing proc caches]:
            runtime.systemstack_switch()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:201 +0x8 fp=0x14000504c40 sp=0x14000504c30 pc=0x102819178
            runtime.forEachP(...)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:2021
            runtime.gcMarkTermination(***0xe0?, 0xf2d3bdbf08?, 0x3?, 0x20?***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1213 +0x5e0 fp=0x14000504e70 sp=0x14000504c40 pc=0x1027bb8b0
            runtime.gcMarkDone()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1014 +0x340 fp=0x14000504f10 sp=0x14000504e70 pc=0x1027bb060
            runtime.gcBgMarkWorker(0x140001804d0)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1559 +0x384 fp=0x14000504fb0 sp=0x14000504f10 pc=0x1027bc744
            runtime.gcBgMarkStartWorkers.gowrap1()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1339 +0x28 fp=0x14000504fd0 sp=0x14000504fb0 pc=0x1027bc388
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x14000504fd0 sp=0x14000504fd0 pc=0x10281b574
            created by runtime.gcBgMarkStartWorkers in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1339 +0x140
            
            goroutine 1 gp=0x140000021c0 m=nil [runnable]:
            cuelang.org/go/internal/core/adt.(*nodeContext).postDisjunct(0x140000d7808?, 0x5?)
            	/Users/runner/work/cue/cue/internal/core/adt/eval.go:476 +0x7fc fp=0x1400061c1f0 sp=0x1400061c1f0 pc=0x102affedc
            cuelang.org/go/internal/core/adt.(*nodeContext).expandDisjuncts(0x140000d7808, 0x5, 0x140000d7208, 0x1, 0x1, 0x1)
            	/Users/runner/work/cue/cue/internal/core/adt/disjunct.go:179 +0x2e0 fp=0x1400061cb90 sp=0x1400061c1f0 pc=0x102af4690
            cuelang.org/go/internal/core/adt.(*nodeContext).expandDisjuncts(0x140000d7208, 0x5, 0x140000d7208, 0x0, 0x0, 0x1)
            	/Users/runner/work/cue/cue/internal/core/adt/disjunct.go:257 +0x1950 fp=0x1400061d530 sp=0x1400061cb90 pc=0x102af5d00
            cuelang.org/go/internal/core/adt.(*OpContext).unify(0x1400009cb40, 0x1400009afa0, 0x7fff0105)
            	/Users/runner/work/cue/cue/internal/core/adt/eval.go:304 +0x708 fp=0x1400061d7d0 sp=0x1400061d530 pc=0x102afe248
            cuelang.org/go/internal/core/adt.(*nodeContext).completeArcs(0x140000d6c08, 0x5)
            	/Users/runner/work/cue/cue/internal/core/adt/eval.go:844 +0x180 fp=0x1400061d950 sp=0x1400061d7d0 pc=0x102b00aa0
            cuelang.org/go/internal/core/adt.(*nodeContext).postDisjunct(0x140000d6c08, 0x5)
            	/Users/runner/work/cue/cue/internal/core/adt/eval.go:597 +0x2e0 fp=0x1400061da50 sp=0x1400061d950 pc=0x102aff9c0
            cuelang.org/go/internal/core/adt.(*nodeContext).expandDisjuncts(0x140000d6c08, 0x5, 0x140000d6c08, 0x0, 0x0, 0x1)
            	/Users/runner/work/cue/cue/internal/core/adt/disjunct.go:179 +0x2e0 fp=0x1400061e3f0 sp=0x1400061da50 pc=0x102af4690
            cuelang.org/go/internal/core/adt.(*OpContext).unify(0x1400009cb40, 0x1400009a960, 0x7fff0405)
            	/Users/runner/work/cue/cue/internal/core/adt/eval.go:304 +0x708 fp=0x1400061e690 sp=0x1400061e3f0 pc=0x102afe248
            cuelang.org/go/internal/core/adt.(*Vertex).Finalize(0x1400009cb40?, 0x1400009cb40)
            	/Users/runner/work/cue/cue/internal/core/adt/composite.go:1021 +0x58 fp=0x1400061e6c0 sp=0x1400061e690 pc=0x102ad86d8
            cuelang.org/go/internal/core/adt.Unify(0x1400009cb40, ***0x1035c0710, 0x140004bd680***, ***0x1035c0710, 0x1400009a640***)
            	/Users/runner/work/cue/cue/internal/core/adt/composite.go:991 +0xd4 fp=0x1400061e700 sp=0x1400061e6c0 pc=0x102ad8384
            cuelang.org/go/cue.Value.Unify(***0x140004044c0?, 0x140004bd680?, 0x0?***, ***0x140004044c0?, 0x1400009a640?, 0x0?***)
            	/Users/runner/work/cue/cue/cue/types.go:1722 +0xdc fp=0x1400061e7c0 sp=0x1400061e700 pc=0x102cf1e9c
            cuelang.org/go/cue.Value.FillPath(***0x140004044c0?, 0x140004bd680?, 0x0?***, ***0x0?, 0x14000100008?, 0x1400049ab10?***, ***0x1033bdac0, 0x140000a71f0***)
            	/Users/runner/work/cue/cue/cue/types.go:1628 +0x6b0 fp=0x1400061e960 sp=0x1400061e7c0 pc=0x102cf1140
            cuelang.org/go/internal/filetypes.FromFile(0x140000a71f0, 0x0)
            	/Users/runner/work/cue/cue/internal/filetypes/filetypes.go:105 +0x1f0 fp=0x1400061ead0 sp=0x1400061e960 pc=0x102df1ae0
            cuelang.org/go/internal/encoding.(*Decoder).validate(0x140003c6000, 0x14000082900, 0x10343f900?)
            	/Users/runner/work/cue/cue/internal/encoding/encoding.go:399 +0x34 fp=0x1400061eb40 sp=0x1400061ead0 pc=0x102e17604
            cuelang.org/go/internal/encoding.NewDecoder(0x14000098280, 0x140000a71f0, 0x200?)
            	/Users/runner/work/cue/cue/internal/encoding/encoding.go:235 +0x8e0 fp=0x1400061ed90 sp=0x1400061eb40 pc=0x102e162c0
            cuelang.org/go/mod/modfile.parseDataOnlyCUE(0x14000098280, ***0x140000d0000, 0x54, 0x200***, ***0x14000156000, 0x89***)
            	/Users/runner/work/cue/cue/mod/modfile/modfile.go:516 +0x110 fp=0x1400061ede0 sp=0x1400061ed90 pc=0x102e1b070
            cuelang.org/go/mod/modfile.parse(***0x140000d0000, 0x54, 0x200***, ***0x14000156000, 0x89***, 0x1)
            	/Users/runner/work/cue/cue/mod/modfile/modfile.go:372 +0x64 fp=0x1400061f150 sp=0x1400061ede0 pc=0x102e19b24
            cuelang.org/go/mod/modfile.Parse(...)
            	/Users/runner/work/cue/cue/mod/modfile/modfile.go:259
            cuelang.org/go/cmd/cue/cmd.runModUpload(0x140003c5a40, ***0x140003b5930, 0x1, 0x0?***)
            	/Users/runner/work/cue/cue/cmd/cue/cmd/modpublish.go:131 +0x1f8 fp=0x1400061f620 sp=0x1400061f150 pc=0x1030d3b08
            cuelang.org/go/cmd/cue/cmd.newModUploadCmd.mkRunE.func1(0x140003fc900?, ***0x140003b5930, 0x1, 0x1***)
            	/Users/runner/work/cue/cue/cmd/cue/cmd/root.go:132 +0x2ec fp=0x1400061f880 sp=0x1400061f620 pc=0x1030d34ac
            github.com/spf13/cobra.(*Command).execute(0x14000406908, ***0x140003b5900, 0x1, 0x1***)
            	/Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x830 fp=0x1400061fa10 sp=0x1400061f880 pc=0x102a2a7e0
            github.com/spf13/cobra.(*Command).ExecuteC(0x140003e8008)
            	/Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x344 fp=0x1400061faf0 sp=0x1400061fa10 pc=0x102a2af84
            github.com/spf13/cobra.(*Command).Execute(...)
            	/Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041
            cuelang.org/go/cmd/cue/cmd.(*Command).Run(0x140003c5a40, ***0x103d22a40?, 0x10344fe80?***)
            	/Users/runner/work/cue/cue/cmd/cue/cmd/root.go:356 +0x24 fp=0x1400061fb10 sp=0x1400061faf0 pc=0x1030e1314
            cuelang.org/go/cmd/cue/cmd.Main()
            	/Users/runner/work/cue/cue/cmd/cue/cmd/root.go:264 +0x9c fp=0x1400061fb90 sp=0x1400061fb10 pc=0x1030e0edc
            cuelang.org/go/cmd/cue/cmd.TestMain.func2()
            	/Users/runner/work/cue/cue/cmd/cue/cmd/script_test.go:411 +0x1c fp=0x1400061fbb0 sp=0x1400061fb90 pc=0x1030e693c
            github.com/rogpeppe/go-internal/testscript.Main(***0x1035ae980, 0x140001f30e0***, 0x14000047e60)
            	/Users/runner/go/pkg/mod/github.com/rogpeppe/[email protected]/testscript/exe.go:95 +0x25c fp=0x1400061fd70 sp=0x1400061fbb0 pc=0x103092c5c
            cuelang.org/go/cmd/cue/cmd.TestMain(0x140001f30e0)
            	/Users/runner/work/cue/cue/cmd/cue/cmd/script_test.go:410 +0x22c fp=0x1400061fea0 sp=0x1400061fd70 pc=0x1030e5adc
            main.main()
            	_testmain.go:55 +0x98 fp=0x1400061ff40 sp=0x1400061fea0 pc=0x10312fed8
            runtime.main()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:283 +0x284 fp=0x1400061ffd0 sp=0x1400061ff40 pc=0x1027dd1a4
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400061ffd0 sp=0x1400061ffd0 pc=0x10281b574
            
            goroutine 2 gp=0x14000002700 m=nil [force gc (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:435 +0xc8 fp=0x14000060f90 sp=0x14000060f70 pc=0x102812f68
            runtime.goparkunlock(...)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:441
            runtime.forcegchelper()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:348 +0xb8 fp=0x14000060fd0 sp=0x14000060f90 pc=0x1027dd4f8
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x14000060fd0 sp=0x14000060fd0 pc=0x10281b574
            created by runtime.init.7 in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:336 +0x24
            
            goroutine 17 gp=0x14000102380 m=nil [runnable]:
            runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:435 +0xc8 fp=0x1400005c760 sp=0x1400005c740 pc=0x102812f68
            runtime.goparkunlock(...)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:441
            runtime.bgsweep(0x1400010e000)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgcsweep.go:316 +0x108 fp=0x1400005c7b0 sp=0x1400005c760 pc=0x1027c61f8
            runtime.gcenable.gowrap1()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:204 +0x28 fp=0x1400005c7d0 sp=0x1400005c7b0 pc=0x1027ba008
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400005c7d0 sp=0x1400005c7d0 pc=0x10281b574
            created by runtime.gcenable in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:204 +0x6c
            
            goroutine 18 gp=0x14000102540 m=nil [GC scavenge wait]:
            runtime.gopark(0x10000?, 0x10333b868?, 0x0?, 0x0?, 0x0?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:435 +0xc8 fp=0x1400005cf60 sp=0x1400005cf40 pc=0x102812f68
            runtime.goparkunlock(...)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:441
            runtime.(*scavengerState).park(0x103cf79c0)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgcscavenge.go:425 +0x5c fp=0x1400005cf90 sp=0x1400005cf60 pc=0x1027c3c9c
            runtime.bgscavenge(0x1400010e000)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgcscavenge.go:658 +0xac fp=0x1400005cfb0 sp=0x1400005cf90 pc=0x1027c423c
            runtime.gcenable.gowrap2()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:205 +0x28 fp=0x1400005cfd0 sp=0x1400005cfb0 pc=0x1027b9fa8
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400005cfd0 sp=0x1400005cfd0 pc=0x10281b574
            created by runtime.gcenable in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:205 +0xac
            
            goroutine 33 gp=0x140001ae000 m=nil [finalizer wait]:
            runtime.gopark(0x103477700?, 0x33?, 0x38?, 0x6?, 0x1000000000000?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:435 +0xc8 fp=0x14000060590 sp=0x14000060570 pc=0x102812f68
            runtime.runfinq()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mfinal.go:196 +0x108 fp=0x140000607d0 sp=0x14000060590 pc=0x1027b9008
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140000607d0 sp=0x140000607d0 pc=0x10281b574
            created by runtime.createfing in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mfinal.go:166 +0x80
            
            goroutine 19 gp=0x140001028c0 m=nil [chan receive]:
            runtime.gopark(0x14000316320?, 0x1400026a840?, 0x48?, 0xd7?, 0x1029bec18?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:435 +0xc8 fp=0x1400005d6f0 sp=0x1400005d6d0 pc=0x102812f68
            runtime.chanrecv(0x1400030c4d0, 0x0, 0x1)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/chan.go:664 +0x42c fp=0x1400005d770 sp=0x1400005d6f0 pc=0x1027abadc
            runtime.chanrecv1(0x0?, 0x0?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/chan.go:506 +0x14 fp=0x1400005d7a0 sp=0x1400005d770 pc=0x1027ab674
            runtime.unique_runtime_registerUniqueMapCleanup.func2(...)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1796
            runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1799 +0x3c fp=0x1400005d7d0 sp=0x1400005d7a0 pc=0x1027bd22c
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400005d7d0 sp=0x1400005d7d0 pc=0x10281b574
            created by unique.runtime_registerUniqueMapCleanup in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1794 +0x78
            
            goroutine 34 gp=0x140001ae380 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:435 +0xc8 fp=0x14000504710 sp=0x140005046f0 pc=0x102812f68
            runtime.gcBgMarkWorker(0x140001804d0)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1423 +0xdc fp=0x140005047b0 sp=0x14000504710 pc=0x1027bc49c
            runtime.gcBgMarkStartWorkers.gowrap1()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1339 +0x28 fp=0x140005047d0 sp=0x140005047b0 pc=0x1027bc388
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140005047d0 sp=0x140005047d0 pc=0x10281b574
            created by runtime.gcBgMarkStartWorkers in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1339 +0x140
            
            goroutine 36 gp=0x140001ae700 m=nil [GC worker (idle)]:
            runtime.gopark(0xf2d3ae12aa?, 0x0?, 0x0?, 0x0?, 0x0?)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/proc.go:435 +0xc8 fp=0x14000505710 sp=0x140005056f0 pc=0x102812f68
            runtime.gcBgMarkWorker(0x140001804d0)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1423 +0xdc fp=0x140005057b0 sp=0x14000505710 pc=0x1027bc49c
            runtime.gcBgMarkStartWorkers.gowrap1()
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1339 +0x28 fp=0x140005057d0 sp=0x140005057b0 pc=0x1027bc388
            runtime.goexit(***)
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140005057d0 sp=0x140005057d0 pc=0x10281b574
            created by runtime.gcBgMarkStartWorkers in goroutine 1
            	/Users/runner/hostedtoolcache/go/1.24.0/arm64/src/runtime/mgc.go:1339 +0x140
            [exit status 2]
            FAIL: testdata/script/registry_publish_auth.txtar:10: unexpected command failure
            
    proxy.go:222: go proxy: no archive externalmod.test v1.0.0
    proxy.go:222: go proxy: no archive externalmod.test/imports/root v1.0.0
    proxy.go:222: go proxy: no archive externalmod.test v1.0.0
FAIL
FAIL	cuelang.org/go/cmd/cue/cmd	14.218s

This was from a go test ./... on darwin, but we also continuously test with go test -race ./... on linux, so I'd be surprised if this was actually from a data race. This is the first time we see such a panic, with go1.24.0 - earlier 1.22.x and 1.23.x versions never ran into it.

@mvdan
Copy link
Member

mvdan commented Feb 25, 2025

Apologies, I think our failure was actually #71932, as we found it on darwin/arm64 as well.

@myitcv
Copy link
Member

myitcv commented Apr 16, 2025

I believe I just ran into this with go version go1.24.0 linux/arm64:

``` $ go generate ./internal/ci/... runtime: marked free object in span 0xffff70671188, elemsize=208 freeindex=9 (bad use of unsafe.Pointer or having race conditions? try -d=check ptr or -race) 0x40000de000 alloc marked 0x40000de0d0 alloc marked 0x40000de1a0 alloc marked 0x40000de270 alloc marked 0x40000de340 alloc marked 0x40000de410 alloc marked 0x40000de4e0 alloc marked 0x40000de5b0 alloc marked 0x40000de680 alloc marked 0x40000de750 free marked zombie 0x00000040000de750: 0x0000000000000000 0x0000000000000000 0x00000040000de760: 0x0000000000000000 0x0000000000000000 0x00000040000de770: 0x0000000000000000 0x0000000000000000 0x00000040000de780: 0x0000000000000000 0x0000000000000000 0x00000040000de790: 0x0000000000000000 0x0000000000000000 0x00000040000de7a0: 0x0000000000000000 0x0000000000000000 0x00000040000de7b0: 0x0000000000000000 0x0000000000000000 0x00000040000de7c0: 0x0000000000000000 0x0000000000000000 0x00000040000de7d0: 0x0000000000000000 0x0000000000000000 0x00000040000de7e0: 0x0000000000000000 0x0000000000000000 0x00000040000de7f0: 0x0000000000000000 0x0000000000000000 0x00000040000de800: 0x0000000000000000 0x0000000000000000 0x00000040000de810: 0x0000000000000000 0x0000000000000000 0x40000de820 free unmarked 0x40000de8f0 free unmarked 0x40000de9c0 free unmarked 0x40000dea90 free unmarked 0x40000deb60 free unmarked 0x40000dec30 free unmarked 0x40000ded00 free unmarked 0x40000dedd0 free unmarked 0x40000deea0 free unmarked 0x40000def70 free unmarked 0x40000df040 free unmarked 0x40000df110 free unmarked 0x40000df1e0 free unmarked 0x40000df2b0 free unmarked 0x40000df380 free unmarked 0x40000df450 free unmarked 0x40000df520 free unmarked 0x40000df5f0 free unmarked 0x40000df6c0 free unmarked 0x40000df790 free unmarked 0x40000df860 free unmarked 0x40000df930 free unmarked 0x40000dfa00 free unmarked 0x40000dfad0 free unmarked 0x40000dfba0 free unmarked 0x40000dfc70 free unmarked 0x40000dfd40 free unmarked 0x40000dfe10 free unmarked fatal error: found pointer to free object

runtime stack:
runtime.throw({0xbc4246?, 0x40000de820?})
/home/myitcv/gos/src/runtime/panic.go:1096 +0x38 fp=0xffff697ae1e0 sp=0xffff697ae1b0 pc=0x89ca8
runtime.(*mspan).reportZombies(0xffff70671188)
/home/myitcv/gos/src/runtime/mgcsweep.go:877 +0x2f0 fp=0xffff697ae260 sp=0xffff697ae1e0 pc=0x3dd20
runtime.(*sweepLocked).sweep(0xffff697ae4a8?, 0x0)
/home/myitcv/gos/src/runtime/mgcsweep.go:652 +0x414 fp=0xffff697ae380 sp=0xffff697ae260 pc=0x3ccd4
runtime.(*mcentral).uncacheSpan(0xffff697ae3f8?, 0x722d8?)
/home/myitcv/gos/src/runtime/mcentral.go:236 +0xac fp=0xffff697ae3b0 sp=0xffff697ae380 pc=0x2c7ec
runtime.(*mcache).releaseAll(0xffffb7960108)
/home/myitcv/gos/src/runtime/mcache.go:292 +0x190 fp=0xffff697ae420 sp=0xffff697ae3b0 pc=0x2c040
runtime.(*mcache).prepareForSweep(0xffffb7960108)
/home/myitcv/gos/src/runtime/mcache.go:329 +0x4c fp=0xffff697ae450 sp=0xffff697ae420 pc=0x2c15c
runtime.acquirep(0x4000054008)
/home/myitcv/gos/src/runtime/proc.go:5884 +0x2c fp=0xffff697ae480 sp=0xffff697ae450 pc=0x60d4c
runtime.stopm()
/home/myitcv/gos/src/runtime/proc.go:2908 +0xa0 fp=0xffff697ae4b0 sp=0xffff697ae480 pc=0x58f00
runtime.gcstopm()
/home/myitcv/gos/src/runtime/proc.go:3218 +0xf8 fp=0xffff697ae4e0 sp=0xffff697ae4b0 pc=0x59aa8
runtime.findRunnable()
/home/myitcv/gos/src/runtime/proc.go:3281 +0x2b0 fp=0xffff697ae650 sp=0xffff697ae4e0 pc=0x59f90
runtime.schedule()
/home/myitcv/gos/src/runtime/proc.go:4017 +0x94 fp=0xffff697ae690 sp=0xffff697ae650 pc=0x5c0a4
runtime.goschedImpl(0x40000021c0, 0xc8?)
/home/myitcv/gos/src/runtime/proc.go:4175 +0x1f4 fp=0xffff697ae6e0 sp=0xffff697ae690 pc=0x5c7b4
runtime.gopreempt_m(...)
/home/myitcv/gos/src/runtime/proc.go:4192
runtime.newstack()
/home/myitcv/gos/src/runtime/stack.go:1074 +0x2cc fp=0xffff697ae820 sp=0xffff697ae6e0 pc=0x6e0fc
runtime.morestack()
/home/myitcv/gos/src/runtime/asm_arm64.s:342 +0x70 fp=0xffff697ae820 sp=0xffff697ae820 pc=0x8f9b0

goroutine 1 gp=0x40000021c0 m=nil [runnable]:
cuelang.org/go/internal/core/adt.transitiveMapping({0x4000e16100?, 0x7?, 0x8?}, {0x9?, 0x0?, 0x0?, 0x1?}, {0x4000e1c000, 0xf, 0x10})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/core/adt/typocheck.go:647 +0x1a8 fp=
0x40004ca040 sp=0x40004ca040 pc=0x31c098
cuelang.org/go/internal/core/adt.(*reqSets).replaceIDs(0x40004ca1a0, {0x4000e1c000, 0xf, 0x10})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/core/adt/typocheck.go:633 +0x108 fp=
0x40004ca0f0 sp=0x40004ca040 pc=0x31bc68
cuelang.org/go/internal/core/adt.(*nodeContext).checkTypos(0x4000b50008)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/core/adt/typocheck.go:475 +0x324 fp=
0x40004ca210 sp=0x40004ca0f0 pc=0x31b8c4
cuelang.org/go/internal/core/adt.(*Vertex).unify(0x4000b2b9a0, 0x4000b4e400, 0x7fff, 0x4, 0x1)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/core/adt/unify.go:460 +0xca8 fp=0x40
004ca460 sp=0x40004ca210 pc=0x31dd48
cuelang.org/go/internal/core/adt.(*OpContext).unify(0x4000b50008?, 0x4000b4e400?, 0x0?)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/core/adt/eval.go:160 +0x178 fp=0x400
04ca700 sp=0x40004ca460 pc=0x2f4b48
cuelang.org/go/internal/core/adt.(*Vertex).Finalize(0x4000b4e400?, 0x4000b4e400)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/core/adt/composite.go:1012 +0x58 fp=
0x40004ca730 sp=0x40004ca700 pc=0x2d3428
cuelang.org/go/internal/core/adt.Unify(0x4000b4e400, {0xd70d60, 0x4000b2a640}, {0xd70d60, 0x40005945a0})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/core/adt/composite.go:969 +0xf0 fp=0
x40004ca770 sp=0x40004ca730 pc=0x2d3060
cuelang.org/go/cue.Value.Unify({0x40002f1b80?, 0x4000b2a640?, 0x0?}, {0x40002f1b80?, 0x40005945a0?, 0x0?})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cue/types.go:1725 +0xdc fp=0x40004ca830 sp=0x
40004ca770 pc=0x4fad8c
cuelang.org/go/internal/filetypes.unifyWith({0x0, 0x0}, {0x40002f1b80?, 0x4000b2a640?, 0x0?}, {0x40002f1b80?, 0x40003a3d60?, 0x0?}, {0xba753f,
0x5}, ...)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/filetypes/filetypes.go:140 +0xd4 fp=
0x40004ca910 sp=0x40004ca830 pc=0x5fc084
cuelang.org/go/internal/filetypes.FromFile(0x400027cf50, 0x0)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/filetypes/filetypes.go:117 +0x390 fp
=0x40004caa80 sp=0x40004ca910 pc=0x5fbd00
cuelang.org/go/internal/encoding.(*Decoder).validate(0x4000b22000, 0x40000c03c0, 0xa533e0?)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/encoding/encoding.go:402 +0x34 fp=0x
40004caaf0 sp=0x40004caa80 pc=0x6217c4
cuelang.org/go/internal/encoding.NewDecoder(0x4000b08240, 0x400027cf50, 0x200?)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/internal/encoding/encoding.go:240 +0x920 fp=0
x40004cad40 sp=0x40004caaf0 pc=0x620490
cuelang.org/go/mod/modfile.parseDataOnlyCUE(0x4000b08240, {0x4000b20000, 0xbd, 0x200}, {0x4000b1c140, 0x37})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/mod/modfile/modfile.go:516 +0x110 fp=0x40004c
ad90 sp=0x40004cad40 pc=0x625250
cuelang.org/go/mod/modfile.parse({0x4000b20000, 0xbd, 0x200}, {0x4000b1c140, 0x37}, 0x0)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/mod/modfile/modfile.go:372 +0x64 fp=0x40004cb
100 sp=0x40004cad90 pc=0x623ce4
cuelang.org/go/mod/modfile.ParseNonStrict({0x4000b20000?, 0x40005a70c0?, 0x40004cb268?}, {0x4000b1c140?, 0x0?})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/mod/modfile/modfile.go:292 +0x28 fp=0x40004cb
140 sp=0x40004cb100 pc=0x623588
cuelang.org/go/cue/load.(*Config).loadModule(0x40005b8270)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cue/load/config.go:427 +0x1d4 fp=0x40004cb270
sp=0x40004cb140 pc=0x64e434
cuelang.org/go/cue/load.Config.complete({0x0, {0x0, 0x0}, {0x0, 0x0}, 0x0, 0x0, {0x0, 0x0}, {0x0, ...}, ...})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cue/load/config.go:385 +0x30c fp=0x40004cb3a0
sp=0x40004cb270 pc=0x64e1ec
cuelang.org/go/cue/load.Instances({0x40002d9b90?, 0x40001d1e00?, 0x7?}, 0x40002ef6c0)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cue/load/instances.go:70 +0x230 fp=0x40004cb7
10 sp=0x40004cb3a0 pc=0x6565a0
cuelang.org/go/cmd/cue/cmd.loadFromArgs(...)
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cmd/cue/cmd/common.go:78
cuelang.org/go/cmd/cue/cmd.buildTools(0x40002f62d0, {0x40002d9b90, 0x0, 0x0})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cmd/cue/cmd/common.go:781 +0xd0 fp=0x40004cb8
f0 sp=0x40004cb710 pc=0x8d8c10
cuelang.org/go/cmd/cue/cmd.newCmdCmd.func1(0x40002f62d0, {0x40002d9b90, 0x40002f62d0?, 0x0?})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cmd/cue/cmd/cmd.go:143 +0x54 fp=0x40004cb9b0
sp=0x40004cb8f0 pc=0x908834
cuelang.org/go/cmd/cue/cmd.newCmdCmd.mkRunE.func2(0x40001d1e00?, {0x40002d9b90, 0x1, 0x1})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cmd/cue/cmd/root.go:158 +0x2ec fp=0x40004cbc1
0 sp=0x40004cb9b0 pc=0x8d447c
github.com/spf13/cobra.(*Command).execute(0x400038a308, {0x40002d9b50, 0x1, 0x1})
/home/myitcv/gostuff/pkg/mod/github.com/spf13/[email protected]/command.go:1015 +0x828 fp=0x40004cbda0 sp=0x40004cbc10 pc=0x200f48
github.com/spf13/cobra.(*Command).ExecuteC(0x400038a008)
/home/myitcv/gostuff/pkg/mod/github.com/spf13/[email protected]/command.go:1148 +0x350 fp=0x40004cbe80 sp=0x40004cbda0 pc=0x2016f0
github.com/spf13/cobra.(*Command).Execute(...)
/home/myitcv/gostuff/pkg/mod/github.com/spf13/[email protected]/command.go:1071
cuelang.org/go/cmd/cue/cmd.(*Command).Run(0x40002f62d0, {0x149a1e0?, 0xa62d00?})
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cmd/cue/cmd/root.go:382 +0x24 fp=0x40004cbea0
sp=0x40004cbe80 pc=0x9049d4
cuelang.org/go/cmd/cue/cmd.Main()
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cmd/cue/cmd/root.go:290 +0x9c fp=0x40004cbf20
sp=0x40004cbea0 pc=0x90459c
main.main()
/home/myitcv/gostuff/pkg/mod/cuelang.org/[email protected]/cmd/cue/main.go:24 +0x1c fp=0x40004cbf40 sp=0
x40004cbf20 pc=0x92128c
runtime.main()
/home/myitcv/gos/src/runtime/proc.go:283 +0x284 fp=0x40004cbfd0 sp=0x40004cbf40 pc=0x53b34
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40004cbfd0 sp=0x40004cbfd0 pc=0x91d54

goroutine 18 gp=0x40000aa380 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000070790 sp=0x4000070770 pc=0x89dc8
runtime.goparkunlock(...)
/home/myitcv/gos/src/runtime/proc.go:441
runtime.forcegchelper()
/home/myitcv/gos/src/runtime/proc.go:348 +0xb8 fp=0x40000707d0 sp=0x4000070790 pc=0x53e88
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000707d0 sp=0x40000707d0 pc=0x91d54
created by runtime.init.7 in goroutine 1
/home/myitcv/gos/src/runtime/proc.go:336 +0x24

goroutine 19 gp=0x40000aa540 m=nil [runnable]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000070f60 sp=0x4000070f40 pc=0x89dc8
runtime.goparkunlock(...)
/home/myitcv/gos/src/runtime/proc.go:441
runtime.bgsweep(0x40000ba000)
/home/myitcv/gos/src/runtime/mgcsweep.go:316 +0x108 fp=0x4000070fb0 sp=0x4000070f60 pc=0x3c2a8
runtime.gcenable.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:204 +0x28 fp=0x4000070fd0 sp=0x4000070fb0 pc=0x300e8
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000070fd0 sp=0x4000070fd0 pc=0x91d54
created by runtime.gcenable in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:204 +0x6c

goroutine 20 gp=0x40000aa700 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0xd551e0?, 0x0?, 0x0?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000071760 sp=0x4000071740 pc=0x89dc8
runtime.goparkunlock(...)
/home/myitcv/gos/src/runtime/proc.go:441
runtime.(*scavengerState).park(0x146f100)
/home/myitcv/gos/src/runtime/mgcscavenge.go:425 +0x5c fp=0x4000071790 sp=0x4000071760 pc=0x39d7c
runtime.bgscavenge(0x40000ba000)
/home/myitcv/gos/src/runtime/mgcscavenge.go:658 +0xac fp=0x40000717b0 sp=0x4000071790 pc=0x3a2fc
runtime.gcenable.gowrap2()
/home/myitcv/gos/src/runtime/mgc.go:205 +0x28 fp=0x40000717d0 sp=0x40000717b0 pc=0x30088
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000717d0 sp=0x40000717d0 pc=0x91d54
created by runtime.gcenable in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:205 +0xac

goroutine 21 gp=0x40000aac40 m=nil [finalizer wait]:
runtime.gopark(0xa8a300?, 0x33?, 0xc0?, 0x5?, 0x1000000000000?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000074590 sp=0x4000074570 pc=0x89dc8
runtime.runfinq()
/home/myitcv/gos/src/runtime/mfinal.go:196 +0x108 fp=0x40000747d0 sp=0x4000074590 pc=0x2f0e8
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000747d0 sp=0x40000747d0 pc=0x91d54
created by runtime.createfing in goroutine 1
/home/myitcv/gos/src/runtime/mfinal.go:166 +0x80

goroutine 2 gp=0x4000003500 m=nil [chan receive]:
runtime.gopark(0x40002359a0?, 0x40001122b8?, 0x48?, 0x4f?, 0x1749e8?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000074ef0 sp=0x4000074ed0 pc=0x89dc8
runtime.chanrecv(0x40002841c0, 0x0, 0x1)
/home/myitcv/gos/src/runtime/chan.go:664 +0x42c fp=0x4000074f70 sp=0x4000074ef0 pc=0x21a0c
runtime.chanrecv1(0x0?, 0x0?)
/home/myitcv/gos/src/runtime/chan.go:506 +0x14 fp=0x4000074fa0 sp=0x4000074f70 pc=0x215a4
runtime.unique_runtime_registerUniqueMapCleanup.func2(...)
/home/myitcv/gos/src/runtime/mgc.go:1796
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1799 +0x3c fp=0x4000074fd0 sp=0x4000074fa0 pc=0x3330c
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000074fd0 sp=0x4000074fd0 pc=0x91d54
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1794 +0x78

goroutine 3 gp=0x4000003880 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000075710 sp=0x40000756f0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x40000757b0 sp=0x4000075710 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x40000757d0 sp=0x40000757b0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000757d0 sp=0x40000757d0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 4 gp=0x4000003a40 m=nil [GC worker (idle)]:
runtime.gopark(0xbc0600dde3?, 0x3?, 0xd8?, 0x59?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000075f10 sp=0x4000075ef0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x4000075fb0 sp=0x4000075f10 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x4000075fd0 sp=0x4000075fb0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000075fd0 sp=0x4000075fd0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 5 gp=0x4000003c00 m=nil [GC worker (idle)]:
runtime.gopark(0xbc060157f5?, 0x3?, 0x1e?, 0x2?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000076710 sp=0x40000766f0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x40000767b0 sp=0x4000076710 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x40000767d0 sp=0x40000767b0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000767d0 sp=0x40000767d0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 6 gp=0x4000003dc0 m=nil [GC worker (idle)]:
runtime.gopark(0x149bac0?, 0x3?, 0xa0?, 0x8?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000076f10 sp=0x4000076ef0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x4000076fb0 sp=0x4000076f10 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x4000076fd0 sp=0x4000076fb0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000076fd0 sp=0x4000076fd0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 7 gp=0x4000500000 m=nil [runnable]:
runtime.gopark(0x147ccc0?, 0x0?, 0x60?, 0x0?, 0x4000500000?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x400008be20 sp=0x400008be00 pc=0x89dc8
runtime.goparkunlock(...)
/home/myitcv/gos/src/runtime/proc.go:441
runtime.semacquire1(0x14707bc, 0x0, 0x0, 0x0, 0x12)
/home/myitcv/gos/src/runtime/sema.go:188 +0x204 fp=0x400008be70 sp=0x400008be20 pc=0x684a4
runtime.semacquire(...)
/home/myitcv/gos/src/runtime/sema.go:139
runtime.gcMarkDone()
/home/myitcv/gos/src/runtime/mgc.go:872 +0x3c fp=0x400008bf10 sp=0x400008be70 pc=0x30e3c
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1559 +0x384 fp=0x400008bfb0 sp=0x400008bf10 pc=0x32824
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x400008bfd0 sp=0x400008bfb0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x400008bfd0 sp=0x400008bfd0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 8 gp=0x40005001c0 m=nil [GC worker (idle)]:
runtime.gopark(0xbc06014e31?, 0x1?, 0x8?, 0xc8?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000694f10 sp=0x4000694ef0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x4000694fb0 sp=0x4000694f10 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x4000694fd0 sp=0x4000694fb0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000694fd0 sp=0x4000694fd0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 9 gp=0x4000500380 m=nil [GC worker (idle)]:
runtime.gopark(0x149bac0?, 0x1?, 0xe0?, 0x83?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000506710 sp=0x40005066f0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x40005067b0 sp=0x4000506710 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x40005067d0 sp=0x40005067b0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40005067d0 sp=0x40005067d0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 10 gp=0x4000500540 m=9 mp=0x4000680008 [flushing proc caches]:
runtime.systemstack_switch()
/home/myitcv/gos/src/runtime/asm_arm64.s:201 +0x8 fp=0x4000506c40 sp=0x4000506c30 pc=0x8f828
runtime.forEachP(...)
/home/myitcv/gos/src/runtime/proc.go:2021
runtime.gcMarkTermination({0xc0?, 0xbc0603ed6b?, 0xa?, 0x20?})
/home/myitcv/gos/src/runtime/mgc.go:1213 +0x5e0 fp=0x4000506e70 sp=0x4000506c40 pc=0x31990
runtime.gcMarkDone()
/home/myitcv/gos/src/runtime/mgc.go:1014 +0x340 fp=0x4000506f10 sp=0x4000506e70 pc=0x31140
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1559 +0x384 fp=0x4000506fb0 sp=0x4000506f10 pc=0x32824
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x4000506fd0 sp=0x4000506fb0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000506fd0 sp=0x4000506fd0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 11 gp=0x4000500700 m=nil [GC worker (idle)]:
runtime.gopark(0xbc06014fa8?, 0x1?, 0x25?, 0xd2?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000507710 sp=0x40005076f0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x40005077b0 sp=0x4000507710 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x40005077d0 sp=0x40005077b0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40005077d0 sp=0x40005077d0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140

goroutine 12 gp=0x40005008c0 m=nil [GC worker (idle)]:
runtime.gopark(0xbc05fd2b99?, 0x3?, 0x40?, 0x78?, 0x0?)
/home/myitcv/gos/src/runtime/proc.go:435 +0xc8 fp=0x4000507f10 sp=0x4000507ef0 pc=0x89dc8
runtime.gcBgMarkWorker(0x4000284690)
/home/myitcv/gos/src/runtime/mgc.go:1423 +0xdc fp=0x4000507fb0 sp=0x4000507f10 pc=0x3257c
runtime.gcBgMarkStartWorkers.gowrap1()
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x28 fp=0x4000507fd0 sp=0x4000507fb0 pc=0x32468
runtime.goexit({})
/home/myitcv/gos/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000507fd0 sp=0x4000507fd0 pc=0x91d54
created by runtime.gcBgMarkStartWorkers in goroutine 1
/home/myitcv/gos/src/runtime/mgc.go:1339 +0x140
exit status 2
internal/ci/gen.go:17: running "go": exit status 1

</details>

@myitcv
Copy link
Member

myitcv commented Apr 16, 2025

🤦 - I've just repeated the same "mistake" as @mvdan - mine was arm64 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation. gopls/telemetry-wins NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

6 participants