- Notifications
You must be signed in to change notification settings - Fork6.1k
Closed
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
panic: runtime error: invalid memory address or nil pointer dereference[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x29326dd]goroutine 88196 [running]:github.com/pingcap/tidb/util/stmtsummary/v2.(*StmtSummary).Enabled(...)util/stmtsummary/v2/stmtsummary.go:156github.com/pingcap/tidb/util/stmtsummary/v2.Enabled()util/stmtsummary/v2/stmtsummary.go:511 +0x9dgithub.com/pingcap/tidb/executor.(*ExecStmt).SummaryStmt(0xc025bfb3b0, 0x1)executor/adapter.go:1854 +0xa5github.com/pingcap/tidb/executor.(*ExecStmt).FinishExecuteStmt(0xc025bfb3b0, 0x5?, {0x0, 0x0}, 0x70?)executor/adapter.go:1469 +0x387github.com/pingcap/tidb/executor.(*ExecStmt).CloseRecordSet(0xc025bfb3b0, 0x2f2c5254b?, {0x0?, 0x0?})executor/adapter.go:1542 +0x38github.com/pingcap/tidb/executor.(*recordSet).Close(0xc0260f6dc0)executor/adapter.go:203 +0x67github.com/pingcap/tidb/session.(*execStmtResult).Close(0xc0260df9b0)session/session.go:2416 +0x42github.com/pingcap/tidb/parser/terror.Call(0xc02df2f820?)parser/terror/terror.go:306 +0x3bgithub.com/pingcap/tidb/ddl.(*session).execute(0xc02c624bd0, {0x5421488, 0xc00022c000}, {0xc01705b930, 0xc8}, {0x4cae580, 0xd})ddl/ddl.go:1674 +0x44bgithub.com/pingcap/tidb/ddl.(*ddl).getJob(0xc02cb4f480, 0x0?, 0x0?, 0xc02df2fb68)ddl/job_table.go:105 +0x175github.com/pingcap/tidb/ddl.(*ddl).getReorgJob(0x53f94a0?, 0xc02df0c280?)ddl/job_table.go:155 +0x52github.com/pingcap/tidb/ddl.(*ddl).loadDDLJobAndRun(0xc02cb4f480, 0xc02df2fdb8?, 0xc02d6d6cc0, 0xc02df2fe48)ddl/job_table.go:217 +0x139github.com/pingcap/tidb/ddl.(*ddl).startDispatchLoop(0xc02cb4f480)ddl/job_table.go:202 +0x7e7github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()util/wait_group_wrapper.go:154 +0x6bcreated by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Runutil/wait_group_wrapper.go:152 +0x8d