Skip to content

cmd/internal/testdir: Test/fixedbugs/issue20174.go failures #71564

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

Closed
gopherbot opened this issue Feb 5, 2025 · 9 comments
Closed

cmd/internal/testdir: Test/fixedbugs/issue20174.go failures #71564

gopherbot opened this issue Feb 5, 2025 · 9 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@gopherbot
Copy link
Contributor

gopherbot commented Feb 5, 2025

#!watchflakes
default <- `panic: inconsistent reference counts`

Issue created automatically to collect these failures.

Example (log):

=== RUN   Test/fixedbugs/issue20174.go
=== PAUSE Test/fixedbugs/issue20174.go
=== CONT  Test/fixedbugs/issue20174.go
    testdir_test.go:147: exit status 2
        panic: inconsistent reference counts
        
        goroutine 17 gp=0xc000204380 m=4 mp=0xc000080008 [running]:
        panic({0x669460?, 0x86a5c0?})
        	runtime/panic.go:806 +0x188 fp=0xc000100e58 sp=0xc000100d98 pc=0x8f538
        os.(*Process).handleTransientAcquire(0x0?)
...
        runtime.selectgo(0xc000053798, 0xc000053780, 0x0?, 0x0, 0x0?, 0x1)
        	runtime/select.go:351 +0x7d4 fp=0xc000053728 sp=0xc0000535d8 pc=0x6a964
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1e8 fp=0xc0000537c0 sp=0xc000053728 pc=0x89c48
        runtime.goexit({})
        	runtime/asm_ppc64x.s:1022 +0x4 fp=0xc0000537c0 sp=0xc0000537c0 pc=0x97684
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0x118
        
--- FAIL: Test/fixedbugs/issue20174.go (1.60s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 5, 2025
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/internal/testdir" && test == "Test/fixedbugs/issue20174.go"
2025-02-05 01:20 gotip-linux-ppc64le_power9 go@a1ea78c4 cmd/internal/testdir.Test/fixedbugs/issue20174.go (log)
=== RUN   Test/fixedbugs/issue20174.go
=== PAUSE Test/fixedbugs/issue20174.go
=== CONT  Test/fixedbugs/issue20174.go
    testdir_test.go:147: exit status 2
        panic: inconsistent reference counts
        
        goroutine 17 gp=0xc000204380 m=4 mp=0xc000080008 [running]:
        panic({0x669460?, 0x86a5c0?})
        	runtime/panic.go:806 +0x188 fp=0xc000100e58 sp=0xc000100d98 pc=0x8f538
        os.(*Process).handleTransientAcquire(0x0?)
...
        runtime.selectgo(0xc000053798, 0xc000053780, 0x0?, 0x0, 0x0?, 0x1)
        	runtime/select.go:351 +0x7d4 fp=0xc000053728 sp=0xc0000535d8 pc=0x6a964
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1e8 fp=0xc0000537c0 sp=0xc000053728 pc=0x89c48
        runtime.goexit({})
        	runtime/asm_ppc64x.s:1022 +0x4 fp=0xc0000537c0 sp=0xc0000537c0 pc=0x97684
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0x118
        
--- FAIL: Test/fixedbugs/issue20174.go (1.60s)

watchflakes

@gopherbot
Copy link
Contributor Author

Change https://go.dev/cl/646576 mentions this issue: os: avoid inconsistent reference counts panic

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- `panic: inconsistent reference counts`
2025-02-05 05:26 gotip-linux-riscv64 go@842e4b52 cmd/internal/testdir.Test/fixedbugs/issue66663.go (log)
=== RUN   Test/fixedbugs/issue66663.go
=== PAUSE Test/fixedbugs/issue66663.go
=== CONT  Test/fixedbugs/issue66663.go
    testdir_test.go:147: exit status 2
        panic: inconsistent reference counts
        
        goroutine 7 gp=0x3d34001a40 m=3 mp=0x3d34055008 [running]:
        panic({0x5f9380?, 0x7f7340?})
        	runtime/panic.go:806 +0x13c fp=0x3d340516f8 sp=0x3d34051650 pc=0x8248c
        os.(*Process).handleTransientAcquire(0x0?)
...
        runtime.selectgo(0x3d34050fb0, 0x3d34050f98, 0x0?, 0x0, 0x0?, 0x1)
        	runtime/select.go:351 +0x6f8 fp=0x3d34050f58 sp=0x3d34050e38 pc=0x61e10
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1c8 fp=0x3d34050fd8 sp=0x3d34050f58 pc=0x7d880
        runtime.goexit({})
        	runtime/asm_riscv64.s:539 +0x4 fp=0x3d34050fd8 sp=0x3d34050fd8 pc=0x891cc
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0xdc
        
--- FAIL: Test/fixedbugs/issue66663.go (0.48s)

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- `panic: inconsistent reference counts`
2025-02-05 17:15 x_tools-gotip-linux-amd64-race tools@8e4c8418 go@b45c7d54 x/tools/gopls/internal/test/integration/misc.TestRenamePackage_TestVariant/default [ABORT] (log)
=== RUN   TestRenamePackage_TestVariant/default
panic: inconsistent reference counts

goroutine 86470 [running]:
os.(*Process).handleTransientAcquire(0xc0105db470)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:184 +0xeb
os.(*Process).pidfdSendSignal(0xc0105db470, 0x2)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/pidfd_linux.go:122 +0x4a
os.(*Process).signal(0xc0105db470, {0x1eac6f0, 0x26e7990})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec_unix.go:87 +0x86
...
golang.org/x/tools/go/packages.goListDriver(0xc007e05dc8, 0xc0105d29a0, {0xc00a0a3810, 0x42}, {0xc0105b36c0, 0x1, 0xc01051e960?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1667794/go/packages/golist.go:218 +0xda5
golang.org/x/tools/go/packages.defaultDriver.func1(0xc007e05dc8, {0xc0105b36c0, 0x1, 0x1})
	/home/swarming/.swarming/w/ir/x/w/targetrepo1667794/go/packages/packages.go:343 +0x85
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1667794/go/packages/packages.go:390 +0xa6
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.10.0/errgroup/errgroup.go:78 +0x92
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 86469
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.10.0/errgroup/errgroup.go:75 +0x125
2025-02-05 20:06 gotip-linux-loong64 go@b45c7d54 cmd/internal/testdir.Test/typeparam/issue49516.go (log)
=== RUN   Test/typeparam/issue49516.go
=== PAUSE Test/typeparam/issue49516.go
=== CONT  Test/typeparam/issue49516.go
    testdir_test.go:147: exit status 2
        panic: inconsistent reference counts
        
        goroutine 21 gp=0xc00009ae00 m=2 mp=0xc000070808 [running]:
        panic({0x6294c0?, 0x826340?})
        	runtime/panic.go:806 +0x130 fp=0xc000067ef8 sp=0xc000067e50 pc=0x8a1c0
        os.(*Process).handleTransientAcquire(0x0?)
...
        runtime.selectgo(0xc0000677b0, 0xc000067798, 0x0?, 0x0, 0x0?, 0x1)
        	runtime/select.go:351 +0x714 fp=0xc000067758 sp=0xc000067638 pc=0x66f84
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1c0 fp=0xc0000677d8 sp=0xc000067758 pc=0x84c90
        runtime.goexit({})
        	runtime/asm_loong64.s:706 +0x4 fp=0xc0000677d8 sp=0xc0000677d8 pc=0x92744
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0xd8
        
--- FAIL: Test/typeparam/issue49516.go (0.28s)

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- `panic: inconsistent reference counts`
2025-02-06 17:05 gotip-linux-ppc64_power8 go@cd595be6 cmd/internal/testdir.Test/typeparam/issue51836.go (log)
=== RUN   Test/typeparam/issue51836.go
=== PAUSE Test/typeparam/issue51836.go
=== CONT  Test/typeparam/issue51836.go
    testdir_test.go:147: exit status 2
        panic: inconsistent reference counts
        
        goroutine 17 gp=0xc000202000 m=2 mp=0xc000056808 [running]:
        panic({0x6694e0?, 0x86a440?})
        	runtime/panic.go:806 +0x18c fp=0xc00019ae58 sp=0xc00019ad98 pc=0x8da1c
        os.(*Process).handleTransientAcquire(0x0?)
...
        runtime.selectgo(0xc000080f98, 0xc000053780, 0x0?, 0x0, 0x0?, 0x1)
        	runtime/select.go:351 +0x7d4 fp=0xc000080f28 sp=0xc000080dd8 pc=0x693b4
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1bc fp=0xc000080fc0 sp=0xc000080f28 pc=0x885ec
        runtime.goexit({})
        	runtime/asm_ppc64x.s:1022 +0x4 fp=0xc000080fc0 sp=0xc000080fc0 pc=0x95874
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0x118
        
--- FAIL: Test/typeparam/issue51836.go (0.25s)

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- `panic: inconsistent reference counts`
2025-02-06 21:36 x_tools-gotip-linux-arm64-race tools@8baeceab go@372f2d80 x/tools/gopls/internal/test/integration/misc.TestRenamePackage_TestVariant/default [ABORT] (log)
=== RUN   TestRenamePackage_TestVariant/default
panic: inconsistent reference counts

goroutine 90196 [running]:
os.(*Process).handleTransientAcquire(0xc0157aac00)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:184 +0xd8
os.(*Process).pidfdSendSignal(0xc0157aac00, 0x2)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/pidfd_linux.go:122 +0x38
os.(*Process).signal(0xc0157aac00, {0x1708268, 0x1f30a90})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec_unix.go:87 +0x78
...
golang.org/x/tools/go/packages.goListDriver(0xc0070c4ee8, 0xc00b354220, {0xc00ec39c20, 0x43}, {0xc00942d150, 0x1, 0xc00c4e2780?})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2733944947/go/packages/golist.go:218 +0xaac
golang.org/x/tools/go/packages.defaultDriver.func1(0xc0070c4ee8, {0xc00942d150, 0x1, 0x1})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2733944947/go/packages/packages.go:343 +0x68
golang.org/x/tools/go/packages.callDriverOnChunks.func1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2733944947/go/packages/packages.go:390 +0x94
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.10.0/errgroup/errgroup.go:78 +0x80
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 90195
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/sync@v0.10.0/errgroup/errgroup.go:75 +0x110

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- `panic: inconsistent reference counts`
2025-02-06 22:13 gotip-linux-386 go@372f2d80 cmd/internal/testdir.Test/fixedbugs/issue19699.go (log)
=== RUN   Test/fixedbugs/issue19699.go
=== PAUSE Test/fixedbugs/issue19699.go
=== CONT  Test/fixedbugs/issue19699.go
    testdir_test.go:147: exit status 2
        panic: inconsistent reference counts
        
        goroutine 21 gp=0x9d20a28 m=3 mp=0x9c5b008 [running]:
        panic({0x86e64e0, 0x88a5458})
        	runtime/panic.go:818 +0x144 fp=0x9c53f5c sp=0x9c53f08 pc=0x80c3094
        os.(*Process).handleTransientAcquire(0x9d64180)
...
        runtime.selectgo(0x9c537d8, 0x9c537c0, 0x0, 0x0, 0x2, 0x1)
        	runtime/select.go:351 +0xc30 fp=0x9c5379c sp=0x9c536b8 pc=0x80a01d0
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1a4 fp=0x9c537f0 sp=0x9c5379c pc=0x80bdd04
        runtime.goexit({})
        	runtime/asm_386.s:1393 +0x1 fp=0x9c537f4 sp=0x9c537f0 pc=0x80c9551
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0xe3
        
--- FAIL: Test/fixedbugs/issue19699.go (0.16s)
2025-02-06 22:13 gotip-linux-loong64 go@372f2d80 cmd/internal/testdir.Test/ken/mfunc.go (log)
=== RUN   Test/ken/mfunc.go
=== PAUSE Test/ken/mfunc.go
=== CONT  Test/ken/mfunc.go
    testdir_test.go:147: exit status 2
        panic: inconsistent reference counts
        
        goroutine 5 gp=0xc000003340 m=3 mp=0xc000071008 [running]:
        panic({0x629820?, 0x827780?})
        	runtime/panic.go:818 +0x130 fp=0xc00006c6f8 sp=0xc00006c650 pc=0x8a230
        os.(*Process).handleTransientAcquire(0x0?)
...
        runtime.selectgo(0xc0000677b0, 0xc000067798, 0x0?, 0x0, 0x0?, 0x1)
        	runtime/select.go:351 +0x714 fp=0xc000067758 sp=0xc000067638 pc=0x66ff4
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1c0 fp=0xc0000677d8 sp=0xc000067758 pc=0x84d00
        runtime.goexit({})
        	runtime/asm_loong64.s:706 +0x4 fp=0xc0000677d8 sp=0xc0000677d8 pc=0x927b4
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0xd8
        
--- FAIL: Test/ken/mfunc.go (0.32s)

watchflakes

@gopherbot
Copy link
Contributor Author

Change https://go.dev/cl/638577 mentions this issue: os: don't store reference count in Process.state

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- `panic: inconsistent reference counts`
2025-02-07 01:08 gotip-linux-loong64 go@290ec2d9 cmd/internal/testdir.Test/syntax/semi4.go (log)
=== RUN   Test/syntax/semi4.go
=== PAUSE Test/syntax/semi4.go
=== CONT  Test/syntax/semi4.go
    testdir_test.go:1193: gc output:
        /home/swarming/.swarming/w/ir/x/w/goroot/test/syntax/semi4.go:11: syntax error: unexpected {, expected for loop condition
        panic: inconsistent reference counts
        
        goroutine 17 gp=0xc000282380 m=2 mp=0xc000070808 [running]:
        panic({0x629820?, 0x827780?})
        	runtime/panic.go:818 +0x130 fp=0xc0000666f8 sp=0xc000066650 pc=0x8a230
...
        panic: inconsistent reference counts
        goroutine 17 gp=0xc000282380 m=2 mp=0xc000070808 [running]:
        panic({0x629820?, 0x827780?})
        	runtime/panic.go:818 +0x130 fp=0xc0000666f8 sp=0xc000066650 pc=0x8a230
        os.(*Process).handleTransientAcquire(0x0?)
        	os/exec.go:184 +0x168 fp=0xc000066710 sp=0xc0000666f8 pc=0x117308
        os.(*Process).pidfdSendSignal(0xc00010c9c0, 0x11)
        	os/pidfd_linux.go:122 +0x34 fp=0xc000066778 sp=0xc000066710 pc=0x11d754
        os.(*Process).signal(0x0?, {0x82ddd8?, 0x83a588?})
        	os/exec_unix.go:87 +0x40 fp=0xc000066798 sp=0xc000066778 pc=0x118280
...
        runtime.selectgo(0xc00006d7b0, 0xc00006d798, 0x0?, 0x0, 0x0?, 0x1)
        	runtime/select.go:351 +0x714 fp=0xc00006d758 sp=0xc00006d638 pc=0x66ff4
        runtime.ensureSigM.func1()
        	runtime/signal_unix.go:1085 +0x1c0 fp=0xc00006d7d8 sp=0xc00006d758 pc=0x84d00
        runtime.goexit({})
        	runtime/asm_loong64.s:706 +0x4 fp=0xc00006d7d8 sp=0xc00006d7d8 pc=0x927b4
        created by runtime.ensureSigM in goroutine 1
        	runtime/signal_unix.go:1068 +0xd8
        
--- FAIL: Test/syntax/semi4.go (0.13s)

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Archived in project
Development

No branches or pull requests

1 participant