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

panic when to disable lite-init-stats #51358

Closed
hawkingrei opened this issue Feb 27, 2024 · 1 comment · Fixed by #51357
Closed

panic when to disable lite-init-stats #51358

hawkingrei opened this issue Feb 27, 2024 · 1 comment · Fixed by #51357
Labels
affects-7.5 found/customer Customers have encountered this bug. severity/major sig/planner SIG: Planner type/bug This issue is a bug.

Comments

@hawkingrei
Copy link
Member

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)

/02/27 07:53:21.707 +00:00] [ERROR] [misc.go:116] ["panic in the recoverable goroutine"] [label=domain] [funcInfo=loadStatsWorker] [r="runtime error: invalid memory address or nil pointer dereference"] [stack="github.com/pingcap/tidb/pkg/util.Recover
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/util/misc.go:120
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/pkg/statistics.(*Table).Copy
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/statistics/table.go:282
github.com/pingcap/tidb/pkg/statistics/handle.(*Handle).initStatsHistograms4Chunk
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/statistics/handle/bootstrap.go:167
github.com/pingcap/tidb/pkg/statistics/handle.(*Handle).initStatsHistograms
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/statistics/handle/bootstrap.go:274
github.com/pingcap/tidb/pkg/statistics/handle.(*Handle).InitStats
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/statistics/handle/bootstrap.go:513
github.com/pingcap/tidb/pkg/domain.(*Domain).initStats
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/domain/domain.go:2315
github.com/pingcap/tidb/pkg/domain.(*Domain).loadStatsWorker
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/domain/domain.go:2337
github.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1
	/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/util/wait_group_wrapper.go:96

4. What is your TiDB version? (Required)

@seiya-annie
Copy link

/found customer

@ti-chi-bot ti-chi-bot bot added the found/customer Customers have encountered this bug. label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 found/customer Customers have encountered this bug. severity/major sig/planner SIG: Planner type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants