We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
server_configs: tidb: alter-primary-key: true enable-streaming: false experimental.allow-auto-random: false experimental.allow-expression-index: true mem-quota-query: 10 new_collations_enabled_on_first_bootstrap: true oom-action: cancel performance.feedback-probability: 0.05 performance.max-memory: 5000000 performance.max-txn-ttl: 600000 performance.query-feedback-limit: 1024 pessimistic-txn.enable: true store: mocktikv tikv-client.copr-cache.admission-max-result-mb: 10.0 tikv-client.copr-cache.admission-min-process-ms: 5 tikv-client.copr-cache.enable: false tikv-client.store-liveness-timeout: 120s
use tiup deploy v4.0.0 version with above config, tidb service can't start.
tidb status is up
panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x21efabd]
goroutine 1 [running]: github.com/pingcap/tidb/executor.(*ExecStmt).Exec.func1(0xc000f5b680, 0xc001164960, 0x36c53a0, 0xc000054068) /home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/executor/adapter.go:292 +0x53a panic(0x2def7a0, 0x4c7e090) /usr/local/go/src/runtime/panic.go:679 +0x1b2 github.com/pingcap/tidb/util/expensivequery.(*Handle).LogOnQueryExceedMemQuota(0x0, 0x0) /home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/util/expensivequery/expensivequery.go:90 +0x4d github.com/pingcap/tidb/util/memory.(*PanicOnExceed).Action(0xc000fc6860, 0xc0007a00e0) /home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/util/memory/action.go:94 +0x91 github.com/pingcap/tidb/util/memory.(*Tracker).Consume(0xc0007a01c0, 0xa73) /home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/util/memory/tracker.go:221 +0x118
v4.0.0
The text was updated successfully, but these errors were encountered:
When mem-quota-query is 10 and oom-action is cancel, the internal SQL exceeds the memory quota and eqh.sm is not initialized. So it panics.
mem-quota-query
10
oom-action
cancel
eqh.sm
Sorry, something went wrong.
error info is not clear. please fix error info
No branches or pull requests
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
server_configs:
tidb:
alter-primary-key: true
enable-streaming: false
experimental.allow-auto-random: false
experimental.allow-expression-index: true
mem-quota-query: 10
new_collations_enabled_on_first_bootstrap: true
oom-action: cancel
performance.feedback-probability: 0.05
performance.max-memory: 5000000
performance.max-txn-ttl: 600000
performance.query-feedback-limit: 1024
pessimistic-txn.enable: true
store: mocktikv
tikv-client.copr-cache.admission-max-result-mb: 10.0
tikv-client.copr-cache.admission-min-process-ms: 5
tikv-client.copr-cache.enable: false
tikv-client.store-liveness-timeout: 120s
use tiup deploy v4.0.0 version with above config, tidb service can't start.
2. What did you expect to see? (Required)
tidb status is up
3. What did you see instead (Required)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x21efabd]
goroutine 1 [running]:
github.com/pingcap/tidb/executor.(*ExecStmt).Exec.func1(0xc000f5b680, 0xc001164960, 0x36c53a0, 0xc000054068)
/home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/executor/adapter.go:292 +0x53a
panic(0x2def7a0, 0x4c7e090)
/usr/local/go/src/runtime/panic.go:679 +0x1b2
github.com/pingcap/tidb/util/expensivequery.(*Handle).LogOnQueryExceedMemQuota(0x0, 0x0)
/home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/util/expensivequery/expensivequery.go:90 +0x4d
github.com/pingcap/tidb/util/memory.(*PanicOnExceed).Action(0xc000fc6860, 0xc0007a00e0)
/home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/util/memory/action.go:94 +0x91
github.com/pingcap/tidb/util/memory.(*Tracker).Consume(0xc0007a01c0, 0xa73)
/home/jenkins/agent/workspace/tidb_v4.0.0/go/src/github.com/pingcap/tidb/util/memory/tracker.go:221 +0x118
4. What is your TiDB version? (Required)
v4.0.0
The text was updated successfully, but these errors were encountered: