wickwirew/Runtime

Runtime tests fall over when run with address sanitizer - Part2

adam-fowler opened this issue · 0 comments

Once #88 is merged there are still a number of ASan issues. The tests that fail are

  • GetSetStructTests.testGetSimple()
  • All the ValueWitnessTableTests

All of these fail when accessing data in NominalMetadataType. The first fail is in numberOfFields.
Here is the ASan output

Test Case '-[RuntimeTests.GetSetStructTests testGetSimple]' started.
=================================================================
==6502==ERROR: AddressSanitizer: global-buffer-overflow on address 0x00010ecff141 at pc 0x00010014d0ad bp 0x7ffeefbfb170 sp 0x7ffeefbfa930
READ of size 44 at 0x00010ecff141 thread T0
    #0 0x10014d0ac in wrap_memcpy+0x16c (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1d0ac)
    #1 0x10ecb6b1c in __swift_memcpy44_4+0x1c (RuntimeTests:x86_64+0xd9b1c)
    #2 0x10eccb24e in NominalMetadataType.numberOfFields()+0x84e (RuntimeTests:x86_64+0xee24e)
    #3 0x10eccbc84 in NominalMetadataType.fieldOffsets()+0x7e4 (RuntimeTests:x86_64+0xeec84)
    #4 0x10ecccae7 in NominalMetadataType.properties()+0x527 (RuntimeTests:x86_64+0xefae7)
    #5 0x10ecd1263 in StructMetadata.toTypeInfo()+0xa13 (RuntimeTests:x86_64+0xf4263)
    #6 0x10ecd206f in protocol witness for TypeInfoConvertible.toTypeInfo() in conformance StructMetadata+0xcf (RuntimeTests:x86_64+0xf506f)
    #7 0x10ece3b99 in typeInfo(of:)+0xa09 (RuntimeTests:x86_64+0x106b99)
    #8 0x10ec1fefc in GetSetStructTests.testGetSimple() GetSetStructTests.swift:70
    #9 0x10ec207d2 in @objc GetSetStructTests.testGetSimple() <compiler-generated>
    #10 0x7fff205e856b in __invoking___+0x8b (CoreFoundation:x86_64h+0x6456b)
    #11 0x7fff205e840f in -[NSInvocation invoke]+0x12e (CoreFoundation:x86_64h+0x6440f)
    #12 0x1010a8bfc in __24-[XCTestCase invokeTest]_block_invoke_3+0x33 (XCTest:x86_64+0x30bfc)
    #13 0x10117c3e8 in +[XCTSwiftErrorObservation observeErrorsInBlock:]+0x44 (XCTest:x86_64+0x1043e8)
    #14 0x1010a8afe in __24-[XCTestCase invokeTest]_block_invoke_2+0x76 (XCTest:x86_64+0x30afe)
    #15 0x10113fb75 in -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:]+0x40 (XCTest:x86_64+0xc7b75)
    #16 0x1010b3a3d in -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:]+0x3c (XCTest:x86_64+0x3ba3d)
    #17 0x1010a8a44 in __24-[XCTestCase invokeTest]_block_invoke.262+0xc6 (XCTest:x86_64+0x30a44)
    #18 0x1011205d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa85d7)
    #19 0x1010a8507 in -[XCTestCase invokeTest]+0x40c (XCTest:x86_64+0x30507)
    #20 0x1010aa17d in __26-[XCTestCase performTest:]_block_invoke_2+0x2a (XCTest:x86_64+0x3217d)
    #21 0x1011205d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa85d7)
    #22 0x1010aa0b4 in __26-[XCTestCase performTest:]_block_invoke.393+0x55 (XCTest:x86_64+0x320b4)
    #23 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
    #24 0x1010a98c1 in -[XCTestCase performTest:]+0x2bd (XCTest:x86_64+0x318c1)
    #25 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
    #26 0x1010a164c in -[XCTestSuite runTestBasedOnRerunPolicy:testRun:]+0x9a (XCTest:x86_64+0x2964c)
    #27 0x1010a14c1 in __27-[XCTestSuite performTest:]_block_invoke+0xfc (XCTest:x86_64+0x294c1)
    #28 0x1010a0d15 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x28d15)
    #29 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
    #30 0x1010a0ccc in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x9e (XCTest:x86_64+0x28ccc)
    #31 0x1010a0fd0 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x28fd0)
    #32 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
    #33 0x1010a164c in -[XCTestSuite runTestBasedOnRerunPolicy:testRun:]+0x9a (XCTest:x86_64+0x2964c)
    #34 0x1010a14c1 in __27-[XCTestSuite performTest:]_block_invoke+0xfc (XCTest:x86_64+0x294c1)
    #35 0x1010a0d15 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x28d15)
    #36 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
    #37 0x1010a0ccc in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x9e (XCTest:x86_64+0x28ccc)
    #38 0x1010a0fd0 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x28fd0)
    #39 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
    #40 0x1010a164c in -[XCTestSuite runTestBasedOnRerunPolicy:testRun:]+0x9a (XCTest:x86_64+0x2964c)
    #41 0x1010a14c1 in __27-[XCTestSuite performTest:]_block_invoke+0xfc (XCTest:x86_64+0x294c1)
    #42 0x1010a0d15 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x28d15)
    #43 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
    #44 0x1010a0ccc in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x9e (XCTest:x86_64+0x28ccc)
    #45 0x1010a0fd0 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x28fd0)
    #46 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
    #47 0x1011542ce in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke_2+0x93 (XCTest:x86_64+0xdc2ce)
    #48 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
    #49 0x101154233 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke+0x6e (XCTest:x86_64+0xdc233)
    #50 0x1011543b4 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.87+0x5f (XCTest:x86_64+0xdc3b4)
    #51 0x1010ca684 in -[XCTestObservationCenter _observeTestExecutionForBlock:]+0x144 (XCTest:x86_64+0x52684)
    #52 0x101153fab in -[XCTTestRunSession runTestsAndReturnError:]+0x1d8 (XCTest:x86_64+0xdbfab)
    #53 0x101085338 in -[XCTestDriver _runTests]+0x1d1 (XCTest:x86_64+0xd338)
    #54 0x10112f1b7 in _XCTestMain+0x6b (XCTest:x86_64+0xb71b7)
    #55 0x100006530 in main+0x194 (xctest:x86_64+0x100006530)
    #56 0x7fff20528620 in start+0x0 (libdyld.dylib:x86_64+0x15620)

0x00010ecff141 is located 0 bytes to the right of global variable '' defined in '/Users/adamfowler/Library/Developer/Xcode/DerivedData/Runtime-alpyovrntiajzygbbctjlczjhope/Build/Intermediates.noindex/Runtime.build/Debug/RuntimeTests.build/Objects-normal-asan/x86_64/GetSetStructTests.o' (0x10ecff140) of size 1
  '' is ascii string ''
SUMMARY: AddressSanitizer: global-buffer-overflow (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1d0ac) in wrap_memcpy+0x16c
Shadow bytes around the buggy address:
  0x100021d9fdd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x100021d9fde0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x100021d9fdf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x100021d9fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x100021d9fe10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x100021d9fe20: 00 00 00 00 00 00 00 00[01]f9 f9 f9 f9 f9 f9 f9
  0x100021d9fe30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x100021d9fe40: 00 00 00 00 00 00 00 00 00 00 00 00 01 f9 f9 f9
  0x100021d9fe50: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x100021d9fe60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x100021d9fe70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
2021-05-13 08:05:22.047958+0100 xctest[6502:1824991] =================================================================
2021-05-13 08:05:22.048116+0100 xctest[6502:1824991] ==6502==ERROR: AddressSanitizer: global-buffer-overflow on address 0x00010ecff141 at pc 0x00010014d0ad bp 0x7ffeefbfb170 sp 0x7ffeefbfa930
2021-05-13 08:05:22.048162+0100 xctest[6502:1824991] READ of size 44 at 0x00010ecff141 thread T0
2021-05-13 08:05:22.048300+0100 xctest[6502:1824991]     #0 0x10014d0ac in wrap_memcpy+0x16c (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1d0ac)
2021-05-13 08:05:22.048459+0100 xctest[6502:1824991]     #1 0x10ecb6b1c in __swift_memcpy44_4+0x1c (RuntimeTests:x86_64+0xd9b1c)
2021-05-13 08:05:22.048505+0100 xctest[6502:1824991]     #2 0x10eccb24e in NominalMetadataType.numberOfFields()+0x84e (RuntimeTests:x86_64+0xee24e)
2021-05-13 08:05:22.048539+0100 xctest[6502:1824991]     #3 0x10eccbc84 in NominalMetadataType.fieldOffsets()+0x7e4 (RuntimeTests:x86_64+0xeec84)
2021-05-13 08:05:22.048656+0100 xctest[6502:1824991]     #4 0x10ecccae7 in NominalMetadataType.properties()+0x527 (RuntimeTests:x86_64+0xefae7)
2021-05-13 08:05:22.048715+0100 xctest[6502:1824991]     #5 0x10ecd1263 in StructMetadata.toTypeInfo()+0xa13 (RuntimeTests:x86_64+0xf4263)
2021-05-13 08:05:22.048792+0100 xctest[6502:1824991]     #6 0x10ecd206f in protocol witness for TypeInfoConvertible.toTypeInfo() in conformance StructMetadata+0xcf (RuntimeTests:x86_64+0xf506f)
2021-05-13 08:05:22.048825+0100 xctest[6502:1824991]     #7 0x10ece3b99 in typeInfo(of:)+0xa09 (RuntimeTests:x86_64+0x106b99)
2021-05-13 08:05:22.048860+0100 xctest[6502:1824991]     #8 0x10ec1fefc in GetSetStructTests.testGetSimple() GetSetStructTests.swift:70
2021-05-13 08:05:22.048928+0100 xctest[6502:1824991]     #9 0x10ec207d2 in @objc GetSetStructTests.testGetSimple() <compiler-generated>
2021-05-13 08:05:22.049019+0100 xctest[6502:1824991]     #10 0x7fff205e856b in __invoking___+0x8b (CoreFoundation:x86_64h+0x6456b)
2021-05-13 08:05:22.049065+0100 xctest[6502:1824991]     #11 0x7fff205e840f in -[NSInvocation invoke]+0x12e (CoreFoundation:x86_64h+0x6440f)
2021-05-13 08:05:22.049102+0100 xctest[6502:1824991]     #12 0x1010a8bfc in __24-[XCTestCase invokeTest]_block_invoke_3+0x33 (XCTest:x86_64+0x30bfc)
2021-05-13 08:05:22.049165+0100 xctest[6502:1824991]     #13 0x10117c3e8 in +[XCTSwiftErrorObservation observeErrorsInBlock:]+0x44 (XCTest:x86_64+0x1043e8)
2021-05-13 08:05:22.049245+0100 xctest[6502:1824991]     #14 0x1010a8afe in __24-[XCTestCase invokeTest]_block_invoke_2+0x76 (XCTest:x86_64+0x30afe)
2021-05-13 08:05:22.049281+0100 xctest[6502:1824991]     #15 0x10113fb75 in -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:]+0x40 (XCTest:x86_64+0xc7b75)
2021-05-13 08:05:22.049313+0100 xctest[6502:1824991]     #16 0x1010b3a3d in -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:]+0x3c (XCTest:x86_64+0x3ba3d)
2021-05-13 08:05:22.049356+0100 xctest[6502:1824991]     #17 0x1010a8a44 in __24-[XCTestCase invokeTest]_block_invoke.262+0xc6 (XCTest:x86_64+0x30a44)
2021-05-13 08:05:22.049427+0100 xctest[6502:1824991]     #18 0x1011205d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa85d7)
2021-05-13 08:05:22.049518+0100 xctest[6502:1824991]     #19 0x1010a8507 in -[XCTestCase invokeTest]+0x40c (XCTest:x86_64+0x30507)
2021-05-13 08:05:22.049575+0100 xctest[6502:1824991]     #20 0x1010aa17d in __26-[XCTestCase performTest:]_block_invoke_2+0x2a (XCTest:x86_64+0x3217d)
2021-05-13 08:05:22.049704+0100 xctest[6502:1824991]     #21 0x1011205d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa85d7)
2021-05-13 08:05:22.049791+0100 xctest[6502:1824991]     #22 0x1010aa0b4 in __26-[XCTestCase performTest:]_block_invoke.393+0x55 (XCTest:x86_64+0x320b4)
2021-05-13 08:05:22.049879+0100 xctest[6502:1824991]     #23 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
2021-05-13 08:05:22.049937+0100 xctest[6502:1824991]     #24 0x1010a98c1 in -[XCTestCase performTest:]+0x2bd (XCTest:x86_64+0x318c1)
2021-05-13 08:05:22.050014+0100 xctest[6502:1824991]     #25 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
2021-05-13 08:05:22.050050+0100 xctest[6502:1824991]     #26 0x1010a164c in -[XCTestSuite runTestBasedOnRerunPolicy:testRun:]+0x9a (XCTest:x86_64+0x2964c)
2021-05-13 08:05:22.050102+0100 xctest[6502:1824991]     #27 0x1010a14c1 in __27-[XCTestSuite performTest:]_block_invoke+0xfc (XCTest:x86_64+0x294c1)
2021-05-13 08:05:22.050162+0100 xctest[6502:1824991]     #28 0x1010a0d15 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x28d15)
2021-05-13 08:05:22.050199+0100 xctest[6502:1824991]     #29 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
2021-05-13 08:05:22.050237+0100 xctest[6502:1824991]     #30 0x1010a0ccc in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x9e (XCTest:x86_64+0x28ccc)
2021-05-13 08:05:22.050273+0100 xctest[6502:1824991]     #31 0x1010a0fd0 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x28fd0)
2021-05-13 08:05:22.050311+0100 xctest[6502:1824991]     #32 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
2021-05-13 08:05:22.050387+0100 xctest[6502:1824991]     #33 0x1010a164c in -[XCTestSuite runTestBasedOnRerunPolicy:testRun:]+0x9a (XCTest:x86_64+0x2964c)
2021-05-13 08:05:22.050426+0100 xctest[6502:1824991]     #34 0x1010a14c1 in __27-[XCTestSuite performTest:]_block_invoke+0xfc (XCTest:x86_64+0x294c1)
2021-05-13 08:05:22.050476+0100 xctest[6502:1824991]     #35 0x1010a0d15 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x28d15)
2021-05-13 08:05:22.050553+0100 xctest[6502:1824991]     #36 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
2021-05-13 08:05:22.050638+0100 xctest[6502:1824991]     #37 0x1010a0ccc in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x9e (XCTest:x86_64+0x28ccc)
2021-05-13 08:05:22.050716+0100 xctest[6502:1824991]     #38 0x1010a0fd0 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x28fd0)
2021-05-13 08:05:22.050806+0100 xctest[6502:1824991]     #39 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
2021-05-13 08:05:22.050841+0100 xctest[6502:1824991]     #40 0x1010a164c in -[XCTestSuite runTestBasedOnRerunPolicy:testRun:]+0x9a (XCTest:x86_64+0x2964c)
2021-05-13 08:05:22.050875+0100 xctest[6502:1824991]     #41 0x1010a14c1 in __27-[XCTestSuite performTest:]_block_invoke+0xfc (XCTest:x86_64+0x294c1)
2021-05-13 08:05:22.050960+0100 xctest[6502:1824991]     #42 0x1010a0d15 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x28d15)
2021-05-13 08:05:22.051064+0100 xctest[6502:1824991]     #43 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
2021-05-13 08:05:22.051117+0100 xctest[6502:1824991]     #44 0x1010a0ccc in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x9e (XCTest:x86_64+0x28ccc)
2021-05-13 08:05:22.051153+0100 xctest[6502:1824991]     #45 0x1010a0fd0 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x28fd0)
2021-05-13 08:05:22.051188+0100 xctest[6502:1824991]     #46 0x1010fb0ae in -[XCTest runTest]+0x38 (XCTest:x86_64+0x830ae)
2021-05-13 08:05:22.051224+0100 xctest[6502:1824991]     #47 0x1011542ce in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke_2+0x93 (XCTest:x86_64+0xdc2ce)
2021-05-13 08:05:22.051265+0100 xctest[6502:1824991]     #48 0x101134462 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xbc462)
2021-05-13 08:05:22.051304+0100 xctest[6502:1824991]     #49 0x101154233 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke+0x6e (XCTest:x86_64+0xdc233)
2021-05-13 08:05:22.051336+0100 xctest[6502:1824991]     #50 0x1011543b4 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.87+0x5f (XCTest:x86_64+0xdc3b4)
2021-05-13 08:05:22.051371+0100 xctest[6502:1824991]     #51 0x1010ca684 in -[XCTestObservationCenter _observeTestExecutionForBlock:]+0x144 (XCTest:x86_64+0x52684)
2021-05-13 08:05:22.051408+0100 xctest[6502:1824991]     #52 0x101153fab in -[XCTTestRunSession runTestsAndReturnError:]+0x1d8 (XCTest:x86_64+0xdbfab)
2021-05-13 08:05:22.051441+0100 xctest[6502:1824991]     #53 0x101085338 in -[XCTestDriver _runTests]+0x1d1 (XCTest:x86_64+0xd338)
2021-05-13 08:05:22.051479+0100 xctest[6502:1824991]     #54 0x10112f1b7 in _XCTestMain+0x6b (XCTest:x86_64+0xb71b7)
2021-05-13 08:05:22.051514+0100 xctest[6502:1824991]     #55 0x100006530 in main+0x194 (xctest:x86_64+0x100006530)
2021-05-13 08:05:22.051552+0100 xctest[6502:1824991]     #56 0x7fff20528620 in start+0x0 (libdyld.dylib:x86_64+0x15620)
2021-05-13 08:05:22.051589+0100 xctest[6502:1824991] 
2021-05-13 08:05:22.051626+0100 xctest[6502:1824991] 0x00010ecff141 is located 0 bytes to the right of global variable '' defined in '/Users/adamfowler/Library/Developer/Xcode/DerivedData/Runtime-alpyovrntiajzygbbctjlczjhope/Build/Intermediates.noindex/Runtime.build/Debug/RuntimeTests.build/Objects-normal-asan/x86_64/GetSetStructTests.o' (0x10ecff140) of size 1
2021-05-13 08:05:22.051664+0100 xctest[6502:1824991]   '' is ascii string ''
2021-05-13 08:05:22.051700+0100 xctest[6502:1824991] SUMMARY: AddressSanitizer: global-buffer-overflow (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1d0ac) in wrap_memcpy+0x16c
2021-05-13 08:05:22.051739+0100 xctest[6502:1824991] Shadow bytes around the buggy address:
2021-05-13 08:05:22.051772+0100 xctest[6502:1824991]   0x100021d9fdd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.051830+0100 xctest[6502:1824991]   0x100021d9fde0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.051880+0100 xctest[6502:1824991]   0x100021d9fdf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.052285+0100 xctest[6502:1824991]   0x100021d9fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.052326+0100 xctest[6502:1824991]   0x100021d9fe10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.052373+0100 xctest[6502:1824991] =>0x100021d9fe20: 00 00 00 00 00 00 00 00[01]f9 f9 f9 f9 f9 f9 f9
2021-05-13 08:05:22.052462+0100 xctest[6502:1824991]   0x100021d9fe30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.052601+0100 xctest[6502:1824991]   0x100021d9fe40: 00 00 00 00 00 00 00 00 00 00 00 00 01 f9 f9 f9
2021-05-13 08:05:22.052683+0100 xctest[6502:1824991]   0x100021d9fe50: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.052748+0100 xctest[6502:1824991]   0x100021d9fe60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.052823+0100 xctest[6502:1824991]   0x100021d9fe70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2021-05-13 08:05:22.052859+0100 xctest[6502:1824991] Shadow byte legend (one shadow byte represents 8 application bytes):
2021-05-13 08:05:22.052914+0100 xctest[6502:1824991]   Addressable:           00
2021-05-13 08:05:22.052951+0100 xctest[6502:1824991]   Partially addressable: 01 02 03 04 05 06 07
2021-05-13 08:05:22.052996+0100 xctest[6502:1824991]   Heap left redzone:       fa
2021-05-13 08:05:22.053050+0100 xctest[6502:1824991]   Freed heap region:       fd
2021-05-13 08:05:22.053088+0100 xctest[6502:1824991]   Stack left redzone:      f1
2021-05-13 08:05:22.053151+0100 xctest[6502:1824991]   Stack mid redzone:       f2
2021-05-13 08:05:22.053220+0100 xctest[6502:1824991]   Stack right redzone:     f3
2021-05-13 08:05:22.053297+0100 xctest[6502:1824991]   Stack after return:      f5
2021-05-13 08:05:22.053351+0100 xctest[6502:1824991]   Stack use after scope:   f8
2021-05-13 08:05:22.053427+0100 xctest[6502:1824991]   Global redzone:          f9
2021-05-13 08:05:22.053495+0100 xctest[6502:1824991]   Global init order:       f6
2021-05-13 08:05:22.053529+0100 xctest[6502:1824991]   Poisoned by user:        f7
2021-05-13 08:05:22.053588+0100 xctest[6502:1824991]   Container overflow:      fc
2021-05-13 08:05:22.053667+0100 xctest[6502:1824991]   Array cookie:            ac
2021-05-13 08:05:22.053702+0100 xctest[6502:1824991]   Intra object redzone:    bb
2021-05-13 08:05:22.053734+0100 xctest[6502:1824991]   ASan internal:           fe
2021-05-13 08:05:22.053772+0100 xctest[6502:1824991]   Left alloca redzone:     ca
2021-05-13 08:05:22.053805+0100 xctest[6502:1824991]   Right alloca redzone:    cb
2021-05-13 08:05:22.053839+0100 xctest[6502:1824991]   Shadow gap:              cc
==6502==ABORTING

Again the thread sanitizer on Linux is crashing as well