Closed
Bug 1246801
Opened 9 years ago
Closed 8 years ago
Leak Sanitizer (LSan) support for NSS
Categories
(NSS :: Build, defect, P2)
NSS
Build
Tracking
(firefox47 affected)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox47 | --- | affected |
People
(Reporter: jld, Assigned: ttaubert)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(5 files)
1.05 KB,
patch
|
franziskus
:
review+
ttaubert
:
checked-in+
|
Details | Diff | Splinter Review |
1.03 KB,
patch
|
franziskus
:
review+
ttaubert
:
checked-in+
|
Details | Diff | Splinter Review |
876 bytes,
patch
|
franziskus
:
review+
ttaubert
:
checked-in+
|
Details | Diff | Splinter Review |
845 bytes,
patch
|
franziskus
:
review+
|
Details | Diff | Splinter Review |
691 bytes,
patch
|
franziskus
:
review+
|
Details | Diff | Splinter Review |
Bug 1233568 will enable Address Sanitizer support for NSS, for detecting use-after-free and buffer-overrun bugs and such, but disables the accompanying memory leak checker. Enabling it will require going through the leaks reported in the test suite, deciding which ones are real bugs that need to be fixed, and either fixing them or (if not simple to fix) filing bugs and adding suppressions pending a fix, as well as suppressing any considered to be false positives.
Reporter | ||
Comment 1•9 years ago
|
||
Some of this work has already been done — tests/memleak/ignored should at least be a starting point for a suppression list for LSan. Firefox also has an LSan suppression file, but it doesn't have much from NSS or NSPR.
Comment 2•9 years ago
|
||
local_suppressor.py from https://github.com/amccreight/mochitest-logs is useful when trying to build up a suppression list to cover a particular run. It attempts to simulate which leaking stacks would be suppressed with a given suppression file.
Assignee | ||
Updated•8 years ago
|
Priority: -- → P2
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•8 years ago
|
||
http://clang.llvm.org/docs/AddressSanitizer.html proposes to disable tail call elimination for better stack traces.
Attachment #8765417 -
Flags: review?(franziskuskiefer)
Assignee | ||
Comment 5•8 years ago
|
||
This patch adds NSS_ENABLE_LSAN, a runtime flag that allows to leave LSan enabled. We need it to switch on LSan for selected builds/tests until all leaks are fixed.
Attachment #8765423 -
Flags: review?(franziskuskiefer)
Assignee | ||
Comment 6•8 years ago
|
||
This would use the new NSS_ENABLE_LSAN flag and create a new "lsan" row on TreeHerder, until we can merge ASan and ASan/LSan back together. For a start, we get a build and a cert.sh run with that.
Attachment #8765434 -
Flags: review?(franziskuskiefer)
Updated•8 years ago
|
Attachment #8765417 -
Flags: review?(franziskuskiefer) → review+
Updated•8 years ago
|
Attachment #8765434 -
Flags: review?(franziskuskiefer) → review+
Updated•8 years ago
|
Attachment #8765423 -
Flags: review?(franziskuskiefer) → review+
Assignee | ||
Comment 7•8 years ago
|
||
https://hg.mozilla.org/projects/nss/rev/6c5f450d6230
https://hg.mozilla.org/projects/nss/rev/3b37387c214c
https://hg.mozilla.org/projects/nss/rev/bc84de92fd16
Keywords: leave-open
Assignee | ||
Comment 8•8 years ago
|
||
Attachment #8765819 -
Flags: review?(franziskuskiefer)
Assignee | ||
Updated•8 years ago
|
Attachment #8765417 -
Flags: checked-in+
Assignee | ||
Updated•8 years ago
|
Attachment #8765423 -
Flags: checked-in+
Assignee | ||
Updated•8 years ago
|
Attachment #8765434 -
Flags: checked-in+
Assignee | ||
Comment 9•8 years ago
|
||
Attachment #8765841 -
Flags: review?(franziskuskiefer)
Updated•8 years ago
|
Attachment #8765819 -
Flags: review?(franziskuskiefer) → review+
Updated•8 years ago
|
Attachment #8765841 -
Flags: review?(franziskuskiefer) → review+
Assignee | ||
Comment 10•8 years ago
|
||
Assignee | ||
Comment 11•8 years ago
|
||
Enabling ocsp tests:
https://hg.mozilla.org/projects/nss/rev/db127467b4b1
Assignee | ||
Comment 12•8 years ago
|
||
Enabling lowhash, pkits, sdr tests:
https://hg.mozilla.org/projects/nss/rev/017961acef77
Assignee | ||
Comment 13•8 years ago
|
||
Set NSS_DISABLE_UNLOAD=1 for LSan runs:
https://hg.mozilla.org/projects/nss/rev/9e0b4530a2ea
Assignee | ||
Comment 14•8 years ago
|
||
Use docker image v0.0.17, use clang-3.8 for ASan/LSan runs:
https://hg.mozilla.org/projects/nss/rev/b2730e41497e
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•8 years ago
|
||
Comment 16•7 years ago
|
||
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•