On 02/11/11 07:36, Peter Toft wrote: > Valgrind _does_ point to the problematic area - but finds the problem as > a unitialized values.
Quite possible, depending on how the compiler chooses to arrange the stack. > I did not know that the values I get with my example is different from > 32 bit to 64 bit systems. > > Apparently the memory stacking works differently. Anyone who can explain > this? As I say, it's entirely up the compiler what order it places the variables in on the stack, and what padding it puts between them. That may well, for example, vary in 32 vs 64 bit mode in order to get the correct alignment of variables. Tom -- Tom Hughes ([email protected]) http://compton.nu/ ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now! http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
