Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix intermittent LSan failures running "darwin-framework-tool tests list". #29666

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

The typical failure there looks like this:

==29620==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x106396e12 in calloc+0xa2 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x51e12)
    #1 0x7ff800dc9789 in map_images_nolock+0x24b (libobjc.A.dylib:x86_64h+0x1789)
    #2 0x7ff800dc94db in map_images+0x42 (libobjc.A.dylib:x86_64h+0x14db)
    #3 0x113d721fa in invocation function for block in dyld4::RuntimeState::setObjCNotifiers(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x112 (dyld:x86_64+0xf1fa)
    #4 0x113d6d6c8 in dyld4::RuntimeState::withLoadersReadLock(void () block_pointer)+0x28 (dyld:x86_64+0xa6c8)
    #5 0x113d720e1 in dyld4::RuntimeState::setObjCNotifiers(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x51 (dyld:x86_64+0xf0e1)
    #6 0x113d85d44 in dyld4::APIs::_dyld_objc_notify_register(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x4e (dyld:x86_64+0x22d44)
    #7 0x7ff800dc9343 in _objc_init+0x4fe (libobjc.A.dylib:x86_64h+0x1343)
    #8 0x7ff800d83992 in _os_object_init+0xc (libdispatch.dylib:x86_64+0x2992)
    #9 0x7ff800d911b7 in libdispatch_init+0x136 (libdispatch.dylib:x86_64+0x101b7)
    #10 0x7ff80bd34894 in libSystem_initializer+0xed (libSystem.B.dylib:x86_64+0x1894)
    #11 0x113d77e4e in invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const+0xb5 (dyld:x86_64+0x14e4e)
    #12 0x113d9eaac in invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const+0xf1 (dyld:x86_64+0x3baac)
    #13 0x113d95e25 in invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const+0x22c (dyld:x86_64+0x32e25)
    #14 0x113d64db2 in dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const+0x80 (dyld:x86_64+0x1db2)
    #15 0x113d95bb6 in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const+0xb2 (dyld:x86_64+0x32bb6)
    #16 0x113d9e603 in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const+0x1d1 (dyld:x86_64+0x3b603)
    #17 0x113d77d81 in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const+0x8f (dyld:x86_64+0x14d81)
    #18 0x113d7e659 in dyld4::PrebuiltLoader::runInitializers(dyld4::RuntimeState&) const+0x1d (dyld:x86_64+0x1b659)
    #19 0x113d8b76d in dyld4::APIs::runAllInitializersForMain()+0x25 (dyld:x86_64+0x2876d)
    #20 0x113d6938c in dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)+0xd72 (dyld:x86_64+0x638c)
    #21 0x113d684e3 in start+0x183 (dyld:x86_64+0x54e3)

…ist".

The typical failure there looks like this:

==29620==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x106396e12 in calloc+0xa2 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x51e12)
    #1 0x7ff800dc9789 in map_images_nolock+0x24b (libobjc.A.dylib:x86_64h+0x1789)
    #2 0x7ff800dc94db in map_images+0x42 (libobjc.A.dylib:x86_64h+0x14db)
    #3 0x113d721fa in invocation function for block in dyld4::RuntimeState::setObjCNotifiers(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x112 (dyld:x86_64+0xf1fa)
    #4 0x113d6d6c8 in dyld4::RuntimeState::withLoadersReadLock(void () block_pointer)+0x28 (dyld:x86_64+0xa6c8)
    #5 0x113d720e1 in dyld4::RuntimeState::setObjCNotifiers(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x51 (dyld:x86_64+0xf0e1)
    #6 0x113d85d44 in dyld4::APIs::_dyld_objc_notify_register(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x4e (dyld:x86_64+0x22d44)
    #7 0x7ff800dc9343 in _objc_init+0x4fe (libobjc.A.dylib:x86_64h+0x1343)
    #8 0x7ff800d83992 in _os_object_init+0xc (libdispatch.dylib:x86_64+0x2992)
    #9 0x7ff800d911b7 in libdispatch_init+0x136 (libdispatch.dylib:x86_64+0x101b7)
    #10 0x7ff80bd34894 in libSystem_initializer+0xed (libSystem.B.dylib:x86_64+0x1894)
    #11 0x113d77e4e in invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const+0xb5 (dyld:x86_64+0x14e4e)
    #12 0x113d9eaac in invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const+0xf1 (dyld:x86_64+0x3baac)
    #13 0x113d95e25 in invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const+0x22c (dyld:x86_64+0x32e25)
    #14 0x113d64db2 in dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const+0x80 (dyld:x86_64+0x1db2)
    #15 0x113d95bb6 in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const+0xb2 (dyld:x86_64+0x32bb6)
    #16 0x113d9e603 in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const+0x1d1 (dyld:x86_64+0x3b603)
    #17 0x113d77d81 in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const+0x8f (dyld:x86_64+0x14d81)
    #18 0x113d7e659 in dyld4::PrebuiltLoader::runInitializers(dyld4::RuntimeState&) const+0x1d (dyld:x86_64+0x1b659)
    #19 0x113d8b76d in dyld4::APIs::runAllInitializersForMain()+0x25 (dyld:x86_64+0x2876d)
    #20 0x113d6938c in dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)+0xd72 (dyld:x86_64+0x638c)
    #21 0x113d684e3 in start+0x183 (dyld:x86_64+0x54e3)
@bzbarsky-apple bzbarsky-apple force-pushed the fix-darwin-test-intermittents branch from 8ca6b16 to 2f7004f Compare October 9, 2023 20:14
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

PR #29666: Size comparison from 58875c3 to 2f7004f

Decreases (1 build for telink)
platform target config section 58875c3 2f7004f change % change
telink all-clusters-minimal-app tlsr9528a (read/write) 1092972 1092964 -8 -0.0
text 757918 757916 -2 -0.0
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 58875c3 2f7004f change % change
bl602 lighting-app bl602 (read/write) 1389690 1389690 0 0.0
.bss 88176 88176 0 0.0
.data 9368 9368 0 0.0
.text 1066314 1066314 0 0.0
bl602+mfd (read/write) 1403594 1403594 0 0.0
.bss 88344 88344 0 0.0
.data 9344 9344 0 0.0
.text 1081120 1081120 0 0.0
bl602+rpc (read/write) 1436950 1436950 0 0.0
.bss 96200 96200 0 0.0
.data 9744 9744 0 0.0
.text 1098046 1098046 0 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1193439 1193439 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 30893 30893 0 0.0
.bss_psram 65744 65744 0 0.0
.comment 48 48 0 0.0
.data 3568 3568 0 0.0
.debug_abbrev 1548067 1548067 0 0.0
.debug_aranges 138432 138432 0 0.0
.debug_frame 506592 506592 0 0.0
.debug_info 41939858 41939858 0 0.0
.debug_line 5369327 5369327 0 0.0
.debug_loc 3633508 3633508 0 0.0
.debug_ranges 433616 433616 0 0.0
.debug_str 4052333 4052333 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106380 106380 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 596892 596892 0 0.0
.symtab 177280 177280 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
960802 960802 0 0.0
bl702+mfd (read only) 3358 3358 0 0.0
(read/write) 1204015 1204015 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 31069 31069 0 0.0
.bss_psram 65744 65744 0 0.0
.comment 48 48 0 0.0
.data 3544 3544 0 0.0
.debug_abbrev 1550140 1550140 0 0.0
.debug_aranges 139600 139600 0 0.0
.debug_frame 511664 511664 0 0.0
.debug_info 41980476 41980476 0 0.0
.debug_line 5408714 5408714 0 0.0
.debug_loc 3671939 3671939 0 0.0
.debug_ranges 435616 435616 0 0.0
.debug_str 4057864 4057864 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 105320 105320 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 600652 600652 0 0.0
.symtab 179040 179040 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
972320 972320 0 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1292119 1292119 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 39357 39357 0 0.0
.bss_psram 65728 65728 0 0.0
.comment 48 48 0 0.0
.data 4112 4112 0 0.0
.debug_abbrev 1728961 1728961 0 0.0
.debug_aranges 147152 147152 0 0.0
.debug_frame 535940 535940 0 0.0
.debug_info 47090534 47090534 0 0.0
.debug_line 5787576 5787576 0 0.0
.debug_loc 3840601 3840601 0 0.0
.debug_ranges 461168 461168 0 0.0
.debug_str 4480918 4480918 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121520 121520 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 661905 661905 0 0.0
.symtab 196672 196672 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1034792 1034792 0 0.0
bl706-eth (read/write) 1042335 1042335 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 30006 30006 0 0.0
.bss_psram 97687 97687 0 0.0
.comment 48 48 0 0.0
.data 3248 3248 0 0.0
.debug_abbrev 1083882 1083882 0 0.0
.debug_aranges 115440 115440 0 0.0
.debug_frame 425992 425992 0 0.0
.debug_info 22692245 22692245 0 0.0
.debug_line 4301962 4301962 0 0.0
.debug_loc 3142508 3142508 0 0.0
.debug_ranges 369424 369424 0 0.0
.debug_str 3631687 3631687 0 0.0
.hbn 184 184 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 152 152 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 96080 96080 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 465187 465187 0 0.0
.symtab 139968 139968 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3338 3338 0 0.0
.text 0 0 0 0.0
786626 786626 0 0.0
bl706-wifi (read only) 3870 3870 0 0.0
(read/write) 1207442 1207442 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 14597 14597 0 0.0
.bss_psram 98455 98455 0 0.0
.comment 48 48 0 0.0
.data 3560 3560 0 0.0
.debug_abbrev 1176934 1176934 0 0.0
.debug_aranges 119616 119616 0 0.0
.debug_frame 618544 618544 0 0.0
.debug_info 23862319 23862319 0 0.0
.debug_line 4546167 4546167 0 0.0
.debug_loc 3242490 3242490 0 0.0
.debug_ranges 379312 379312 0 0.0
.debug_str 3703978 3703978 0 0.0
.hbn 468 468 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 109208 109208 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 505914 505914 0 0.0
.symtab 152832 152832 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3870 3870 0 0.0
.text 0 0 0 0.0
955140 955140 0 0.0
bl702l lighting-app bl702l (read only) 278 278 0 0.0
(read/write) 1156584 1156584 0 0.0
.boot2 292 292 0 0.0
.bss 20368 20368 0 0.0
.bss_psram 77184 77184 0 0.0
.comment 48 48 0 0.0
.data 4512 4512 0 0.0
.debug_abbrev 1542355 1542355 0 0.0
.debug_aranges 133296 133296 0 0.0
.debug_frame 487232 487232 0 0.0
.debug_info 41397855 41397855 0 0.0
.debug_line 5272462 5272462 0 0.0
.debug_loc 3577751 3577751 0 0.0
.debug_ranges 440152 440152 0 0.0
.debug_str 4076921 4076921 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 100360 100360 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 598518 598518 0 0.0
.symtab 176720 176720 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
943620 943620 0 0.0
bl702l+mfd (read only) 278 278 0 0.0
(read/write) 1167204 1167204 0 0.0
.boot2 292 292 0 0.0
.bss 20544 20544 0 0.0
.bss_psram 77184 77184 0 0.0
.comment 48 48 0 0.0
.data 4488 4488 0 0.0
.debug_abbrev 1544443 1544443 0 0.0
.debug_aranges 134464 134464 0 0.0
.debug_frame 492300 492300 0 0.0
.debug_info 41440516 41440516 0 0.0
.debug_line 5311726 5311726 0 0.0
.debug_loc 3616182 3616182 0 0.0
.debug_ranges 442152 442152 0 0.0
.debug_str 4082442 4082442 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 99300 99300 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 602346 602346 0 0.0
.symtab 178512 178512 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
955148 955148 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 734595 734595 0 0.0
(read/write) 166444 166444 0 0.0
.bss 88860 88860 0 0.0
.data 3420 3420 0 0.0
.rodata 84399 84399 0 0.0
.text 649804 649804 0 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 756091 756091 0 0.0
(read/write) 176700 176700 0 0.0
.bss 99084 99084 0 0.0
.data 3436 3436 0 0.0
.rodata 80087 80087 0 0.0
.text 675616 675616 0 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 743627 743627 0 0.0
(read/write) 171172 171172 0 0.0
.bss 93556 93556 0 0.0
.data 3436 3436 0 0.0
.rodata 106111 106111 0 0.0
.text 637128 637128 0 0.0
pump-app LP_EM_CC1354P10_6 (read only) 694651 694651 0 0.0
(read/write) 165536 165536 0 0.0
.bss 87728 87728 0 0.0
.data 3408 3408 0 0.0
.rodata 80271 80271 0 0.0
.text 613988 613988 0 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 680339 680339 0 0.0
(read/write) 165676 165676 0 0.0
.bss 87872 87872 0 0.0
.data 3404 3404 0 0.0
.rodata 76111 76111 0 0.0
.text 603836 603836 0 0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 617386 617386 0 0.0
(read/write) 206900 206900 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 200344 200344 0 0.0
.comment 206 206 0 0.0
.data 1436 1436 0 0.0
.debug_abbrev 936264 936264 0 0.0
.debug_aranges 108856 108856 0 0.0
.debug_frame 366968 366968 0 0.0
.debug_info 20635673 20635673 0 0.0
.debug_line 2659592 2659592 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1634528 1634528 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 112053 112053 0 0.0
.debug_str 3429354 3429354 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106282 106282 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 515384 515384 0 0.0
.symtab 298272 298272 0 0.0
.text 508984 508984 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 551583 551583 0 0.0
.app_xip_area 442785 442785 0 0.0
.bss 63768 63768 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 537735 537735 0 0.0
.app_xip_area 424145 424145 0 0.0
.bss 68536 68536 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 573671 573671 0 0.0
.app_xip_area 466201 466201 0 0.0
.bss 62512 62512 0 0.0
.data 588 588 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 549503 549503 0 0.0
.app_xip_area 438937 438937 0 0.0
.bss 65512 65512 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1006396 1006396 0 0.0
.bss 171940 171940 0 0.0
.data 2684 2684 0 0.0
.text 831748 831748 0 0.0
BRD4187C (read/write) 1088792 1088792 0 0.0
.bss 196064 196064 0 0.0
.data 3268 3268 0 0.0
.text 889440 889440 0 0.0
lock-app BRD4161A+wf200 (read/write) 1103648 1103648 0 0.0
.bss 186628 186628 0 0.0
.data 2696 2696 0 0.0
.text 914304 914304 0 0.0
window-app BRD4187C (read/write) 1123996 1123996 0 0.0
.bss 168472 168472 0 0.0
.data 3140 3140 0 0.0
.text 952364 952364 0 0.0
esp32 all-clusters-app c3devkit (read only) 1162116 1162116 0 0.0
(read/write) 1701860 1701860 0 0.0
.dram0.bss 77640 77640 0 0.0
.dram0.data 13060 13060 0 0.0
.flash.rodata 268432 268432 0 0.0
.flash.text 1162116 1162116 0 0.0
.iram0.text 75244 75244 0 0.0
m5stack (read only) 1205051 1205051 0 0.0
(read/write) 551794 551794 0 0.0
.dram0.bss 84288 84288 0 0.0
.dram0.data 34020 34020 0 0.0
.flash.rodata 299868 299868 0 0.0
.flash.text 1199667 1199667 0 0.0
.iram0.text 123287 123287 0 0.0
k32w contact k32w0+release (read only) 588508 588508 0 0.0
(read/write) 87512 87512 0 0.0
.bss 70760 70760 0 0.0
.data 2128 2128 0 0.0
.text 587972 587972 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 683728 683728 0 0.0
.bss 66976 66976 0 0.0
.data 2716 2716 0 0.0
.text 570560 570560 0 0.0
light k32w0+release (read only) 588236 588236 0 0.0
(read/write) 87188 87188 0 0.0
.bss 70448 70448 0 0.0
.data 2116 2116 0 0.0
.text 587700 587700 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 775436 775436 0 0.0
.bss 76628 76628 0 0.0
.data 1928 1928 0 0.0
.text 653424 653424 0 0.0
lock k32w0+release (read only) 559972 559972 0 0.0
(read/write) 85016 85016 0 0.0
.bss 68336 68336 0 0.0
.data 2056 2056 0 0.0
.text 559436 559436 0 0.0
linux all-clusters-app debug (read only) 5494161 5494161 0 0.0
(read/write) 420552 420552 0 0.0
.bss 130480 130480 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 278848 278848 0 0.0
.dynamic 624 624 0 0.0
.got 5384 5384 0 0.0
.init 27 27 0 0.0
.init_array 1328 1328 0 0.0
.rodata 335436 335436 0 0.0
.text 4777907 4777907 0 0.0
all-clusters-minimal-app debug (read only) 4873993 4873993 0 0.0
(read/write) 232688 232688 0 0.0
.bss 126512 126512 0 0.0
.data 3760 3760 0 0.0
.data.rel.ro 95280 95280 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 270333 270333 0 0.0
.text 4372547 4372547 0 0.0
bridge-app debug (read only) 2753001 2753001 0 0.0
(read/write) 133168 133168 0 0.0
.bss 51736 51736 0 0.0
.data 3680 3680 0 0.0
.data.rel.ro 71648 71648 0 0.0
.dynamic 624 624 0 0.0
.got 4640 4640 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 213280 213280 0 0.0
.text 2361955 2361955 0 0.0
chip-tool debug (read only) 10208297 10208297 0 0.0
(read/write) 443032 443032 0 0.0
.bss 93688 93688 0 0.0
.data 4994 4994 0 0.0
.data.rel.ro 337104 337104 0 0.0
.dynamic 624 624 0 0.0
.got 5808 5808 0 0.0
.init 27 27 0 0.0
.init_array 760 760 0 0.0
.rodata 386153 386153 0 0.0
.text 9225123 9225123 0 0.0
chip-tool-ipv6only arm64 (read only) 10078124 10078124 0 0.0
(read/write) 504792 504792 0 0.0
.bss 103032 103032 0 0.0
.data 4288 4288 0 0.0
.data.rel.ro 373648 373648 0 0.0
.dynamic 512 512 0 0.0
.got 18368 18368 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 314872 314872 0 0.0
.text 8997720 8997720 0 0.0
lighting-app debug+rpc+ui (read only) 5213105 5213105 0 0.0
(read/write) 222856 222856 0 0.0
.bss 118160 118160 0 0.0
.data 4416 4416 0 0.0
.data.rel.ro 92704 92704 0 0.0
.dynamic 672 672 0 0.0
.got 5928 5928 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 336212 336212 0 0.0
.text 4634003 4634003 0 0.0
lock-app debug (read only) 4450529 4450529 0 0.0
(read/write) 203128 203128 0 0.0
.bss 113424 113424 0 0.0
.data 3648 3648 0 0.0
.data.rel.ro 79288 79288 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 246813 246813 0 0.0
.text 3994099 3994099 0 0.0
ota-provider-app debug (read only) 4116529 4116529 0 0.0
(read/write) 192064 192064 0 0.0
.bss 113568 113568 0 0.0
.data 3920 3920 0 0.0
.data.rel.ro 68656 68656 0 0.0
.dynamic 624 624 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 200029 200029 0 0.0
.text 3725939 3725939 0 0.0
ota-requestor-app debug (read only) 4201961 4201961 0 0.0
(read/write) 196280 196280 0 0.0
.bss 114592 114592 0 0.0
.data 4160 4160 0 0.0
.data.rel.ro 71632 71632 0 0.0
.dynamic 624 624 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 203293 203293 0 0.0
.text 3803779 3803779 0 0.0
shell debug (read only) 2899985 2899985 0 0.0
(read/write) 153248 153248 0 0.0
.bss 61000 61000 0 0.0
.data 784 784 0 0.0
.data.rel.ro 85544 85544 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 211168 211168 0 0.0
.text 2515378 2515378 0 0.0
thermostat-no-ble arm64 (read only) 4345532 4345532 0 0.0
(read/write) 241832 241832 0 0.0
.bss 122168 122168 0 0.0
.data 2792 2792 0 0.0
.data.rel.ro 100528 100528 0 0.0
.dynamic 512 512 0 0.0
.got 11896 11896 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 161036 161036 0 0.0
.text 3849944 3849944 0 0.0
tv-app debug (read only) 5276993 5276993 0 0.0
(read/write) 350696 350696 0 0.0
.bss 241888 241888 0 0.0
.data 5024 5024 0 0.0
.data.rel.ro 96384 96384 0 0.0
.dynamic 624 624 0 0.0
.got 5608 5608 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 271117 271117 0 0.0
.text 4761795 4761795 0 0.0
tv-casting-app debug (read only) 8138897 8138897 0 0.0
(read/write) 312872 312872 0 0.0
.bss 155904 155904 0 0.0
.data 2464 2464 0 0.0
.data.rel.ro 147696 147696 0 0.0
.dynamic 624 624 0 0.0
.got 5080 5080 0 0.0
.init 27 27 0 0.0
.init_array 1088 1088 0 0.0
.rodata 336152 336152 0 0.0
.text 7401251 7401251 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2521784 2521784 0 0.0
.bss 219064 219064 0 0.0
.data 5128 5128 0 0.0
.text 1484468 1484468 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1227680 1227680 0 0.0
bss 154518 154518 0 0.0
rodata 142644 142644 0 0.0
text 851476 851476 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1347300 1347300 0 0.0
bss 140528 140528 0 0.0
rodata 136880 136880 0 0.0
text 779204 779204 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1160016 1160016 0 0.0
bss 153948 153948 0 0.0
rodata 113668 113668 0 0.0
text 813468 813468 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837512 837512 0 0.0
(read/write) 1778292 1778292 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 193300 193300 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2528 2528 0 0.0
.debug_abbrev 1379706 1379706 0 0.0
.debug_aranges 145560 145560 0 0.0
.debug_frame 482752 482752 0 0.0
.debug_info 32220546 32220546 0 0.0
.debug_line 4041238 4041238 0 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2317356 2317356 0 0.0
.debug_rnglists 155953 155953 0 0.0
.debug_str 4183198 4183198 0 0.0
.heap 837512 837512 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 844209 844209 0 0.0
.symtab 513744 513744 0 0.0
.text 1574076 1574076 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 840168 840168 0 0.0
(read/write) 1680788 1680788 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 190708 190708 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1260701 1260701 0 0.0
.debug_aranges 137360 137360 0 0.0
.debug_frame 461180 461180 0 0.0
.debug_info 28560922 28560922 0 0.0
.debug_line 3800389 3800389 0 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2190731 2190731 0 0.0
.debug_rnglists 147520 147520 0 0.0
.debug_str 3984838 3984838 0 0.0
.heap 840168 840168 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 741025 741025 0 0.0
.symtab 474560 474560 0 0.0
.text 1479228 1479228 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 846496 846496 0 0.0
(read/write) 1607196 1607196 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184492 184492 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2352 2352 0 0.0
.debug_abbrev 1101673 1101673 0 0.0
.debug_aranges 127424 127424 0 0.0
.debug_frame 424112 424112 0 0.0
.debug_info 23682112 23682112 0 0.0
.debug_line 3375171 3375171 0 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 2027456 2027456 0 0.0
.debug_rnglists 137072 137072 0 0.0
.debug_str 3791920 3791920 0 0.0
.heap 846496 846496 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 654117 654117 0 0.0
.symtab 436016 436016 0 0.0
.text 1411964 1411964 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 819232 819232 0 0.0
(read/write) 1640204 1640204 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 211740 211740 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2368 2368 0 0.0
.debug_abbrev 1093864 1093864 0 0.0
.debug_aranges 126056 126056 0 0.0
.debug_frame 419136 419136 0 0.0
.debug_info 23485379 23485379 0 0.0
.debug_line 3325753 3325753 0 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 2002942 2002942 0 0.0
.debug_rnglists 135013 135013 0 0.0
.debug_str 3753910 3753910 0 0.0
.heap 819232 819232 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 627661 627661 0 0.0
.symtab 427600 427600 0 0.0
.text 1417708 1417708 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1175576 1175576 0 0.0
.bss 100616 100616 0 0.0
.data 740 740 0 0.0
.text 622416 622416 0 0.0
lock-app qpg6105+debug (read/write) 1132368 1132368 0 0.0
.bss 95320 95320 0 0.0
.data 744 744 0 0.0
.text 579212 579212 0 0.0
telink air-quality-sensor-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 874080 874080 0 0.0
bss 78044 78044 0 0.0
text 618464 618464 0 0.0
all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1147948 1147948 0 0.0
bss 113224 113224 0 0.0
text 799462 799462 0 0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1092972 1092964 -8 -0.0
bss 122244 122244 0 0.0
text 757918 757916 -2 -0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 948596 948596 0 0.0
bss 106888 106888 0 0.0
text 655304 655304 0 0.0
contact-sensor-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 877444 877444 0 0.0
bss 78124 78124 0 0.0
text 621578 621578 0 0.0
light-switch-app-rpc-shell-factory-data tlsr9528a (read only) 4 4 0 0.0
(read/write) 923460 923460 0 0.0
bss 83072 83072 0 0.0
text 659666 659666 0 0.0
lighting-app-rpc-shell-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 999216 999216 0 0.0
bss 109148 109148 0 0.0
text 702458 702458 0 0.0
lock-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 933368 933368 0 0.0
bss 78816 78816 0 0.0
text 650726 650726 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 962228 962228 0 0.0
bss 104988 104988 0 0.0
text 671358 671358 0 0.0
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 881324 881324 0 0.0
bss 78228 78228 0 0.0
text 625798 625798 0 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 822248 822248 0 0.0
bss 66240 66240 0 0.0
text 592900 592900 0 0.0
resource-monitoring-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 837836 837836 0 0.0
bss 66656 66656 0 0.0
text 603400 603400 0 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 716056 716056 0 0.0
bss 86424 86424 0 0.0
text 469696 469696 0 0.0
smoke_co_alarm-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 879300 879300 0 0.0
bss 78208 78208 0 0.0
text 624370 624370 0 0.0
temperature-measurement-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 865116 865116 0 0.0
bss 77928 77928 0 0.0
text 612318 612318 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 843352 843352 0 0.0
bss 66540 66540 0 0.0
text 608272 608272 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 840600 840600 0 0.0
bss 66892 66892 0 0.0
text 605108 605108 0 0.0

@bzbarsky-apple
Copy link
Contributor Author

Fast-tracking platform-specific fix with platform owner review.

@mergify mergify bot merged commit b846dbe into project-chip:master Oct 10, 2023
52 checks passed
@bzbarsky-apple bzbarsky-apple deleted the fix-darwin-test-intermittents branch October 10, 2023 12:19
HunsupJung pushed a commit to HunsupJung/connectedhomeip that referenced this pull request Oct 23, 2023
…ist". (project-chip#29666)

The typical failure there looks like this:

==29620==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x106396e12 in calloc+0xa2 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x51e12)
    #1 0x7ff800dc9789 in map_images_nolock+0x24b (libobjc.A.dylib:x86_64h+0x1789)
    #2 0x7ff800dc94db in map_images+0x42 (libobjc.A.dylib:x86_64h+0x14db)
    project-chip#3 0x113d721fa in invocation function for block in dyld4::RuntimeState::setObjCNotifiers(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x112 (dyld:x86_64+0xf1fa)
    project-chip#4 0x113d6d6c8 in dyld4::RuntimeState::withLoadersReadLock(void () block_pointer)+0x28 (dyld:x86_64+0xa6c8)
    project-chip#5 0x113d720e1 in dyld4::RuntimeState::setObjCNotifiers(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x51 (dyld:x86_64+0xf0e1)
    project-chip#6 0x113d85d44 in dyld4::APIs::_dyld_objc_notify_register(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*))+0x4e (dyld:x86_64+0x22d44)
    project-chip#7 0x7ff800dc9343 in _objc_init+0x4fe (libobjc.A.dylib:x86_64h+0x1343)
    project-chip#8 0x7ff800d83992 in _os_object_init+0xc (libdispatch.dylib:x86_64+0x2992)
    project-chip#9 0x7ff800d911b7 in libdispatch_init+0x136 (libdispatch.dylib:x86_64+0x101b7)
    project-chip#10 0x7ff80bd34894 in libSystem_initializer+0xed (libSystem.B.dylib:x86_64+0x1894)
    project-chip#11 0x113d77e4e in invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const+0xb5 (dyld:x86_64+0x14e4e)
    project-chip#12 0x113d9eaac in invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const+0xf1 (dyld:x86_64+0x3baac)
    project-chip#13 0x113d95e25 in invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const+0x22c (dyld:x86_64+0x32e25)
    project-chip#14 0x113d64db2 in dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const+0x80 (dyld:x86_64+0x1db2)
    project-chip#15 0x113d95bb6 in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const+0xb2 (dyld:x86_64+0x32bb6)
    project-chip#16 0x113d9e603 in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const+0x1d1 (dyld:x86_64+0x3b603)
    project-chip#17 0x113d77d81 in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const+0x8f (dyld:x86_64+0x14d81)
    project-chip#18 0x113d7e659 in dyld4::PrebuiltLoader::runInitializers(dyld4::RuntimeState&) const+0x1d (dyld:x86_64+0x1b659)
    project-chip#19 0x113d8b76d in dyld4::APIs::runAllInitializersForMain()+0x25 (dyld:x86_64+0x2876d)
    project-chip#20 0x113d6938c in dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)+0xd72 (dyld:x86_64+0x638c)
    project-chip#21 0x113d684e3 in start+0x183 (dyld:x86_64+0x54e3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants