Hi,

I wonder if it's possible to generate cores (or rather vgcores) when valgrind detects invalid reads or writes. We do occasionally see such reports by valgrind, and it would be really helpful to be able to investigate the internal state using gdb. But I don't see any such option in valgrind :-(

I was thinking about triggering a segfault somehow, but the trouble is I don't really know how to identify that the read actually was invalid (which is a very rare event).

Adding more detailed logging is another possibility, but it's going to be very tedious to identify traces matching the invalid access.

Is there a way to get core when valgrind on invalid access? Am I missing something?

regards
Tomas

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to