While working on one open source project, I performed a build in two ways:
- Cmake Debug Build with sanitizers enabled(Address, Memory, Thread, UB).
- Regular Cmake Debug build.
This is running on an Ubuntu 18.04 machine off of Parallels.
When running valgrind --leak-check=full <execute all unit tests>
, Case 1, first gives the warning ==25464== Warning: set address range perms: large range [0x8f21000, 0x24c75000) (defined)
and then shows thousands of errors with a single error statement Conditional jump or move depends on uninitialised value(s)
.
On the other hand Case 2 shows 0 errors.
I'm not sure whether this is a legitimate problem or something introduced due to the sanitizers added? More details here