开发者

slow down gdb to reproduce bug

开发者 https://www.devze.com 2023-01-18 11:22 出处:网络
I have a timing bug in my application which only occurs when I use valgrind, because valgrind slows down the process so much.

I have a timing bug in my application which only occurs when I use valgrind, because valgrind slows down the process so much.

(it's actually a boost::weak_ptr-exception that I cannot localize)

Now I wonder how to reproduce the b开发者_如何学Pythonug with gdb. I don't see a way to combine gdb + valgrind.

Thanks.


You can start gdb when an error is detected by valgrind (--db-attach=yes). Even if the exception doesn't trigger a memory error at the moment, it's easy to fake a bad memory access in that path.

0

精彩评论

暂无评论...
验证码 换一张
取 消