Closed cockroach-teamcity closed 1 month ago
Looks like we entered near-infinite recursion in *rowsIterator
. Sadly, the interesting frames are elided.
``` === RUN TestTenantRateLimiter test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/33e1d369c27b9c01b2b6009c561815a3/logTestTenantRateLimiter3068297417 test_log_scope.go:79: use -show-logs to present logs inline runtime: goroutine stack exceeds 1000000000-byte limit runtime: sp=0xc04da00430 stack=[0xc04da00000, 0xc06da00000] fatal error: stack overflow runtime stack: runtime.throw({0x6262969?, 0xadf34e0?}) GOROOT/src/runtime/panic.go:1047 +0x5d fp=0x7ff511dfc278 sp=0x7ff511dfc248 pc=0x48fdbd runtime.newstack() GOROOT/src/runtime/stack.go:1103 +0x5cc fp=0x7ff511dfc430 sp=0x7ff511dfc278 pc=0x4aa6ac runtime.morestack() GOROOT/src/runtime/asm_amd64.s:570 +0x8b fp=0x7ff511dfc438 sp=0x7ff511dfc430 pc=0x4c2aeb goroutine 1397990 [running]: runtime.selectgo(0xc04da00480?, 0xc04da00474?, 0x0?, 0x0?, 0x3?, 0x1?) GOROOT/src/runtime/select.go:122 +0x1516 fp=0xc04da00440 sp=0xc04da00438 pc=0x4a3a56 github.com/cockroachdb/cockroach/pkg/sql.(*ieResultChannel).firstResult(0xc023a8b040, {0x7988aa0, 0xc001998090}) github.com/cockroachdb/cockroach/pkg/sql/internal_result_channel.go:123 +0xf9 fp=0xc04da00598 sp=0xc04da00440 pc=0x3ab9ef9 github.com/cockroachdb/cockroach/pkg/sql.(*ieResultChannel).nextResult(0x0?, {0x7988aa0, 0xc001998090}) github.com/cockroachdb/cockroach/pkg/sql/internal_result_channel.go:162 +0xfe fp=0xc04da006b8 sp=0xc04da00598 pc=0x3aba5be github.com/cockroachdb/cockroach/pkg/sql.(*rowsIterator).Next(0xc01027a000, {0x7988aa0?, 0xc001998090?}) github.com/cockroachdb/cockroach/pkg/sql/internal.go:482 +0x21a fp=0xc04da00840 sp=0xc04da006b8 pc=0x3ab21ba github.com/cockroachdb/cockroach/pkg/sql.(*rowsIterator).Next.func2({{0x0, 0x0, 0x0}, 0xc03a0bc058, {0x0, 0x0, 0x0}, {0x0, 0x0}}) github.com/cockroachdb/cockroach/pkg/sql/internal.go:450 +0x26c fp=0xc04da008e0 sp=0xc04da00840 pc=0x3ab268c github.com/cockroachdb/cockroach/pkg/sql.(*rowsIterator).Next(0xc01027a000, {0x7988aa0?, 0xc001998090?}) github.com/cockroachdb/cockroach/pkg/sql/internal.go:486 +0x39f fp=0xc04da00a68 sp=0xc04da008e0 pc=0x3ab233f github.com/cockroachdb/cockroach/pkg/sql.(*rowsIterator).Next.func2({{0x0, 0x0, 0x0}, 0xc03a0bc008, {0x0, 0x0, 0x0}, {0x0, 0x0}}) github.com/cockroachdb/cockroach/pkg/sql/internal.go:450 +0x26c fp=0xc04da00b08 sp=0xc04da00a68 pc=0x3ab268c github.com/cockroachdb/cockroach/pkg/sql.(*rowsIterator).Next(0xc01027a000, {0x7988aa0?, 0xc001998090?}) [...] github.com/cockroachdb/cockroach/pkg/sql.(*rowsIterator).Next(0xc01027a000, {0x7988aa0?, 0xc001998090?}) github.com/cockroachdb/cockroach/pkg/sql/internal.go:486 +0x39f fp=0xc04da06fc0 sp=0xc04da06e38 pc=0x3ab233f ...additional frames elided... created by github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:461 +0x43b ```
But this stack seems to be waiting for a results channel and is related to a job:
```
goroutine 1392680 [select, 1 minutes]:
runtime.gopark(0xc01e6dc978?, 0x3?, 0xd8?, 0x21?, 0xc01e6dc972?)
GOROOT/src/runtime/proc.go:363 +0xd6 fp=0xc02812c7f8 sp=0xc02812c7d8 pc=0x492a16
runtime.selectgo(0xc02812c978, 0xc01e6dc96c, 0x8?, 0x0, 0x0?, 0x1)
GOROOT/src/runtime/select.go:328 +0x7bc fp=0xc02812c938 sp=0xc02812c7f8 pc=0x4a2cfc
github.com/cockroachdb/cockroach/pkg/sql.(*ieResultChannel).firstResult(0xc00bd40040, {0x7988aa0, 0xc00c7083f0})
github.com/cockroachdb/cockroach/pkg/sql/internal_result_channel.go:123 +0xf9 fp=0xc02812ca90 sp=0xc02812c938 pc=0x3ab9ef9
github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).execInternal(0xc0195ef180, {0x79889f8, 0xc0169417c0}, {0x62ad319, 0x19}, 0xc00bd40040, 0x1, 0xc0013d8630, {{{0x6227bf5, 0x4}}, ...}, ...)
github.com/cockroachdb/cockroach/pkg/sql/internal.go:1122 +0x1226 fp=0xc02812d068 sp=0xc02812ca90 pc=0x3ab56a6
github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).ExecEx(0x0?, {0x79889f8, 0xc0169417c0}, {0x62ad319, 0x19}, 0x0?, {{{0x6227bf5, 0x4}}, {0x0, 0x0}, ...}, ...)
github.com/cockroachdb/cockroach/pkg/sql/internal.go:692 +0x195 fp=0xc02812d168 sp=0xc02812d068 pc=0x3ab3bd5
github.com/cockroachdb/cockroach/pkg/jobs.(*Registry).Start.func6.1({0x79889f8, 0xc0169417c0}, {0x79e6520, 0xc0195ef180})
github.com/cockroachdb/cockroach/pkg/jobs/registry.go:1075 +0x245 fp=0xc02812d280 sp=0xc02812d168 pc=0x27d4345
github.com/cockroachdb/cockroach/pkg/sql.(*internalDBWithOverrides).Txn.func1({0x79889f8, 0xc0169417c0}, {0x79e6520?, 0xc0195ef180?})
github.com/cockroachdb/cockroach/pkg/sql/internal.go:1791 +0xb3 fp=0xc02812d2e8 sp=0xc02812d280 pc=0x3ab9b93
github.com/cockroachdb/cockroach/pkg/sql.(*InternalDB).Txn.func1({0x79889f8?, 0xc0169417c0?}, 0x79e8848?)
github.com/cockroachdb/cockroach/pkg/sql/internal.go:1639 +0x31 fp=0xc02812d318 sp=0xc02812d2e8 pc=0x3ab8a31
github.com/cockroachdb/cockroach/pkg/sql.(*InternalDB).txn.func4({0x79889f8, 0xc0169417c0}, 0xc0013d8630)
github.com/cockroachdb/cockroach/pkg/sql/internal.go:1717 +0x3b4 fp=0xc02812d5c0 sp=0xc02812d318 pc=0x3ab9214
github.com/cockroachdb/cockroach/pkg/kv.runTxn.func1({0x79889f8, 0xc0169417c0}, 0xc00e9cb0e0?)
github.com/cockroachdb/cockroach/pkg/kv/db.go:994 +0x2c fp=0xc02812d600 sp=0xc02812d5c0 pc=0x141a06c
github.com/cockroachdb/cockroach/pkg/kv.(*Txn).exec(0xc0013d8630, {0x79889f8, 0xc0169417c0}, 0xc02812d960)
github.com/cockroachdb/cockroach/pkg/kv/txn.go:928 +0xae fp=0xc02812d908 sp=0xc02812d600 pc=0x142266e
github.com/cockroachdb/cockroach/pkg/kv.runTxn({0x79889f8, 0xc0169417c0}, 0xc0169417c0?, 0x0?)
github.com/cockroachdb/cockroach/pkg/kv/db.go:993 +0x6b fp=0xc02812d9a0 sp=0xc02812d908 pc=0x1419eeb
github.com/cockroachdb/cockroach/pkg/kv.(*DB).TxnWithAdmissionControl(0x7ff53f9c21d8?, {0x79889f8, 0xc0169417c0}, 0xc8abfc0?, 0xc0?, 0x0?, 0x0?)
github.com/cockroachdb/cockroach/pkg/kv/db.go:956 +0xa7 fp=0xc02812d9f0 sp=0xc02812d9a0 pc=0x1419c47
github.com/cockroachdb/cockroach/pkg/kv.(*DB).Txn(0x463547?, {0x79889f8?, 0xc0169417c0?}, 0xc00fc67a01?)
github.com/cockroachdb/cockroach/pkg/kv/db.go:931 +0x2d fp=0xc02812da28 sp=0xc02812d9f0 pc=0x1419b4d
github.com/cockroachdb/cockroach/pkg/kv.(*DB).Txn-fm({0x79889f8?, 0xc0169417c0?}, 0x79889f8?)
and there are a few more stacks in SQL, test output attached.
kv/kvserver.TestTenantRateLimiter failed with artifacts on release-23.1.26-rc @ 53c2718ea13bfe632da68d25c64182fdf9648d80:
Parameters:
TAGS=bazel,gss
Help
See also: How To Investigate a Go Test Failure (internal)
Same failure on other branches
- #129612 kv/kvserver: TestTenantRateLimiter failed [A-testing C-bug C-test-failure O-robot T-kv branch-release-24.1.4-rc] - #127697 kv/kvserver: TestTenantRateLimiter failed [A-testing C-bug C-test-failure O-robot P-3 T-kv branch-release-24.1]
/cc @cockroachdb/kv
This test on roachdash | Improve this report!
Jira issue: CRDB-41805