|
From: Yeshurun, M. <mei...@in...> - 2008-08-04 15:20:26
|
It's interesting how everybody finds this so obvious now. Nobody told me anything about this possibility when I described my problem here before finding the bug. I hope other readers of the list found this educational, and a few words about this issue in the Valgrind user's manual might be very nice. The important point to remember is that besides un-initialized variables, there is another source of non-determinism in a single-threaded program (pointer values), and not only is Valgrind unable to help with that, it actually magnifies this form of non-determinism. This should be clear to every Valgrind user. Cheers, Meir -----Original Message----- From: val...@li... [mailto:val...@li...] On Behalf Of Paul Walker Sent: Monday, August 04, 2008 5:08 PM To: val...@li... Subject: Re: [Valgrind-users] "glibc detected..." error On Mon, Aug 04, 2008 at 04:52:16PM +0300, Yeshurun, Meir wrote: > As I said before - what if the bug is in your binary tree (for example)? > The bug I had was indeed inside a very low level data structure. If it needs a particular pattern of cookies in order to create the bad situation, then sure, the behaviour's likely to change inside valgrind compared to out. This is no different to the fact the behaviour would change from machine to machine, depending on OS version, memory loading, installed packages, and so on. As far as I can see this is one of those situations where valgrind doesn't help much, but doesn't really make things any worse either. -- Paul ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. |