golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.41k stars 17.71k forks source link

cmd/go: local failure in TestScript/build_trimpath_cgo #70669

Open matloob opened 13 hours ago

matloob commented 13 hours ago

Go version

go version devel go1.24-4daf7922f3 Tue Dec 3 20:01:57 2024 +0000 darwin/arm64

Output of go env in your module/workspace:

AR='ar'
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/matloob/Library/Caches/go-build'
GODEBUG=''
GOENV='/Users/matloob/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/k3/3s_zz9nx1ms089s9vjb70xw8004_sl/T/go-build939416878=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='/Users/matloob/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/matloob/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/matloob/devgo'
GOSUMDB='sum.golang.org'
GOTELEMETRY='on'
GOTELEMETRYDIR='/Users/matloob/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/matloob/devgo/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='devel go1.24-4daf7922f3 Tue Dec 3 20:01:57 2024 +0000'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

go test cmd/go -run TestScript/build_trimpath_cgo

What did you see happen?

vcs-test.golang.org rerouted to http://127.0.0.1:64232
https://vcs-test.golang.org rerouted to https://127.0.0.1:64233
go test proxy running at GOPROXY=http://127.0.0.1:64234/mod
--- FAIL: TestScript (0.08s)
    --- FAIL: TestScript/build_trimpath_cgo (2.82s)
        script_test.go:139: 2024-12-03T21:32:56Z
        script_test.go:141: $WORK=/var/folders/k3/3s_zz9nx1ms089s9vjb70xw8004_sl/T/cmd-go-test-1594387389/tmpdir235808967/build_trimpath_cgo2833802440
        script_test.go:163: 
            # This test builds a cgo binary and verifies the source directory path
            # does not appear in the binary, either literally or in compressed DWARF.
            # TODO(golang.org/issue/36072): ideally we should build a binary from identical
            # sources in different directories and verify the binary and all intermediate
            # files are identical. (0.000s)
            # Check that the source path appears when -trimpath is not used. (2.818s)
            > go build -o hello.exe .
            > grep -q gopath[/\\]src hello.exe
            > go run ./list-dwarf hello.exe
            [stderr]
            panic: runtime error: invalid memory address or nil pointer dereference
            [signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102620ee4]

            goroutine 1 gp=0x140000041c0 m=2 mp=0x14000068808 [running]:
            panic({0x102662840?, 0x10271b320?})
                /Users/matloob/devgo/src/runtime/panic.go:806 +0x154 fp=0x140000bfb60 sp=0x140000bfab0 pc=0x1025be674
            runtime.panicmem(...)
                /Users/matloob/devgo/src/runtime/panic.go:262
            runtime.sigpanic()
                /Users/matloob/devgo/src/runtime/signal_unix.go:925 +0x300 fp=0x140000bfbc0 sp=0x140000bfb60 pc=0x1025c0040
            main.run({0x16d8a35e0?, 0x140000041c0?})
                /var/folders/k3/3s_zz9nx1ms089s9vjb70xw8004_sl/T/cmd-go-test-1594387389/tmpdir235808967/build_trimpath_cgo2833802440/gopath/src/list-dwarf/list-dwarf.go:54 +0x2b4 fp=0x140000bfec0 sp=0x140000bfbd0 pc=0x102620ee4
            main.main()
                /var/folders/k3/3s_zz9nx1ms089s9vjb70xw8004_sl/T/cmd-go-test-1594387389/tmpdir235808967/build_trimpath_cgo2833802440/gopath/src/list-dwarf/list-dwarf.go:13 +0x3c fp=0x140000bff40 sp=0x140000bfec0 pc=0x102620b5c
            runtime.main()
                /Users/matloob/devgo/src/runtime/proc.go:283 +0x284 fp=0x140000bffd0 sp=0x140000bff40 pc=0x10258ed94
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x140000bffd0 sp=0x140000bffd0 pc=0x1025c4e54

            goroutine 2 gp=0x14000004700 m=nil [force gc (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000062f90 sp=0x14000062f70 pc=0x1025bea58
            runtime.goparkunlock(...)
                /Users/matloob/devgo/src/runtime/proc.go:441
            runtime.forcegchelper()
                /Users/matloob/devgo/src/runtime/proc.go:348 +0xb8 fp=0x14000062fd0 sp=0x14000062f90 pc=0x10258f0e8
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x14000062fd0 sp=0x14000062fd0 pc=0x1025c4e54
            created by runtime.init.7 in goroutine 1
                /Users/matloob/devgo/src/runtime/proc.go:336 +0x24

            goroutine 17 gp=0x14000082380 m=nil [GC sweep wait]:
            runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400005e760 sp=0x1400005e740 pc=0x1025bea58
            runtime.goparkunlock(...)
                /Users/matloob/devgo/src/runtime/proc.go:441
            runtime.bgsweep(0x1400008e000)
                /Users/matloob/devgo/src/runtime/mgcsweep.go:316 +0x108 fp=0x1400005e7b0 sp=0x1400005e760 pc=0x10257b718
            runtime.gcenable.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:204 +0x28 fp=0x1400005e7d0 sp=0x1400005e7b0 pc=0x10256f818
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400005e7d0 sp=0x1400005e7d0 pc=0x1025c4e54
            created by runtime.gcenable in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:204 +0x6c

            goroutine 18 gp=0x14000082540 m=nil [GC scavenge wait]:
            runtime.gopark(0x10000?, 0x10264c890?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400005ef60 sp=0x1400005ef40 pc=0x1025bea58
            runtime.goparkunlock(...)
                /Users/matloob/devgo/src/runtime/proc.go:441
            runtime.(*scavengerState).park(0x102720a00)
                /Users/matloob/devgo/src/runtime/mgcscavenge.go:425 +0x5c fp=0x1400005ef90 sp=0x1400005ef60 pc=0x1025791bc
            runtime.bgscavenge(0x1400008e000)
                /Users/matloob/devgo/src/runtime/mgcscavenge.go:658 +0xac fp=0x1400005efb0 sp=0x1400005ef90 pc=0x10257975c
            runtime.gcenable.gowrap2()
                /Users/matloob/devgo/src/runtime/mgc.go:205 +0x28 fp=0x1400005efd0 sp=0x1400005efb0 pc=0x10256f7b8
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400005efd0 sp=0x1400005efd0 pc=0x1025c4e54
            created by runtime.gcenable in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:205 +0xac

            goroutine 3 gp=0x14000004fc0 m=nil [finalizer wait]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000063590 sp=0x14000063570 pc=0x1025bea58
            runtime.runfinq()
                /Users/matloob/devgo/src/runtime/mfinal.go:196 +0x108 fp=0x140000637d0 sp=0x14000063590 pc=0x10256e818
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x140000637d0 sp=0x140000637d0 pc=0x1025c4e54
            created by runtime.createfing in goroutine 1
                /Users/matloob/devgo/src/runtime/mfinal.go:166 +0x80

            goroutine 19 gp=0x14000082700 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400005f710 sp=0x1400005f6f0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400005f7b0 sp=0x1400005f710 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400005f7d0 sp=0x1400005f7b0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400005f7d0 sp=0x1400005f7d0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 20 gp=0x140000828c0 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400005ff10 sp=0x1400005fef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400005ffb0 sp=0x1400005ff10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400005ffd0 sp=0x1400005ffb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400005ffd0 sp=0x1400005ffd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 21 gp=0x14000082a80 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000060710 sp=0x140000606f0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x140000607b0 sp=0x14000060710 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x140000607d0 sp=0x140000607b0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x140000607d0 sp=0x140000607d0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 22 gp=0x14000082c40 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000060f10 sp=0x14000060ef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x14000060fb0 sp=0x14000060f10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x14000060fd0 sp=0x14000060fb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x14000060fd0 sp=0x14000060fd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 23 gp=0x14000082e00 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000061710 sp=0x140000616f0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x140000617b0 sp=0x14000061710 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x140000617d0 sp=0x140000617b0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x140000617d0 sp=0x140000617d0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 24 gp=0x14000082fc0 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000061f10 sp=0x14000061ef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x14000061fb0 sp=0x14000061f10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x14000061fd0 sp=0x14000061fb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x14000061fd0 sp=0x14000061fd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 25 gp=0x14000083180 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400045c710 sp=0x1400045c6f0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400045c7b0 sp=0x1400045c710 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400045c7d0 sp=0x1400045c7b0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400045c7d0 sp=0x1400045c7d0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 26 gp=0x14000083340 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400045cf10 sp=0x1400045cef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400045cfb0 sp=0x1400045cf10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400045cfd0 sp=0x1400045cfb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400045cfd0 sp=0x1400045cfd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 27 gp=0x14000083500 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400045d710 sp=0x1400045d6f0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400045d7b0 sp=0x1400045d710 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400045d7d0 sp=0x1400045d7b0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400045d7d0 sp=0x1400045d7d0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 28 gp=0x140000836c0 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400045df10 sp=0x1400045def0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400045dfb0 sp=0x1400045df10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400045dfd0 sp=0x1400045dfb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400045dfd0 sp=0x1400045dfd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 29 gp=0x14000083880 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400045e710 sp=0x1400045e6f0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400045e7b0 sp=0x1400045e710 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400045e7d0 sp=0x1400045e7b0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400045e7d0 sp=0x1400045e7d0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 30 gp=0x14000083a40 m=nil [GC worker (idle)]:
            runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400045ef10 sp=0x1400045eef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400045efb0 sp=0x1400045ef10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400045efd0 sp=0x1400045efb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400045efd0 sp=0x1400045efd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 31 gp=0x14000083c00 m=nil [GC worker (idle)]:
            runtime.gopark(0x6395985065fe?, 0x0?, 0x0?, 0x0?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400050cf10 sp=0x1400050cef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400050cfb0 sp=0x1400050cf10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400050cfd0 sp=0x1400050cfb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400050cfd0 sp=0x1400050cfd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 32 gp=0x14000083dc0 m=nil [GC worker (idle)]:
            runtime.gopark(0x102747b80?, 0x1?, 0xbb?, 0x49?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x1400045ff10 sp=0x1400045fef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x1400045ffb0 sp=0x1400045ff10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x1400045ffd0 sp=0x1400045ffb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x1400045ffd0 sp=0x1400045ffd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 33 gp=0x14000460000 m=nil [GC worker (idle)]:
            runtime.gopark(0x639598506557?, 0x1?, 0x21?, 0xaf?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000458710 sp=0x140004586f0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x140004587b0 sp=0x14000458710 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x140004587d0 sp=0x140004587b0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x140004587d0 sp=0x140004587d0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140

            goroutine 34 gp=0x140004601c0 m=nil [GC worker (idle)]:
            runtime.gopark(0x639598506557?, 0x1?, 0x3?, 0x4c?, 0x0?)
                /Users/matloob/devgo/src/runtime/proc.go:435 +0xc8 fp=0x14000458f10 sp=0x14000458ef0 pc=0x1025bea58
            runtime.gcBgMarkWorker(0x14000456000)
                /Users/matloob/devgo/src/runtime/mgc.go:1423 +0xdc fp=0x14000458fb0 sp=0x14000458f10 pc=0x102571a3c
            runtime.gcBgMarkStartWorkers.gowrap1()
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x28 fp=0x14000458fd0 sp=0x14000458fb0 pc=0x102571928
            runtime.goexit({})
                /Users/matloob/devgo/src/runtime/asm_arm64.s:1260 +0x4 fp=0x14000458fd0 sp=0x14000458fd0 pc=0x1025c4e54
            created by runtime.gcBgMarkStartWorkers in goroutine 1
                /Users/matloob/devgo/src/runtime/mgc.go:1339 +0x140
            exit status 2
        script_test.go:163: FAIL: testdata/script/build_trimpath_cgo.txt:13: go run ./list-dwarf hello.exe: exit status 1
FAIL
FAIL    cmd/go  3.667s
FAIL

What did you expect to see?

For the test to pass.

I'm not sure if this is relevant but I'm running on macOS Sequoia 15.1.1.

matloob commented 13 hours ago

(edit: sorry accidentally cc'd than)

gabyhelp commented 13 hours ago

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

gopherbot commented 13 hours ago

Change https://go.dev/cl/633038 mentions this issue: cmd/go/testdata/script: skip EndSequence entries in build_trimpath_cgo

cherrymui commented 12 hours ago

The CL looks reasonable. Thanks.

It is interesting that it fails on your machine. Just curious, what C toolchain version do you have?