valgrind报错VEX temporary storage exhausted

14 篇文章 0 订阅

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给出如下提示,程序就会退出:
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

(完)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值