This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6442: aarch64使用-O3交叉编译后出现double free detected in tcache2错误

Part Number: AM6442


使用交叉编译链编译一段需要浮点加速的代码时,使用aarch64-none-linux-gnu-g++ 直接编译运行没问题,但这样没起到加速效果,如果加上-O优化选项aarch64-none-linux-gnu-g++ -03,像这样有加速效果的编译能成功就无法正常运行,会出现free():double free detected in tcache2这样的报错。而这段代码在其他板子上运行和用直接用-O3进行编译和测试都是没有问题的。请问下这是什么原因,有什么思路和解决方法?