golang / go

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

internal/coverage/cfile: TestCoverageApis/emitToDir failures #69878

Open gopherbot opened 1 month ago

gopherbot commented 1 month ago
#!watchflakes
default <- pkg == "internal/coverage/cfile" && test == "TestCoverageApis/emitToDir"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestCoverageApis/emitToDir
=== PAUSE TestCoverageApis/emitToDir
=== CONT  TestCoverageApis/emitToDir
    emitdata_test.go:166: running: /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/build1/harness.exe -tp emitToDir -o /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-edir-y with rdir=/home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-rdir-y and GOCOVERDIR=false
    emitdata_test.go:166: running: /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/build1/harness.exe -tp emitToDir -o /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-edir-x with rdir=/home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-rdir-x and GOCOVERDIR=true
    emitdata_test.go:232: 
        internal error in coverage meta-data tracking:
        encountered bad pkgID: 0  at slot: 3432  fnID: 6  numCtrs: 1
        list of hard-coded runtime package IDs needs revising.
        [see the comment on the 'rtPkgs' var in 
...
        panic: runtime error: slice bounds out of range [:4294975528] with capacity 27058

        goroutine 1 gp=0xc000002380 m=0 mp=0x6f9da0 [running]:
        panic({0x5a08e0?, 0xc00001a198?})
            /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:806 +0x2c5 fp=0xc000076968 sp=0xc0000768b8 pc=0x4edea5
        runtime.goPanicSliceAcap(0x100002028, 0x69b2)
            /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:141 +0xb4 fp=0xc0000769a8 sp=0xc000076968 pc=0x46e214
        internal/coverage/cfile.(*emitState).VisitFuncs(0xc0000de000, 0xc00000e078)
            /home/swarming/.swarming/w/ir/x/w/goroot/src/internal/coverage/cfile/emit.go:478 +0x1154 fp=0xc000076c00 sp=0xc0000769a8 pc=0x5759b4
        internal/coverage/encodecounter.(*CoverageDataWriter).writeCounters(0xc0000120f0, {0x5dc960, 0xc0000de000}, 0xc00009a040)
...
        runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
            /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:435 +0x24a fp=0xc000063e20 sp=0xc000063e00 pc=0x4ee5aa
        runtime.runfinq()
            /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mfinal.go:193 +0x3ce fp=0xc000063fe0 sp=0xc000063e20 pc=0x42bf6e
        runtime.goexit({})
            /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000063fe8 sp=0xc000063fe0 pc=0x4f7fe1
        created by runtime.createfing in goroutine 1
            /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mfinal.go:163 +0x86
    emitdata_test.go:233: running 'harness -tp emitDir': exit status 2
--- FAIL: TestCoverageApis/emitToDir (0.04s)

watchflakes

gopherbot commented 1 month ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "internal/coverage/cfile" && test == "TestCoverageApis/emitToDir"
2024-10-12 03:24 gotip-linux-amd64-longtest-race go@b521ebb5 internal/coverage/cfile.TestCoverageApis/emitToDir (log) === RUN TestCoverageApis/emitToDir === PAUSE TestCoverageApis/emitToDir === CONT TestCoverageApis/emitToDir emitdata_test.go:166: running: /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/build1/harness.exe -tp emitToDir -o /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-edir-y with rdir=/home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-rdir-y and GOCOVERDIR=false emitdata_test.go:166: running: /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/build1/harness.exe -tp emitToDir -o /home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-edir-x with rdir=/home/swarming/.swarming/w/ir/x/t/TestCoverageApis1302527043/001/emitToDir-rdir-x and GOCOVERDIR=true emitdata_test.go:232: internal error in coverage meta-data tracking: encountered bad pkgID: 0 at slot: 3432 fnID: 6 numCtrs: 1 list of hard-coded runtime package IDs needs revising. [see the comment on the 'rtPkgs' var in ... panic: runtime error: slice bounds out of range [:4294975528] with capacity 27058 goroutine 1 gp=0xc000002380 m=0 mp=0x6f9da0 [running]: panic({0x5a08e0?, 0xc00001a198?}) /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:806 +0x2c5 fp=0xc000076968 sp=0xc0000768b8 pc=0x4edea5 runtime.goPanicSliceAcap(0x100002028, 0x69b2) /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:141 +0xb4 fp=0xc0000769a8 sp=0xc000076968 pc=0x46e214 internal/coverage/cfile.(*emitState).VisitFuncs(0xc0000de000, 0xc00000e078) /home/swarming/.swarming/w/ir/x/w/goroot/src/internal/coverage/cfile/emit.go:478 +0x1154 fp=0xc000076c00 sp=0xc0000769a8 pc=0x5759b4 internal/coverage/encodecounter.(*CoverageDataWriter).writeCounters(0xc0000120f0, {0x5dc960, 0xc0000de000}, 0xc00009a040) ... runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:435 +0x24a fp=0xc000063e20 sp=0xc000063e00 pc=0x4ee5aa runtime.runfinq() /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mfinal.go:193 +0x3ce fp=0xc000063fe0 sp=0xc000063e20 pc=0x42bf6e runtime.goexit({}) /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000063fe8 sp=0xc000063fe0 pc=0x4f7fe1 created by runtime.createfing in goroutine 1 /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mfinal.go:163 +0x86 emitdata_test.go:233: running 'harness -tp emitDir': exit status 2 --- FAIL: TestCoverageApis/emitToDir (0.04s)

watchflakes