-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
tidb panic for "IndexMergeProcessWorker: runtime error: invalid memory address or nil pointer dereference" #46005
Labels
affects-7.1
This bug affects the 7.1.x(LTS) versions.
severity/major
sig/execution
SIG execution
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Comments
This panic occurs probabilistically |
ti-chi-bot
bot
added
may-affects-5.2
This bug maybe affects 5.2.x versions.
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
labels
Aug 11, 2023
[2023/08/10 20:54:12.065 +00:00] [ERROR] [index_merge_reader.go:884] ["IndexMergeProcessWorker: runtime error: invalid memory address or nil pointer dereference"] [conn=2636120476]
[2023/08/10 20:54:12.065 +00:00] [ERROR] [misc.go:91] ["panic in the recoverable goroutine"] [r="\"invalid memory address or nil pointer dereference\""] ["stack trace"="github.com/pingcap/tidb/util.WithRecovery.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/util/misc.go:93
runtime.gopanic
/usr/local/go/src/runtime/panic.go:914
runtime.panicmem
/usr/local/go/src/runtime/panic.go:261
runtime.sigpanic
/usr/local/go/src/runtime/signal_unix.go:861
github.com/pingcap/tidb/util/chunk.(*Chunk).GetRow
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/util/chunk/chunk.go:357
github.com/pingcap/tidb/executor.handleHeap.Less
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:948
container/heap.up
/usr/local/go/src/container/heap/heap.go:92
container/heap.Push
/usr/local/go/src/container/heap/heap.go:53
github.com/pingcap/tidb/executor.(*indexMergeProcessWorker).fetchLoopUnionWithOrderBy
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:1066
github.com/pingcap/tidb/executor.(*IndexMergeReaderExecutor).startIndexMergeProcessWorker.func1.1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:308
github.com/pingcap/tidb/util.WithRecovery
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/util/misc.go:96
github.com/pingcap/tidb/executor.(*IndexMergeReaderExecutor).startIndexMergeProcessWorker.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:300"]
[2023/08/10 20:54:12.066 +00:00] [INFO] [conn.go:1082] ["command dispatched failed"] [conn=2636120476] [connInfo="id:2636120476, addr:10.233.96.131:35656 status:10, collation:utf8mb4_general_ci, user:root"] [command=Query] [status="inTxn:0, autocommit:1"] [sql="select /*+ stream_agg() */ avg( col_208 ) aggCol from (select /*+ use_index_merge( tbl_34 ) */ * from tbl_34 where not( tbl_34.col_207 in ( '' , '' , '' , '' ) ) or not( tbl_34.col_208 in ( 16095109 , 3208480 , 12732339 ) ) and not( tbl_34.col_207 in ( '' , '' , '' , '' ) ) and not( tbl_34.col_208 between 3590883 and 10132169 ) order by col_207,col_208 ) ordered_tbl order by aggCol "] [txn_mode=PESSIMISTIC] [timestamp=443469228157173763] [err="IndexMergeProcessWorker: runtime error: invalid memory address or nil pointer dereference
github.com/pingcap/tidb/executor.(*IndexMergeReaderExecutor).startIndexMergeProcessWorker.func1.handleWorkerPanic.func2
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:883
github.com/pingcap/tidb/util.WithRecovery.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/util/misc.go:88
runtime.gopanic
/usr/local/go/src/runtime/panic.go:914
runtime.panicmem
/usr/local/go/src/runtime/panic.go:261
runtime.sigpanic
/usr/local/go/src/runtime/signal_unix.go:861
github.com/pingcap/tidb/util/chunk.(*Chunk).GetRow
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/util/chunk/chunk.go:357
github.com/pingcap/tidb/executor.handleHeap.Less
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:948
container/heap.up
/usr/local/go/src/container/heap/heap.go:92
container/heap.Push
/usr/local/go/src/container/heap/heap.go:53
github.com/pingcap/tidb/executor.(*indexMergeProcessWorker).fetchLoopUnionWithOrderBy
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:1066
github.com/pingcap/tidb/executor.(*IndexMergeReaderExecutor).startIndexMergeProcessWorker.func1.1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:308
github.com/pingcap/tidb/util.WithRecovery
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/util/misc.go:96
github.com/pingcap/tidb/executor.(*IndexMergeReaderExecutor).startIndexMergeProcessWorker.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_merge_reader.go:300
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1650"] |
Can not reproduce the problem till now |
winoros
removed
may-affects-5.2
This bug maybe affects 5.2.x versions.
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
labels
Aug 14, 2023
reproduce step:
|
12 tasks
Defined2014
added
affects-7.1
This bug affects the 7.1.x(LTS) versions.
and removed
may-affects-7.1
labels
Aug 15, 2023
12 tasks
It looks like |
Seems the plan for index_merge has |
12 tasks
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-7.1
This bug affects the 7.1.x(LTS) versions.
severity/major
sig/execution
SIG execution
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
steps please see in :
utf-go-clustered-index-panic.log
2. What did you expect to see? (Required)
no panic
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: