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:521: panic while executing 1 statements: SELECT DISTINCT _._, _._, _._ FROM _ INNER JOIN _ ON _._ = _._ LEFT JOIN _ ON _._ = _._ WHERE (((_._ > $1) AND ((lower(_._) = lower($2)) OR (lower(_._) = lower($3)))) OR ((lower(_._) = lower($4)) OR (lower(_._) = lower($5)))) OR ((_._ ILIKE $6) OR (_._ ILIKE $7)) ORDER BY _._ LIMIT _: caused by <redacted> #35703

Closed
cockroach-teamcity opened this issue Mar 13, 2019 · 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

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

Sentry link: https://sentry.io/organizations/cockroach-labs/issues/933277501/?project=164528&referrer=webhooks_plugin

Panic message:

conn_executor.go:521: panic while executing 1 statements: SELECT DISTINCT ., ., . FROM _ INNER JOIN _ ON . = . LEFT JOIN _ ON . = . WHERE (((. > $1) AND ((lower(.) = lower($2)) OR (lower(.) = lower($3)))) OR ((lower(.) = lower($4)) OR (lower(.) = lower($5)))) OR ((. ILIKE $6) OR (. ILIKE $7)) ORDER BY . LIMIT _: caused by

Stacktrace (expand for inline code snippets):

r := recover()
ex.closeWrapper(ctx, r)
}()
in pkg/sql.(*Server).ServeConn.func2
/usr/local/go/src/runtime/asm_amd64.s#L572-L574 in runtime.call32
/usr/local/go/src/runtime/panic.go#L504-L506 in runtime.gopanic
if mm.mu.curAllocated < sz {
panic(fmt.Sprintf("%s: no bytes to release, current %d, free %d",
mm.name, mm.mu.curAllocated, sz))
in pkg/util/mon.(*BytesMonitor).releaseBytes
if a := b.allocated(); a > 0 {
b.mon.releaseBytes(ctx, a)
}
in pkg/util/mon.(*BoundAccount).Close
// This closes the account and monitor opened in ServerImpl.setupFlow.
f.EvalCtx.ActiveMemAcc.Close(ctx)
f.EvalCtx.Stop(ctx)
in pkg/sql/distsqlrun.(*Flow).Cleanup
flow.Wait()
flow.Cleanup(ctx)
}
in pkg/sql.(*DistSQLPlanner).Run
dsp.FinalizePlan(&planCtx, &plan)
dsp.Run(&planCtx, txn, &plan, recv, evalCtx)
}
in pkg/sql.(*DistSQLPlanner).PlanAndRun
)
ex.server.cfg.DistSQLPlanner.PlanAndRun(
ctx, planner.txn, planner.curPlan.plan, recv, planner.ExtendedEvalContext(),
in pkg/sql.(*connExecutor).execWithDistSQLEngine
if useDistSQL {
err = ex.execWithDistSQLEngine(ctx, planner, stmt.AST.StatementType(), res)
} else {
in pkg/sql.(*connExecutor).dispatchToExecutionEngine
p.autoCommit = os.ImplicitTxn.Get() && !ex.server.cfg.TestingKnobs.DisableAutoCommit
if err := ex.dispatchToExecutionEngine(ctx, stmt, p, res); err != nil {
return nil, nil, err
in pkg/sql.(*connExecutor).execStmtInOpenState
case stateOpen:
ev, payload, err = ex.execStmtInOpenState(ctx, stmt, pinfo, res)
case stateAborted, stateRestartWait:
in pkg/sql.(*connExecutor).execStmt
ctx := withStatement(ex.Ctx(), ex.curStmt)
ev, payload, err = ex.execStmt(ctx, curStmt, stmtRes, pinfo, pos)
if err != nil {
in pkg/sql.(*connExecutor).run
}()
return ex.run(ctx)
}
in pkg/sql.(*Server).ServeConn
go func() {
writerErr = sqlServer.ServeConn(
processorCtx, c.sessionArgs, c.stmtBuf, c, reserved, &c.metrics.SQLMemMetrics)
in pkg/sql/pgwire.(*conn).serveImpl.func3

pkg/sql/conn_executor.go in pkg/sql.(*Server).ServeConn.func2 at line 489
/usr/local/go/src/runtime/asm_amd64.s in runtime.call32 at line 573
/usr/local/go/src/runtime/panic.go in runtime.gopanic at line 505
pkg/util/mon/bytes_usage.go in pkg/util/mon.(*BytesMonitor).releaseBytes at line 606
pkg/util/mon/bytes_usage.go in pkg/util/mon.(*BoundAccount).Close at line 494
pkg/sql/distsqlrun/flow.go in pkg/sql/distsqlrun.(*Flow).Cleanup at line 502
pkg/sql/distsql_running.go in pkg/sql.(*DistSQLPlanner).Run at line 224
pkg/sql/distsql_running.go in pkg/sql.(*DistSQLPlanner).PlanAndRun at line 532
pkg/sql/conn_executor_exec.go in pkg/sql.(*connExecutor).execWithDistSQLEngine at line 672
pkg/sql/conn_executor_exec.go in pkg/sql.(*connExecutor).dispatchToExecutionEngine at line 580
pkg/sql/conn_executor_exec.go in pkg/sql.(*connExecutor).execStmtInOpenState at line 349
pkg/sql/conn_executor_exec.go in pkg/sql.(*connExecutor).execStmt at line 87
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).run at line 964
pkg/sql/conn_executor.go in pkg/sql.(*Server).ServeConn at line 491
pkg/sql/pgwire/conn.go in pkg/sql/pgwire.(*conn).serveImpl.func3 at line 260
Tag Value
Cockroach Release v2.0.4
Cockroach SHA: d7c9973
Platform linux amd64
Distribution CCL
Environment v2.0.4
Command server
Go Version go1.10
# of CPUs 2
# of Goroutines 123
@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 Mar 13, 2019
@jordanlewis
Copy link
Member

This is fixed by #34935.

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