|
From: Hoai T. <ho...@ya...> - 2004-07-12 18:46:25
|
Dear all, I'm a new guy in Valgrind. It's quite useful to me. However, there is a case that I cannot explain. I have a segment of code as following: double best; .... best = -1.0e20; cout << "BEst = " << best << endl; And Valgrind prints messages: ==12945== Syscall param write(buf) contains uninitialised or unaddressable byte(s) ==12945== at 0x3C3F43E4: write (in /lib/libc-2.2.5.so) ==12945== by 0x3C39B7C7: _IO_file_write (in /lib/libc-2.2.5.so) ==12945== by 0x3C2E5E37: sys_write__7filebufPCci (in /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so) ==12945== by 0x3C39AE87: (within /lib/libc-2.2.5.so) ==12945== by 0x3C39B92B: _IO_file_xsputn (in /lib/libc-2.2.5.so) ==12945== by 0x3C2E5EAF: xsputn__7filebufPCci (in /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so) ==12945== by 0x3C2E9871: (within /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so) ==12945== by 0x3C2E9998: __ls__7ostreami (in /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so) ==12945== by 0x80E64D2: newOpenSubCount__13ABA_PARMASTER (parmaster_opensubcount.cc:178) Please help me to work around the error. Or tell me what exactly I must follow in order to use Valgrind correctly. Thank alot. Regards, Hoai __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail |