Debugging Null Pointer Exception in TiFlash

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: debug tiflash 出现空指针异常

| username: szza

【TiDB Usage Environment】 Test environment
【TiDB Version】 release-6-2
【Encountered Problem】
After compiling on M1 and starting in debug mode, core frequently appears.

| username: wish-PingCAP | Original post link

Hi, this error might occur when memory allocation is insufficient. Could you please check if the machine has enough memory space?

Additionally, you can try starting your compiled TiFlash binary using tiup to see if it can start normally with standard configuration parameters, for example:

tiup playground v6.1.0 --tiflash.binpath $TIFLASH_BUILD_DIR/dbms/src/Server/tiflash