I have been looking for a similar post to mine without success. I am working with a code that so far seems to be deterministic and is as of now working properly. However when running Valgrind memcheck on it I get thousands of warnings all referencing to "conditional jump or move depends on unninitialised value". When tracing the error, valgrind trace it back to brk and sbrk functions. I do not understand why this is happening?, and more importantly how to fix it?. Below a portion of my code.I have been looking for a similar post to mine