|
From: Yeshurun, M. <mei...@in...> - 2008-08-04 13:52:18
|
> No, not reliably. As I said before, Valgrind's effect on pointer values is much larger than the native randomization, so a very frequent memory corruption can become completely non-reproducible under Valgrind. > (I'm including "use them for tree node sorting" in the opaque cookies use, > for what it's worth.) 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. Meir -----Original Message----- From: val...@li... [mailto:val...@li...] On Behalf Of Paul Walker Sent: Monday, August 04, 2008 4:39 PM To: val...@li... Subject: Re: [Valgrind-users] "glibc detected..." error On Fri, Aug 01, 2008 at 02:40:55PM +0300, Yeshurun, Meir wrote: > I'm pretty sure that when you run the same binary on the same inputs you > get the same pointer values because the linker/loader and the libc > allocator are deterministic No, not reliably. Security and optimisation techniques such as address space randomization and prelinking will break that assumption. Any programme which is treating unrelated addresses as more than opaque cookies is likely to be broken, I would think. (I'm including "use them for tree node sorting" in the opaque cookies use, for what it's worth.) -- Paul Java/XML are the hammer and the Internet is the thumb. -- rone ------------------------------------------------------------------------ - 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. |