Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 7.1.2版本tiflash报错
select * from TIFLASH_REPLICA, error
1105 - runtime error: invalid memory address or nil pointer dereference
Checked system memory, memory is sufficient
Is this normal for TIFLASH_REPLICA?
Congratulations, you found a bug.
There are so many bugs in TiDB, it’s frustrating.
A typical error caused by assigning a value to a Go pointer without initializing the pointer first.
This error is normal, understood this way.
It is recommended to post the table structure (after desensitization) to check the field types.
I don’t understand, this is a system table, you can view the table structure.
You are the first to try it, I suggest the official team give you a testing fee.
It may be necessary to provide the reproduction steps of this suspected bug to better determine whether it is indeed a bug.
Cousin, just check it casually, it should report an error.
How many tables currently have TiFlash replicas configured?
Can we investigate which specific table is causing the issue?
I did some random testing on my side and couldn’t reproduce the problem…
I didn’t expect such a commonly used SQL to have bugs in the new version.
This indicates that we should conduct thorough testing before using new data versions.
My tests show no issues. Have you checked the character set of the Linux system?
Please provide the TiDB error log at the time of this error message, specifically the panic error stack, to facilitate problem analysis.
I just upgraded to 7.1.2 and tried it out, no issues.
I encountered this issue before, it was because the default value in the data did not meet the requirements. You can check it out.