Bug 405716 - int-overflow in stack size Margin calculation
Summary: int-overflow in stack size Margin calculation
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: drd (show other bugs)
Version: 3.13.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Bart Van Assche
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-21 10:10 UTC by alsdfjoiloeilt4o23l34jjjlskfjsadoh8s7df736giwqk
Modified: 2019-03-22 03:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alsdfjoiloeilt4o23l34jjjlskfjsadoh8s7df736giwqk 2019-03-21 10:10:49 UTC
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
Comment 1 Bart Van Assche 2019-03-22 03:10:20 UTC
A fix has been checked in on the master branch. Please verify.