Bug 1363976 - Suppress global_style_data for LSAN. r=bholley draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Mon, 07 Aug 2017 19:55:51 -0500
changeset 642402 e74a456dc09436395907652cb7aab5dba5d9cc92
parent 642401 fb78ab52fdf9a46966586c02be133c46425897be
child 724976 54a1bc5eae2f7ccf668b90376f72c12220c000f9
push id72727
push userbmo:jryans@gmail.com
push dateTue, 08 Aug 2017 04:35:58 +0000
reviewersbholley
bugs1363976
milestone57.0a1
Bug 1363976 - Suppress global_style_data for LSAN. r=bholley Suppress leaks for allocations where any stack frame matches the string style::gecko::global_style_data. This could be dangerous if someone were to allocate non-global things with this on the stack, but hopefully that can be avoided, given the name of the module. MozReview-Commit-ID: 65HpUGsgPPM
build/sanitizers/lsan_suppressions.txt
--- a/build/sanitizers/lsan_suppressions.txt
+++ b/build/sanitizers/lsan_suppressions.txt
@@ -21,16 +21,19 @@ leak:pixman_implementation_lookup_compos
 # Bug 987918 - Font shutdown leaks when CLEANUP_MEMORY is not enabled.
 leak:libfontconfig.so
 leak:GI___strdup
 # The symbol is really __GI___strdup, but if you have the leading _, it doesn't suppress it.
 
 # Bug 1078015 - If the process terminates during a PR_Sleep, LSAN  detects a leak
 leak:PR_Sleep
 
+# Bug 1363976 - Stylo holds some global data alive forever.
+leak:style::gecko::global_style_data
+
 ###
 ### Many leaks only affect some test suites.  The suite annotations are not checked.
 ###
 
 # Bug 979928 - WebRTC leaks in different mochitest suites.
 leak:NR_reg_init
 # nr_reg_local_init should be redundant with NR_reg_init, but on Aurora
 # we get fewer stack frames for some reason.