SUMMARY int-overflow in stack size Margin calculation STEPS TO REPRODUCE 1. run a multithreaded program which uses more stack than available with the following call: valgrind --tool=drd --show-stack-usage=yes ./myProg 2. drd reports: ==10476== thread 9 (which is a detached thread) finished and used 18223 bytes out of 16384 on its stack. Margin: 18446744073709549777 bytes. OBSERVED RESULT Margin shows a huge value EXPECTED RESULT Margin should show -1839 SOFTWARE/OS VERSIONS Linux Xubuntu 18.04
A fix has been checked in on the master branch. Please verify.