pingcap / pingcap/tidb

[FATAL] [lib.rs:479] ["range end index 3 out of range for slice of length 1"]

Open
#60,428 0 comments 0 reactions 0 assignees View on GitHub
component/tikv impact/crash may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

```sql
CREATE TABLE t1 (c1 LONGTEXT);
INSERT INTO t1 (c1) VALUES ('z');
SELECT c1 FROM t1 WHERE CHAR(226 USING latin1) NOT LIKE c1; -- crash
```
### 2. What did you expect to see? (Required)
Executed without crash.
### 3. What did you see instead (Required)
A fatal error happened.
### 4. What is your TiDB version? (Required)

Release Version: v8.5.1
Edition: Community
Git Commit Hash: fea86c8e35ad4a86a5e1160701f99493c2ee547c
Git Branch: HEAD
UTC Build Time: 2025-01-16 07:40:13
GoVersion: go1.23.2
Race Enabled: false
Check Table Before Drop: false
Store: tikv

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.