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

Index out of range when decoding temp index value #41880

Closed
tangenta opened this issue Mar 2, 2023 · 0 comments · Fixed by #41879
Closed

Index out of range when decoding temp index value #41880

tangenta opened this issue Mar 2, 2023 · 0 comments · Fixed by #41879
Labels

Comments

@tangenta
Copy link
Contributor

tangenta commented Mar 2, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Run schrddl test.

2. What did you expect to see? (Required)

No error.

3. What did you see instead (Required)

"runtime error: index out of range [7] with length 0"] [stack="[github.com/pingcap/tidb/server.(*clientConn).Run.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1067\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:884\ngithub.com/pingcap/tidb/executor.(*ExecStmt).Exec.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:481\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:884\nruntime.goPanicIndex\n\t/usr/local/go/src/runtime/panic.go:113\nencoding/binary.bigEndian.Uint64\n\t/usr/local/go/src/encoding/binary/binary.go:179\ngithub.com/pingcap/tidb/tablecodec.DecodeHandleInUniqueIndexValue\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tablecodec/tablecodec.go:1648\ngithub.com/pingcap/tidb/tablecodec.(*TempIndexValueElem).DecodeOne\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tablecodec/tablecodec.go:1339\ngithub.com/pingcap/tidb/tablecodec.DecodeTempIndexValue\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tablecodec/tablecodec.go:1317\ngithub.com/pingcap/tidb/table/tables.checkHandleConsistency\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/mutation_checker.go:162\ngithub.com/pingcap/tidb/table/tables.CheckDataConsistency\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/mutation_checker.go:109\ngithub.com/pingcap/tidb/table/tables.(*TableCommon).UpdateRecord\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/tables.go:459\ngithub.com/pingcap/tidb/executor.updateRecord\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/write.go:202\ngithub.com/pingcap/tidb/executor.(*UpdateExec).exec\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/update.go:200\ngithub.com/pingcap/tidb/executor.(*UpdateExec).updateRows\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/update.go:318\ngithub.com/pingcap/tidb/executor.(*UpdateExec).Next\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/update.go:239\ngithub.com/pingcap/tidb/executor.Next\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/executor.go:324\ngithub.com/pingcap/tidb/executor.(*ExecStmt).next\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:1220\ngithub.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:972\ngithub.com/pingcap/tidb/executor.(*ExecStmt).handlePessimisticDML\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:1026\ngithub.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:801\ngithub.com/pingcap/tidb/executor.(*ExecStmt).Exec\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:599\ngithub.com/pingcap/tidb/session.runStmt\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:2342\ngithub.com/pingcap/tidb/session.(*session).ExecuteStmt\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:2199\ngithub.com/pingcap/tidb/server.(*TiDBContext).ExecuteStmt\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/driver_tidb.go:247\ngithub.com/pingcap/tidb/server.(*clientConn).handleStmt\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1999\ngithub.com/pingcap/tidb/server.(*clientConn).handleQuery\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1849\ngithub.com/pingcap/tidb/server.(*clientConn).dispatch\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1380\ngithub.com/pingcap/tidb/server.(*clientConn).Run\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1129\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:625](http://github.com/pingcap/tidb/server.(*clientConn).Run.func1/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1067/nruntime.gopanic/n/t/usr/local/go/src/runtime/panic.go:884/ngithub.com/pingcap/tidb/executor.(*ExecStmt).Exec.func1/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:481/nruntime.gopanic/n/t/usr/local/go/src/runtime/panic.go:884/nruntime.goPanicIndex/n/t/usr/local/go/src/runtime/panic.go:113/nencoding/binary.bigEndian.Uint64/n/t/usr/local/go/src/encoding/binary/binary.go:179/ngithub.com/pingcap/tidb/tablecodec.DecodeHandleInUniqueIndexValue/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tablecodec/tablecodec.go:1648/ngithub.com/pingcap/tidb/tablecodec.(*TempIndexValueElem).DecodeOne/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tablecodec/tablecodec.go:1339/ngithub.com/pingcap/tidb/tablecodec.DecodeTempIndexValue/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tablecodec/tablecodec.go:1317/ngithub.com/pingcap/tidb/table/tables.checkHandleConsistency/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/mutation_checker.go:162/ngithub.com/pingcap/tidb/table/tables.CheckDataConsistency/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/mutation_checker.go:109/ngithub.com/pingcap/tidb/table/tables.(*TableCommon).UpdateRecord/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/tables.go:459/ngithub.com/pingcap/tidb/executor.updateRecord/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/write.go:202/ngithub.com/pingcap/tidb/executor.(*UpdateExec).exec/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/update.go:200/ngithub.com/pingcap/tidb/executor.(*UpdateExec).updateRows/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/update.go:318/ngithub.com/pingcap/tidb/executor.(*UpdateExec).Next/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/update.go:239/ngithub.com/pingcap/tidb/executor.Next/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/executor.go:324/ngithub.com/pingcap/tidb/executor.(*ExecStmt).next/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:1220/ngithub.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:972/ngithub.com/pingcap/tidb/executor.(*ExecStmt).handlePessimisticDML/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:1026/ngithub.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:801/ngithub.com/pingcap/tidb/executor.(*ExecStmt).Exec/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/adapter.go:599/ngithub.com/pingcap/tidb/session.runStmt/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:2342/ngithub.com/pingcap/tidb/session.(*session).ExecuteStmt/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:2199/ngithub.com/pingcap/tidb/server.(*TiDBContext).ExecuteStmt/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/driver_tidb.go:247/ngithub.com/pingcap/tidb/server.(*clientConn).handleStmt/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1999/ngithub.com/pingcap/tidb/server.(*clientConn).handleQuery/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1849/ngithub.com/pingcap/tidb/server.(*clientConn).dispatch/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1380/ngithub.com/pingcap/tidb/server.(*clientConn).Run/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/conn.go:1129/ngithub.com/pingcap/tidb/server.(*Server).onConn/n/t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:625)"

4. What is your TiDB version? (Required)

96e345d

@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. 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 labels Mar 2, 2023
@tangenta tangenta changed the title index out of range when decoding temp index value Index out of range when decoding temp index value Mar 2, 2023
@tangenta tangenta removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. 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-5.0 This bug maybe affects 5.0.x versions. may-affects-6.1 labels Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants