mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Compile sanitizer suppressions list and file bugs as necessary. (flutter/engine#12991)
This commit is contained in:
parent
b05e9e7d6a
commit
3873eeabb6
@ -72,7 +72,7 @@ class LayerTree {
|
||||
}
|
||||
|
||||
private:
|
||||
SkISize frame_size_; // Physical pixels.
|
||||
SkISize frame_size_ = SkISize::MakeEmpty(); // Physical pixels.
|
||||
std::shared_ptr<Layer> root_layer_;
|
||||
fml::TimePoint build_start_;
|
||||
fml::TimePoint build_finish_;
|
||||
|
||||
42
engine/src/flutter/testing/lsan_suppressions.txt
Normal file
42
engine/src/flutter/testing/lsan_suppressions.txt
Normal file
@ -0,0 +1,42 @@
|
||||
# For more information on how to add additional suppressions here go to
|
||||
# https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions
|
||||
|
||||
# The Dart VM has incorrectly annotated false positives that we don't care
|
||||
# about.
|
||||
leak:dart::*
|
||||
|
||||
# Objective-C class definitions are not leaks.
|
||||
leak:class_createInstance
|
||||
|
||||
# SkSurfaces from Embedder backing stores may not be collected on engine
|
||||
# shutdown.
|
||||
# https://github.com/flutter/flutter/issues/42172
|
||||
leak:MakeSkSurfaceFromBackingStore
|
||||
|
||||
# dispatch_once blocks don't cleanup their contents.
|
||||
leak:_dispatch_once_callout
|
||||
|
||||
# Message loops in TLS slots may not be collected.
|
||||
# https://github.com/flutter/flutter/issues/42174
|
||||
leak:fml::MessageLoop::EnsureInitializedForCurrentThread
|
||||
|
||||
# CFRunLoopSource in MessageLoopDarwin not being collected
|
||||
# https://github.com/flutter/flutter/issues/42175
|
||||
leak:wrap_dispatch_source_set_event_handler
|
||||
|
||||
|
||||
# Dispatched platform message that are not handled due to isolate death are
|
||||
# leaked.
|
||||
# https://github.com/flutter/flutter/issues/42176
|
||||
leak:flutter::PlatformViewEmbedder::HandlePlatformMessage
|
||||
|
||||
# Service ID platform message is leaked in case the isolate dies before the
|
||||
# message is received by the the same.
|
||||
# https://github.com/flutter/flutter/issues/42178
|
||||
leak:flutter::Engine::Run(flutter::RunConfiguration)
|
||||
|
||||
# Font families on are leaked when launching the shell.
|
||||
# https://github.com/flutter/flutter/issues/42179
|
||||
leak:txt::FontCollection::CreateMinikinFontFamily
|
||||
leak:CGFontCreateFontsWithURL
|
||||
leak:txt::GetDefaultFontFamily
|
||||
16
engine/src/flutter/testing/sanitizer_suppressions.sh
Executable file
16
engine/src/flutter/testing/sanitizer_suppressions.sh
Executable file
@ -0,0 +1,16 @@
|
||||
CURRENT_DIRECTORY="$(pwd)/$(dirname "$0")"
|
||||
|
||||
TSAN_SUPPRESSIONS_FILE="${CURRENT_DIRECTORY}/tsan_suppressions.txt"
|
||||
export TSAN_OPTIONS="suppressions=${TSAN_SUPPRESSIONS_FILE}"
|
||||
echo "Using Thread Sanitizer suppressions in ${TSAN_SUPPRESSIONS_FILE}"
|
||||
|
||||
LSAN_SUPPRESSIONS_FILE="${CURRENT_DIRECTORY}/lsan_suppressions.txt"
|
||||
export LSAN_OPTIONS="suppressions=${LSAN_SUPPRESSIONS_FILE}"
|
||||
echo "Using Leak Sanitizer suppressions in ${LSAN_SUPPRESSIONS_FILE}"
|
||||
|
||||
UBSAN_SUPPRESSIONS_FILE="${CURRENT_DIRECTORY}/ubsan_suppressions.txt"
|
||||
export UBSAN_OPTIONS="suppressions=${UBSAN_SUPPRESSIONS_FILE}"
|
||||
echo "Using Undefined Behavior suppressions in ${UBSAN_SUPPRESSIONS_FILE}"
|
||||
|
||||
|
||||
export ASAN_OPTIONS="detect_leaks=1"
|
||||
14
engine/src/flutter/testing/tsan_suppressions.txt
Normal file
14
engine/src/flutter/testing/tsan_suppressions.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# For more information on how to add additional suppressions here go to
|
||||
# https://github.com/google/sanitizers/wiki/ThreadSanitizerSuppressions
|
||||
|
||||
# We don't care about errors from the Dart VM.
|
||||
race:dart::*
|
||||
|
||||
# Data race on animator begin frame when the engine is shutting down.
|
||||
# https://github.com/flutter/flutter/issues/42190
|
||||
race:flutter::Shell::OnAnimatorBeginFrame
|
||||
race:flutter::Shell::OnAnimatorNotifyIdle
|
||||
|
||||
# Data race in MessageLoopTaskQueues disposal.
|
||||
# https://github.com/flutter/flutter/issues/42192
|
||||
race:fml::MessageLoopTaskQueues::Dispose
|
||||
10
engine/src/flutter/testing/ubsan_suppressions.txt
Normal file
10
engine/src/flutter/testing/ubsan_suppressions.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# For more information on how to add additional suppressions here go to
|
||||
# https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#id13
|
||||
|
||||
# Ignore errors is Dart VM.
|
||||
alignment:third_party/dart
|
||||
null:third_party/dart
|
||||
|
||||
# Ignore errors in SwiftShader
|
||||
undefined:third_party/swiftshader
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user