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

runtime error: index out of range [1] with length 1 #58788

Open
yibin87 opened this issue Jan 8, 2025 · 1 comment
Open

runtime error: index out of range [1] with length 1 #58788

yibin87 opened this issue Jan 8, 2025 · 1 comment
Labels
type/bug The issue is confirmed as a bug.

Comments

@yibin87
Copy link
Contributor

yibin87 commented Jan 8, 2025

Located that the issue is introduced by: #58500

stack="github.com/pingcap/tidb/pkg/executor/sortexec.processPanicAndLog\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/sort_util.go:52\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*TopNExec).executeTopN.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/topn.go:458\nruntime.gopanic\n\t/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:785\nruntime.goPanicIndex\n\t/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:115\ngithub.com/pingcap/tidb/pkg/util/chunk.Row.IsNull\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/util/chunk/row.go:231\ngithub.com/pingcap/tidb/pkg/util/chunk.cmpFloat64\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/util/chunk/compare.go:113\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*SortExec).lessRow\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/sort.go:809\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*multiWayMergeImpl).Less\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/multi_way_merge.go:140\ncontainer/heap.down\n\t/go/pkg/mod/golang.org/[email protected]/src/container/heap/heap.go:108\ncontainer/heap.Init\n\t/go/pkg/mod/golang.org/[email protected]/src/container/heap/heap.go:45\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*diskSource).init\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/multi_way_merge.go:76\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*multiWayMerger).init\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/multi_way_merge.go:180\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*TopNExec).generateResultWithMultiWayMerge\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/topn.go:500\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*TopNExec).generateTopNResultsWhenSpillTriggered\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/topn.go:585\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*TopNExec).generateTopNResults\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/topn.go:602\ngithub.com/pingcap/tidb/pkg/executor/sortexec.(*TopNExec).executeTopN\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/executor/sortexec/topn.go:482

@EricZequan
Copy link
Contributor

Can try again after #58771 merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants