Valgrind
From Msim
Valgrind is a framework that we use to detect memory management issues: Valgrind Website
Our usage
Memory issues were detected and analyzed using:
- valgrind -v --show-reachable=yes --leak-check=yes
Unresolved Issues
Valgrind is no longer returning memory problems but is surpressing 8 linker related issues. These do not appear to result in any problems with the simulator.
However, some instructions still use uninitialized values through machine.def and some syscalls still have issues. These will be resolved as we find them.
Other Issues
OSF_SYS_exit (syscall exit) will most likely result in memory leaks due to the use of long_jmp potentially bypassing the destruction of objects allocated in main().
Memory allocated using OSF_SYS_MMAP (syscall memory map) that is not deallocated by the benchmark at termination time will leak. This will be fixed in a later version.