2009年4月28日星期二

Error When Running Simulation with Valgrind

When I ran my NS2 simulation with valgrind, I got the following error report:

==25876== Use of uninitialised value of size 8
==25876== at 0x3834AC85C0: profil_counter (in /lib64/tls/libc-2.3.4.so)
==25876== by 0x3834A2E2AF: (within /lib64/tls/libc-2.3.4.so)
==25876== by 0x3835ADAD2F: (within /usr/lib64/libstdc++.so.6.0.3)

It occurs from time to time. It seems that only happens when running on a 64 bit system.

I think the possible reason is the simulator is compiled with flag -pg because the field "profil_counter" is used by gcc for profiling. Got no solution yet.

没有评论: