File tree 4 files changed +26
-0
lines changed
4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,9 @@ jobs:
377
377
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
378
378
- name : Setup Build, Run Build and Run Tests
379
379
timeout-minutes : 120
380
+ # We can't enable leak checking here in LSAN_OPTIONS, because on
381
+ # Darwin that's only supported with a new endough clang, and we're
382
+ # not building with the pigweed clang here.
380
383
run : |
381
384
for BUILD_TYPE in default python_lib; do
382
385
case $BUILD_TYPE in
Original file line number Diff line number Diff line change 35
35
build_variant : [no-ble-asan]
36
36
env :
37
37
BUILD_VARIANT : ${{matrix.build_variant}}
38
+ LSAN_OPTIONS : detect_leaks=1 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
38
39
39
40
if : github.actor != 'restyled-io[bot]'
40
41
runs-on : macos-latest
Original file line number Diff line number Diff line change 38
38
BUILD_VARIANT : ${{matrix.build_variant}}
39
39
CHIP_TOOL_VARIANT : ${{matrix.chip_tool}}
40
40
TSAN_OPTIONS : " halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
41
+ LSAN_OPTIONS : detect_leaks=1
41
42
42
43
if : github.actor != 'restyled-io[bot]'
43
44
runs-on : ubuntu-latest
@@ -132,6 +133,7 @@ jobs:
132
133
BUILD_VARIANT : ${{matrix.build_variant}}
133
134
CHIP_TOOL_VARIANT : ${{matrix.chip_tool}}
134
135
TSAN_OPTIONS : " halt_on_error=1"
136
+ LSAN_OPTIONS : detect_leaks=1 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
135
137
136
138
if : github.actor != 'restyled-io[bot]'
137
139
runs-on : macos-latest
Original file line number Diff line number Diff line change
1
+ # Looks like some Objective C class bits are leaked, which is probably OK since
2
+ # those are singletons.
3
+ leak:realizeClassWithoutSwift
4
+ leak:objc_initializeClassPair_internal
5
+
6
+ # TODO: Under [NSManagedObjectContext executeFetchRequest] there are managed object bits that seem to be leaky.
7
+ leak:class_addMethod
8
+ leak:class_addIvar
9
+
10
+ # TODO: Leaks of blocks from dispatch source handlers that need to be investigated.
11
+ leak:_Block_copy
12
+
13
+ # TODO: OpenSSL random byte generation creates some sort of pools that we seem to never clean up. This seems to be happening a _lot_.
14
+ leak:drbg_ctr_init
15
+ leak:rand_pool_new
16
+ leak:RAND_priv_bytes
17
+ leak:drbg_bytes
18
+
19
+ # TODO: OpenSSL ERR_get_state seems to leak.
20
+ leak:ERR_get_state
You can’t perform that action at this time.
0 commit comments