Skip to content
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

sentry: conn_executor.go:890: panic: × (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1 | github.com/cockroachdb/cockroach/pkg/sql/conn_exec... #105056

Closed
cockroach-teamcity opened this issue Jun 16, 2023 · 1 comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report.

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Jun 16, 2023

This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.

Sentry link: https://cockroach-labs.sentry.io/issues/4255862934/?referrer=webhooks_plugin

Panic message:

conn_executor.go:890: panic: ×
(1) attached stack trace
-- stack trace:
| github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1
| github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:890
| [...repeated from below...]
Wraps: (2) while executing: SELECT crdb_internal.pretty_key(_, _) AS , crdb_internal.pretty_key(, ) AS , , _ FROM _ WHERE ('' <= ) AND ( <= '')
Wraps: (3) attached stack trace
-- stack trace:
| github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1
| github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:890
| runtime.gopanic
| GOROOT/src/runtime/panic.go:884
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:58
| runtime.gopanic
| GOROOT/src/runtime/panic.go:884
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:58
| runtime.gopanic
| GOROOT/src/runtime/panic.go:884
| github.com/cockroachdb/cockroach/pkg/roachpb.assertValid
| github.com/cockroachdb/cockroach/pkg/roachpb/pkg/roachpb/tenant.go:99
| github.com/cockroachdb/cockroach/pkg/roachpb.MustMakeTenantID
| github.com/cockroachdb/cockroach/pkg/roachpb/pkg/roachpb/tenant.go:52
| github.com/cockroachdb/cockroach/pkg/keys.DecodeTenantPrefix
| github.com/cockroachdb/cockroach/pkg/keys/sql.go:43
| github.com/cockroachdb/cockroach/pkg/keys.formatTenantKey
| github.com/cockroachdb/cockroach/pkg/keys/printer.go:652
| github.com/cockroachdb/cockroach/pkg/keys.safeFormatInternal.func1
| github.com/cockroachdb/cockroach/pkg/keys/printer.go:693
| github.com/cockroachdb/cockroach/pkg/keys.safeFormatInternal
| github.com/cockroachdb/cockroach/pkg/keys/printer.go:749
| github.com/cockroachdb/cockroach/pkg/keys.PrettyPrint
| github.com/cockroachdb/cockroach/pkg/keys/printer.go:599
| github.com/cockroachdb/cockroach/pkg/roachpb.Key.StringWithDirs
| github.com/cockroachdb/cockroach/pkg/roachpb/pkg/roachpb/data.go:244
| github.com/cockroachdb/cockroach/pkg/sql/catalog/catalogkeys.PrettyKey
| github.com/cockroachdb/cockroach/pkg/sql/catalog/catalogkeys/keys.go:171
| github.com/cockroachdb/cockroach/pkg/sql/sem/builtins.glob..func258
| github.com/cockroachdb/cockroach/pkg/sql/sem/builtins/builtins.go:5518
| github.com/cockroachdb/cockroach/pkg/sql/colexec.(*defaultBuiltinFuncOperator).Next.func1
| github.com/cockroachdb/cockroach/pkg/sql/colexec/builtin_funcs.go:77
| github.com/cockroachdb/cockroach/pkg/sql/colmem.(*Allocator).PerformOperation
| github.com/cockroachdb/cockroach/pkg/sql/colmem/allocator.go:460
| github.com/cockroachdb/cockroach/pkg/sql/colexec.(*defaultBuiltinFuncOperator).Next
| github.com/cockroachdb/cockroach/pkg/sql/colexec/builtin_funcs.go:54
| github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase.(*simpleProjectOp).Next
| github.com/cockroachdb/cockroach/pkg/sql/colexec/colexecbase/simple_project.go:124
| github.com/cockroachdb/cockroach/pkg/sql/colflow.(*batchInfoCollector).next
| github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:118
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92
| github.com/cockroachdb/cockroach/pkg/sql/colflow.(*batchInfoCollector).Next
| github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:126
| github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).nextAdapter
| github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:251
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError
| github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92
| github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).next
| github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:255
| github.com/cockroachdb/cockroach/pkg/sql/colflow.(*BatchFlowCoordinator).Run
| github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:293
| github.com/cockroachdb/cockroach/pkg/sql/colflow.(*vectorizedFlow).Run
| github.com/cockroachdb/cockroach/pkg/sql/colflow/vectorized_flow.go:326
| github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).Run
| github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:902
| github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRun
| github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1913
| github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRunAll.func3
| github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1645
| github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRunAll
| github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1648
Wraps: (4) panic: ×
Error types: (1) *withstack.withStack (2) *safedetails.withSafeDetails (3) *withstack.withStack (4) *errutil.leafError
-- report composition:
*errutil.leafError: panic: ×
conn_executor.go:890: *withstack.withStack (top exception)
*safedetails.withSafeDetails: while executing: SELECT crdb_internal.pretty_key(
, _) AS , crdb_internal.pretty_key(, _) AS , , _ FROM _ WHERE ('' <= ) AND ( <= '')
conn_executor.go:890: *withstack.withStack (1)
(check the extra data payloads)

Stacktrace (expand for inline code snippets):

r := recover()
h.ex.closeWrapper(ctx, r)
}(ctx, h)
in pkg/sql.(*Server).ServeConn.func1
GOROOT/src/runtime/panic.go#L883-L885 in runtime.gopanic
if !shouldCatchPanic(panicEmittedFrom) {
panic(panicObj)
}
in pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1
GOROOT/src/runtime/panic.go#L883-L885 in runtime.gopanic
if !shouldCatchPanic(panicEmittedFrom) {
panic(panicObj)
}
in pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1
GOROOT/src/runtime/panic.go#L883-L885 in runtime.gopanic
https://github.com/cockroachdb/cockroach/blob/ef8d5da59d22e333087d51c8b34bfaba39b5b7a4/pkg/roachpb/pkg/roachpb/tenant.go#L98-L100 in pkg/roachpb.assertValid
https://github.com/cockroachdb/cockroach/blob/ef8d5da59d22e333087d51c8b34bfaba39b5b7a4/pkg/roachpb/pkg/roachpb/tenant.go#L51-L53 in pkg/roachpb.MustMakeTenantID
}
return rem, roachpb.MustMakeTenantID(tenID), nil
}
in pkg/keys.DecodeTenantPrefix
) {
key, tID, err := DecodeTenantPrefix(key)
if err != nil {
in pkg/keys.formatTenantKey
b.Print(e.Name)
e.sfFunc(&buf, valDirs, key, quoteRawKeys)
b.Print(buf.RedactableString())
in pkg/keys.safeFormatInternal.func1
}
helper(&b, key)
return b.RedactableString()
in pkg/keys.safeFormatInternal
func PrettyPrint(valDirs []encoding.Direction, key roachpb.Key) string {
return safeFormatInternal(valDirs, key, QuoteRaw).StripMarkers()
}
in pkg/keys.PrettyPrint
https://github.com/cockroachdb/cockroach/blob/ef8d5da59d22e333087d51c8b34bfaba39b5b7a4/pkg/roachpb/pkg/roachpb/data.go#L243-L245 in pkg/roachpb.Key.StringWithDirs
var buf redact.StringBuilder
key.StringWithDirs(&buf, valDirs)
p := buf.String()
in pkg/sql/catalog/catalogkeys.PrettyKey
Fn: func(_ context.Context, _ *eval.Context, args tree.Datums) (tree.Datum, error) {
return tree.NewDString(catalogkeys.PrettyKey(
nil, /* valDirs */
in pkg/sql/sem/builtins.glob..func258
res, err = b.funcExpr.ResolvedOverload().
Fn.(eval.FnOverload)(b.Ctx, b.evalCtx, b.row)
if err != nil {
in pkg/sql/colexec.(*defaultBuiltinFuncOperator).Next.func1
// caused by this approach is ok.
operation()
after := getVecsMemoryFootprint(destVecs)
in pkg/sql/colmem.(*Allocator).PerformOperation
output := batch.ColVec(b.outputIdx)
b.allocator.PerformOperation(
[]coldata.Vec{output},
in pkg/sql/colexec.(*defaultBuiltinFuncOperator).Next
func (d *simpleProjectOp) Next() coldata.Batch {
batch := d.Input.Next()
if batch.Length() == 0 {
in pkg/sql/colexec/colexecbase.(*simpleProjectOp).Next
func (bic *batchInfoCollector) next() {
bic.batch = bic.Input.Next()
}
in pkg/sql/colflow.(*batchInfoCollector).next
}()
operation()
return retErr
in pkg/sql/colexecerror.CatchVectorizedRuntimeError
// execution time (e.g. in the statement bundle).
err := colexecerror.CatchVectorizedRuntimeError(bic.next)
bic.stopwatch.Stop()
in pkg/sql/colflow.(*batchInfoCollector).Next
func (f *BatchFlowCoordinator) nextAdapter() {
f.batch = f.input.Root.Next()
}
in pkg/sql/colflow.(*BatchFlowCoordinator).nextAdapter
}()
operation()
return retErr
in pkg/sql/colexecerror.CatchVectorizedRuntimeError
func (f *BatchFlowCoordinator) next() error {
return colexecerror.CatchVectorizedRuntimeError(f.nextAdapter)
}
in pkg/sql/colflow.(*BatchFlowCoordinator).next
for status == execinfra.NeedMoreRows {
err := f.next()
if err != nil {
in pkg/sql/colflow.(*BatchFlowCoordinator).Run
log.VEvent(ctx, 1, "running the batch flow coordinator in the flow's goroutine")
f.batchFlowCoordinator.Run(ctx)
}
in pkg/sql/colflow.(*vectorizedFlow).Run
noWait := planCtx.getPortalPauseInfo() != nil
flow.Run(ctx, noWait)
}
in pkg/sql.(*DistSQLPlanner).Run
recv.expectedRowsRead = int64(physPlan.TotalEstimatedScannedRows)
dsp.Run(ctx, planCtx, txn, physPlan, recv, evalCtx, finishedSetupFn)
}
in pkg/sql.(*DistSQLPlanner).PlanAndRun
defer cleanup()
dsp.PlanAndRun(
ctx, evalCtx, planCtx, planner.txn, planner.curPlan.main, recv, finishedSetupFn,
in pkg/sql.(*DistSQLPlanner).PlanAndRunAll.func3
)
}()
in pkg/sql.(*DistSQLPlanner).PlanAndRunAll

pkg/sql/conn_executor.go in pkg/sql.(*Server).ServeConn.func1 at line 890
GOROOT/src/runtime/panic.go in runtime.gopanic at line 884
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1 at line 58
GOROOT/src/runtime/panic.go in runtime.gopanic at line 884
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1 at line 58
GOROOT/src/runtime/panic.go in runtime.gopanic at line 884
pkg/roachpb/pkg/roachpb/tenant.go in pkg/roachpb.assertValid at line 99
pkg/roachpb/pkg/roachpb/tenant.go in pkg/roachpb.MustMakeTenantID at line 52
pkg/keys/sql.go in pkg/keys.DecodeTenantPrefix at line 43
pkg/keys/printer.go in pkg/keys.formatTenantKey at line 652
pkg/keys/printer.go in pkg/keys.safeFormatInternal.func1 at line 693
pkg/keys/printer.go in pkg/keys.safeFormatInternal at line 749
pkg/keys/printer.go in pkg/keys.PrettyPrint at line 599
pkg/roachpb/pkg/roachpb/data.go in pkg/roachpb.Key.StringWithDirs at line 244
pkg/sql/catalog/catalogkeys/keys.go in pkg/sql/catalog/catalogkeys.PrettyKey at line 171
pkg/sql/sem/builtins/builtins.go in pkg/sql/sem/builtins.glob..func258 at line 5518
pkg/sql/colexec/builtin_funcs.go in pkg/sql/colexec.(*defaultBuiltinFuncOperator).Next.func1 at line 77
pkg/sql/colmem/allocator.go in pkg/sql/colmem.(*Allocator).PerformOperation at line 460
pkg/sql/colexec/builtin_funcs.go in pkg/sql/colexec.(*defaultBuiltinFuncOperator).Next at line 54
pkg/sql/colexec/colexecbase/simple_project.go in pkg/sql/colexec/colexecbase.(*simpleProjectOp).Next at line 124
pkg/sql/colflow/stats.go in pkg/sql/colflow.(*batchInfoCollector).next at line 118
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError at line 92
pkg/sql/colflow/stats.go in pkg/sql/colflow.(*batchInfoCollector).Next at line 126
pkg/sql/colflow/flow_coordinator.go in pkg/sql/colflow.(*BatchFlowCoordinator).nextAdapter at line 251
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError at line 92
pkg/sql/colflow/flow_coordinator.go in pkg/sql/colflow.(*BatchFlowCoordinator).next at line 255
pkg/sql/colflow/flow_coordinator.go in pkg/sql/colflow.(*BatchFlowCoordinator).Run at line 293
pkg/sql/colflow/vectorized_flow.go in pkg/sql/colflow.(*vectorizedFlow).Run at line 326
pkg/sql/distsql_running.go in pkg/sql.(*DistSQLPlanner).Run at line 902
pkg/sql/distsql_running.go in pkg/sql.(*DistSQLPlanner).PlanAndRun at line 1913
pkg/sql/distsql_running.go in pkg/sql.(*DistSQLPlanner).PlanAndRunAll.func3 at line 1645
pkg/sql/distsql_running.go in pkg/sql.(*DistSQLPlanner).PlanAndRunAll at line 1648
Tag Value
Cockroach Release v23.1.2-1-gef8d5da59d2
Cockroach SHA: ef8d5da
Platform linux amd64
Distribution CCL
Environment v23.1.2
Command server
Go Version ``
# of CPUs
# of Goroutines

Jira issue: CRDB-28841

@cockroach-teamcity cockroach-teamcity added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report. labels Jun 16, 2023
@yuzefovich
Copy link
Member

dup of #104606

@exalate-issue-sync exalate-issue-sync bot changed the title sentry: conn_executor.go:890: panic: × (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1 | github.com/cockroachdb/cockroach/pkg/sql/conn_exec... sentry: conn_executor.go:890: panic: × (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1 | github.com/cockroachdb/cockroach/pkg/sql/conn_exec... Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report.
Projects
None yet
Development

No branches or pull requests

2 participants