Closed
Bug 793509
Opened 12 years ago
Closed 12 years ago
Run Valgrind on tbpl machines with "--show-possibly-lost=no" and "--smc-check=all-non-file" instead of "--smc-check=all"
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: gkw, Assigned: gkw)
References
Details
(Whiteboard: [valgrind])
Attachments
(1 file)
Valgrind tbpl build logs are truncated: Output exceeded 52428800 bytes, remaining output has been truncated program finished with exit code 1 elapsedTime=22965.008494 (see https://tbpl.mozilla.org/php/getParsedLog.php?id=15458553&tree=Firefox ) Can we increase the threshold?
Comment 1•12 years ago
|
||
The 50MB limit is set at the buildbot master level, and it looks like we can't raise it for individual jobs. It's there to protect the masters from the load of handling data when jobs end up in a loop that spam the log. Perhaps we can turn the question around - is the 50MB of log we're getting now all useful ? With appropriate suppressions and or fixes would it be below 50MB ?
Component: Release Engineering → Release Engineering: Automation (General)
QA Contact: catlee
Assignee | ||
Comment 2•12 years ago
|
||
> Perhaps we can turn the question around - is the 50MB of log we're getting
> now all useful ? With appropriate suppressions and or fixes would it be
> below 50MB ?
The log is useful for me if it finds leaks that are "definitely lost". There are a lot of other leaks that are "possibly lost", meaning we could use "--show-possibly-lost=no" to suppress them. I don't really look at "possibly lost" leaks because I have no way to tell if they are false positives or not.
Julian, do you think it is worth running Valgrind on tbpl machines with "--show-possibly-lost=no"? Will we be losing results?
Summary: Valgrind tbpl logs should not be truncated → Consider running Valgrind on tbpl machines with "--show-possibly-lost=no"
Comment 3•12 years ago
|
||
> do you think it is worth running Valgrind on tbpl machines with
> "--show-possibly-lost=no"?
Yes! Ignore possible leaks. A possible leak is when you have a pointer to the middle of a heap block instead of the start of a heap block -- in C, it's suspicious but possibly ok, depending on what the program is doing. But I'm pretty sure it can happen legitimately in C++ code, and in an app as big and complex as Firefox I'll bet other parts of the code are being "clever" with their pointers like this.
Assignee | ||
Updated•12 years ago
|
Summary: Consider running Valgrind on tbpl machines with "--show-possibly-lost=no" → Run Valgrind on tbpl machines with "--show-possibly-lost=no"
(In reply to Nicholas Nethercote [:njn] from comment #3) > > do you think it is worth running Valgrind on tbpl machines with > > "--show-possibly-lost=no"? > > Yes! Ignore possible leaks. A possible leak is when you have a pointer to > the middle of a heap block instead of the start of a heap block -- in C, > it's suspicious but possibly ok, depending on what the program is doing. > But I'm pretty sure it can happen legitimately in C++ code, and in an app as > big and complex as Firefox I'll bet other parts of the code are being > "clever" with their pointers like this. It happen easily in anything with multiple inheritance, such as an XPCOM object.
Assignee | ||
Comment 5•12 years ago
|
||
nthomas points out the commands are in: http://hg.mozilla.org/build/tools/file/default/scripts/valgrind/valgrind.sh and while we're doing it, we should probably switch to --smc-check=all-non-file as well.
Assignee | ||
Updated•12 years ago
|
Summary: Run Valgrind on tbpl machines with "--show-possibly-lost=no" → Run Valgrind on tbpl machines with "--show-possibly-lost=no" and "--smc-check=all-non-file" instead of "--smc-check=all"
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Comment 7•12 years ago
|
||
For --smc-check=all-non-file, which we use when fuzzing Spidermonkey with Valgrind as well, see: http://valgrind.org/docs/manual/manual-core.html#manual-core.rareopts
Comment 8•12 years ago
|
||
Comment on attachment 663886 [details] [diff] [review] patch to add --show-possibly-lost=no and replace --smc-check=all with --smc-check=all-non-file *stamp*
Attachment #663886 -
Flags: review?(nthomas) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Pushed: http://hg.mozilla.org/build/tools/rev/77fe45302ac7
Assignee | ||
Updated•12 years ago
|
OS: All → Linux
Assignee | ||
Comment 10•12 years ago
|
||
From tbpl Valgrind logs: debugger_args='--error-exitcode=1 --smc-check=all-non-file --gen-suppressions=all --leak-check=full --num-callers=50 --show-possibly-lost=no' -> FIXED, and VERIFIED for good measure.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•6 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•