valgrind报错VEX temporary storage exhausted
最近在使用valgrind进行内存泄漏检测是时,竟然报错,如下:
VEX temporary storage exhausted.
Pool = TEMP, start 0x38fb67e8 curr 0x3947b318 end 0x3947b327 (size 5000000)
vex: the `impossible' happened:
VEX temporary storage exhausted.
Increase N_{TEMPORARY,PERMANENT}_BYTES and recompile.
vex storage: T total 7460264136 bytes allocated
vex storage: P total 640 bytes allocated
然后valgrind给出如下提示,程序就会退出:
相关文章说原因为:
这是一个libVEX的错误
临时的解决办法就是,使用valgrind时,添加命令行参数
--vex-guest-max-insns=25
那么完整的命令将为:
valgrind --leak-check=full --show-reachable=yes --trace-children=yes --vex-guest-max-insns=25 ./ADAS_ptGrey -ad ../configfile/17369065_6mm_pointGreyConfig.yaml
(完)