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

panics when set tidb_enable_prepared_plan_cache back to 0 #49344

Closed
lcwangchao opened this issue Dec 11, 2023 · 0 comments · Fixed by #49373
Closed

panics when set tidb_enable_prepared_plan_cache back to 0 #49344

lcwangchao opened this issue Dec 11, 2023 · 0 comments · Fixed by #49373
Labels
affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@lcwangchao
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

> create table t(a int);
> set @@tidb_enable_prepared_plan_cache=1;
> prepare s from "select * from t";
> set @@tidb_enable_prepared_plan_cache=0;
> execute s;

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

execute should success

3. What did you see instead (Required)

TiDB [email protected]:test> execute s;
(1105, 'runtime error: invalid memory address or nil pointer dereference')

4. What is your TiDB version? (Required)

TiDB [email protected]:test> select tidb_version();
+-----------------------------------------------------------+
| tidb_version()                                            |
+-----------------------------------------------------------+
| Release Version: v7.6.0-alpha                             |
| Edition: Community                                        |
| Git Commit Hash: e62699cb26d6c6b98a52e6e998298dd86c7cdcb7 |
| Git Branch: heads/refs/tags/v7.6.0-alpha                  |
| UTC Build Time: 2023-12-10 14:24:33                       |
| GoVersion: go1.21.5                                       |
| Race Enabled: false                                       |
| Check Table Before Drop: false                            |
| Store: tikv                                               |
+-----------------------------------------------------------+
1 row in set
Time: 0.002s
@lcwangchao lcwangchao added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner severity/major labels Dec 11, 2023
@qw4990 qw4990 added affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. and removed may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 labels Dec 12, 2023
ti-chi-bot bot pushed a commit that referenced this issue Dec 12, 2023
ti-chi-bot bot pushed a commit that referenced this issue Feb 18, 2024
ti-chi-bot bot pushed a commit that referenced this issue Feb 27, 2024
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. affects-7.5 This bug affects the 7.5.x(LTS) versions. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
2 participants