-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
invalid memory address or nil pointer dereference in (*SortedRowContainer).Add
#52768
Comments
(*Column).AppendInt64
(*SortedRowContainer).Add
(*SortedRowContainer).GetSortedRowAndAlwaysAppendToChunk
(*SortedRowContainer).Add
Reproduced with latest tidb: |
/label affect-8.1 |
@yibin87: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/label affects-8.1 |
/label affects-7.5 |
minimal reproduce sql: select
ref_15.c_wzmb0 as c0
from
t_bhze93f as ref_15
where (EXISTS (
select
RANK() over win_fru73h9zyn as c8
from
t_xf1at0 as ref_16
window win_fru73h9zyn as (partition by (ref_16.c__icnfdo_ is NULL), ref_16.c_ldqj5xa))); |
tidb version: 09c8f96 Not an execution bug, but optimizer. panic stack:
After debug, we can find that the type of column appended by The appended chunk named as chk is actually the |
/sig planner |
/remove-sig execution |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
First execute the following valid.sql
valid.txt
Then a crash occurs when executing the error.sql below
error3.txt
2. What did you expect to see? (Required)
Expect no crashes
3. What did you see instead (Required)
tidb.log:
4. What is your TiDB version? (Required)
We are the BASS team from the School of Cyber Science and Technology at Beihang University. Our main focus is on system software security, operating systems, and program analysis research, as well as the development of automated program testing frameworks for detecting software defects. Using our self-developed database vulnerability testing tool, we have identified the above-mentioned vulnerabilities in TiDB that may lead to database crashes.
The text was updated successfully, but these errors were encountered: