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 [7] with length 4 #44747

Open
bajinsheng opened this issue Jun 17, 2023 · 5 comments
Open

runtime error: index out of range [7] with length 4 #44747

bajinsheng opened this issue Jun 17, 2023 · 5 comments
Labels
affects-7.1 affects-7.5 affects-8.1 fuzz/sqlancer 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 may-affects-6.5 severity/major sig/execution SIG execution type/bug This issue is a bug.

Comments

@bajinsheng
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 FLOAT);
INSERT INTO t0(c0) VALUES (1);
SELECT * FROM t0 GROUP BY t0.c0, (CASE ((t0.c0)>=(t0.c0)) WHEN SIN(t0.c0) THEN NULL ELSE t0.c0 END);

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

3. What did you see instead (Required)

ERROR 1105 (HY000) at line 9: runtime error: index out of range [7] with length 4

4. What is your TiDB version? (Required)

| Release Version: v7.1.0
Edition: Community
Git Commit Hash: 635a436
Git Branch: heads/refs/tags/v7.1.0
UTC Build Time: 2023-05-30 10:58:57
GoVersion: go1.20.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore |

@bajinsheng bajinsheng added the type/bug This issue is a bug. label Jun 17, 2023
@bajinsheng
Copy link
Author

bajinsheng commented Jun 17, 2023

/sqlancer

@hawkingrei
Copy link
Member

/label fuzz/sqlancer

@seiya-annie seiya-annie added the sig/execution SIG execution label Jun 18, 2023
@ti-chi-bot ti-chi-bot bot added 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 may-affects-6.5 may-affects-7.1 labels Jun 19, 2023
@windtalker
Copy link
Contributor

@bajinsheng I can't reproduce it using a v7.1.0 cluster started by TiUP, do you have any special settings to reproduce this bug?

@bajinsheng
Copy link
Author

bajinsheng commented Sep 1, 2023

@windtalker I directly run the TiDB. The error can be reproduced in this way:

git clone https://github.com/pingcap/tidb tidb_test
cd tidb_test
git checkout 635a436
make
./bin/tidb-server
mysql -h 127.0.0.1 -P 4000 -u root -p

@windtalker
Copy link
Contributor

@windtalker I directly run the TiDB. The error can be reproduced in this way:

git clone https://github.com/pingcap/tidb tidb_test
cd tidb_test
git checkout 635a436
make
./bin/tidb-server
mysql -h 127.0.0.1 -P 4000 -u root -p

Got it, looks like this bug only happens when running with mock storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.1 affects-7.5 affects-8.1 fuzz/sqlancer 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 may-affects-6.5 severity/major sig/execution SIG execution type/bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

6 participants