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

heap-use-after-free after dealloc of RCTBridge #48805

Open
hakonk opened this issue Jan 21, 2025 · 1 comment · May be fixed by #48847
Open

heap-use-after-free after dealloc of RCTBridge #48805

hakonk opened this issue Jan 21, 2025 · 1 comment · May be fixed by #48847
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.

Comments

@hakonk
Copy link
Contributor

hakonk commented Jan 21, 2025

Description

Initially I was debugging another issue with TSan and the runtime issue breakpoint set to Thread Sanitizer when running the tests in RNTestPods for iOS Simulator 18.2. However, Xcode crashed as a result of ASan detecting a use-after-free.

Steps to reproduce

  1. Fetch React Native repo and checkout tag v0.76.6
  2. cd react-native
  3. yarn install
  4. cd packages/rn-tester
  5. Perform install step in README.md
  6. Open Xcode
  7. Enable Thread Sanitizer
  8. Enable Runtime Issue breakpoint set to Thread Sanitizer
  9. Run test RCTAllocationTests.testModulesAreDeallocated or RCTAllocationTests.testModulesAreInvalidated.

React Native Version

0.76.6

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 15.2
  CPU: (12) arm64 Apple M2 Pro
  Memory: 139.69 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.18.0
    path: ~/.nvm/versions/node/v20.18.0/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.18.0/bin/yarn
  npm:
    version: 11.0.0
    path: ~/.nvm/versions/node/v20.18.0/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/user/.rvm/gems/ruby-2.7.2/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    API Levels:
      - "26"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 26.0.3
      - 30.0.3
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 35.0.0
    System Images:
      - android-26 | Google APIs Intel x86_64 Atom
      - android-33 | Google APIs ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12483815
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: /usr/bin/javac
  Ruby:
    version: 2.7.2
    path: /Users/user/.rvm/rubies/ruby-2.7.2/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

Test Suite 'All tests' started at 2025-01-21 10:04:26.231.
Test Suite 'RNTesterUnitTests.xctest' started at 2025-01-21 10:04:26.232.
Test Suite 'RCTAllocationTests' started at 2025-01-21 10:04:26.232.
Test Case '-[RCTAllocationTests testBridgeIsDeallocated]' started (Iteration 1 of 3).
Running application  ({
    initialProps =     {
    };
    rootTag = 1;
})
Invalidating <RCTCxxBridge: 0x109904640> (parent: (null), executor: (null))
Test Case '-[RCTAllocationTests testBridgeIsDeallocated]' passed (0.078 seconds).
Test Case '-[RCTAllocationTests testContentViewIsInvalidated]' started (Iteration 1 of 3).
Running application  ({
    initialProps =     {
    };
    rootTag = 11;
})
Invalidating <RCTCxxBridge: 0x109916e00> (parent: (null), executor: (null))
Test Case '-[RCTAllocationTests testContentViewIsInvalidated]' passed (0.003 seconds).
Test Case '-[RCTAllocationTests testModuleMethodsAreDeallocated]' started (Iteration 1 of 3).
Test Case '-[RCTAllocationTests testModuleMethodsAreDeallocated]' passed (0.002 seconds).
Test Case '-[RCTAllocationTests testModulesAreDeallocated]' started (Iteration 1 of 3).
Invalidating <RCTCxxBridge: 0x109955e00> (parent: (null), executor: (null))
=================================================================
==12132==ERROR: AddressSanitizer: heap-use-after-free on address 0x000109829358 at pc 0x000116793d7c bp 0x00016c018000 sp 0x00016c017ff8
READ of size 8 at 0x000109829358 thread T9
    #0 0x116793d78 in std::__1::__function::__value_func<void (std::__1::function<void ()>&&)>::operator bool[abi:de180100]() const+0x94 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x2507d78)
    #1 0x11679373c in std::__1::function<void (std::__1::function<void ()>&&)>::operator bool[abi:de180100]() const+0xa0 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x250773c)
    #2 0x11676ae00 in facebook::react::jsinspector_modern::EnableExecutorFromThis<facebook::react::jsinspector_modern::HostTarget>::executorFromThis()+0x1e4 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x24dee00)
    #3 0x116985bac in facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0::operator()()+0x61c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x26f9bac)
    #4 0x116985580 in decltype(std::declval<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0&>()()) std::__1::__invoke[abi:de180100]<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0&>(facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0&)+0x5c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x26f9580)
    #5 0x1169853f0 in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:de180100]<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0&>(facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0&)+0x5c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x26f93f0)
    #6 0x116985384 in std::__1::__function::__alloc_func<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0, std::__1::allocator<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0>, void ()>::operator()[abi:de180100]()+0xec (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x26f9384)
    #7 0x11697e310 in std::__1::__function::__func<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0, std::__1::allocator<facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)::$_0>, void ()>::operator()()+0xa8 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x26f2310)
    #8 0x11486bf90 in std::__1::__function::__value_func<void ()>::operator()[abi:de180100]() const+0x1d0 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5dff90)
    #9 0x11486bc80 in std::__1::function<void ()>::operator()() const+0xa0 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5dfc80)
    #10 0x1149b9728 in facebook::react::tryAndReturnError(std::__1::function<void ()> const&)+0xfc (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x72d728)
    #11 0x114a7bfe0 in facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&)+0x13c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x7effe0)
    #12 0x114aa0570 in facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0::operator()() const+0x210 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x814570)
    #13 0x114aa0350 in decltype(std::declval<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0&>()()) std::__1::__invoke[abi:de180100]<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0&>(facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0&)+0x5c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x814350)
    #14 0x114aa01c0 in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:de180100]<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0&>(facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0&)+0x5c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x8141c0)
    #15 0x114aa0154 in std::__1::__function::__alloc_func<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0, std::__1::allocator<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0>, void ()>::operator()[abi:de180100]()+0xec (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x814154)
    #16 0x114a98fe8 in std::__1::__function::__func<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0, std::__1::allocator<facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)::$_0>, void ()>::operator()()+0xa8 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x80cfe8)
    #17 0x11486bf90 in std::__1::__function::__value_func<void ()>::operator()[abi:de180100]() const+0x1d0 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5dff90)
    #18 0x11486bc80 in std::__1::function<void ()>::operator()() const+0xa0 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5dfc80)
    #19 0x114a7b804 in facebook::react::RCTMessageThread::runSync(std::__1::function<void ()>)+0x264 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x7ef804)
    #20 0x114a7cb74 in facebook::react::RCTMessageThread::runOnQueueSync(std::__1::function<void ()>&&)+0x300 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x7f0b74)
    #21 0x11696d0c4 in facebook::react::Instance::initializeBridge(std::__1::unique_ptr<facebook::react::InstanceCallback, std::__1::default_delete<facebook::react::InstanceCallback>>, std::__1::shared_ptr<facebook::react::JSExecutorFactory>, std::__1::shared_ptr<facebook::react::MessageQueueThread>, std::__1::shared_ptr<facebook::react::ModuleRegistry>, facebook::react::jsinspector_modern::HostTarget*)+0x60c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x26e10c4)
    #22 0x1148f9b14 in -[RCTCxxBridge _initializeBridgeLocked:parentInspectorTarget:]+0x4f4 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x66db14)
    #23 0x1148f7b50 in -[RCTCxxBridge _initializeBridge:parentInspectorTarget:]+0xa6c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x66bb50)
    #24 0x1148efb54 in __21-[RCTCxxBridge start]_block_invoke.110+0x1e8 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x663b54)
    #25 0x1149470e4 in decltype(std::declval<void () block_pointer __strong&>()()) std::__1::__invoke[abi:de180100]<void () block_pointer __strong&>(&&, decltype(std::declval<void () block_pointer __strong&>()())&&...)+0x94 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x6bb0e4)
    #26 0x114946b24 in std::__1::__function::__func<void () block_pointer __strong, std::__1::allocator<std::__1::allocator>, void ()>::operator()()+0xa8 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x6bab24)
    #27 0x11486bf90 in std::__1::__function::__value_func<void ()>::operator()[abi:de180100]() const+0x1d0 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5dff90)
    #28 0x11486bc80 in std::__1::function<void ()>::operator()() const+0xa0 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5dfc80)
    #29 0x1149b9728 in facebook::react::tryAndReturnError(std::__1::function<void ()> const&)+0xfc (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x72d728)
    #30 0x1148ea4a8 in -[RCTCxxBridge _tryAndHandleError:]+0x168 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x65e4a8)
    #31 0x180f465e8 in __NSThreadPerformPerform+0x78 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x76c5e8)
    #32 0x18041d290 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x14 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x90290)
    #33 0x18041d1d8 in __CFRunLoopDoSource0+0xa8 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x901d8)
    #34 0x18041c93c in __CFRunLoopDoSources0+0xe4 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x8f93c)
    #35 0x180416e80 in __CFRunLoopRun+0x310 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x89e80)
    #36 0x1804166f0 in CFRunLoopRunSpecific+0x224 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x896f0)
    #37 0x1148ea0cc in +[RCTCxxBridge runRunLoop]+0x76c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x65e0cc)
    #38 0x180f4627c in __NSThread__start__+0x2cc (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x76c27c)
    #39 0x1049cd354 in asan_thread_start(void*)+0x3c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/Frameworks/libclang_rt.asan_iossim_dynamic.dylib:arm64+0x4d354)
    #40 0x1049436f4 in _pthread_start+0x64 (/usr/lib/system/libsystem_pthread.dylib:arm64+0x76f4)
    #41 0x10493e93c in thread_start+0x4 (/usr/lib/system/libsystem_pthread.dylib:arm64+0x293c)

0x000109829358 is located 40 bytes inside of 136-byte region [0x000109829330,0x0001098293b8)
freed by thread T0 here:
    #0 0x1049deba8 in _ZdlPv+0x68 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/Frameworks/libclang_rt.asan_iossim_dynamic.dylib:arm64+0x5eba8)
    #1 0x116e153cc in std::__1::default_delete<facebook::react::jsinspector_modern::HostTarget>::operator()[abi:de180100](facebook::react::jsinspector_modern::HostTarget*) const+0xa8 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x2b893cc)
    #2 0x116e146f4 in std::__1::__shared_ptr_pointer<facebook::react::jsinspector_modern::HostTarget*, std::__1::shared_ptr<facebook::react::jsinspector_modern::HostTarget>::__shared_ptr_default_delete<facebook::react::jsinspector_modern::HostTarget, facebook::react::jsinspector_modern::HostTarget>, std::__1::allocator<facebook::react::jsinspector_modern::HostTarget>>::__on_zero_shared()+0x250 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x2b886f4)
    #3 0x114476024 in std::__1::__shared_count::__release_shared[abi:de180100]()+0x144 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x1ea024)
    #4 0x114475ebc in std::__1::__shared_weak_count::__release_shared[abi:de180100]()+0x88 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x1e9ebc)
    #5 0x1148623a0 in std::__1::shared_ptr<facebook::react::jsinspector_modern::HostTarget>::~shared_ptr[abi:de180100]()+0x140 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5d63a0)
    #6 0x114854598 in std::__1::shared_ptr<facebook::react::jsinspector_modern::HostTarget>::~shared_ptr[abi:de180100]()+0x64 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c8598)
    #7 0x114854e44 in std::__1::shared_ptr<facebook::react::jsinspector_modern::HostTarget>::reset[abi:de180100]()+0x1c8 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c8e44)
    #8 0x1148549b4 in __20-[RCTBridge dealloc]_block_invoke+0x408 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c89b4)
    #9 0x114c66de4 in RCTExecuteOnMainQueue+0x174 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x9dade4)
    #10 0x114853f9c in -[RCTBridge dealloc]+0x968 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c7f9c)
    #11 0x180091db8 in AutoreleasePoolPage::releaseUntil(objc_object**)+0xd0 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib:arm64+0x29db8)
    #12 0x180091c7c in objc_autoreleasePoolPop+0xfc (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib:arm64+0x29c7c)
    #13 0x114332200 in -[RCTAllocationTests testModulesAreDeallocated]+0x87c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0xa6200)
    #14 0x1804bfcdc in __invoking___+0x8c (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x132cdc)
    #15 0x1804bcc50 in -[NSInvocation invoke]+0x110 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x12fc50)
    #16 0x1059feac0 in +[XCTFailableInvocation invokeStandardConventionInvocation:completion:]+0x3c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6eac0)
    #17 0x1059fea78 in __90+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]_block_invoke_3+0x14 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6ea78)
    #18 0x1059fe2e4 in __81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke+0x128 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e2e4)
    #19 0x1059e44d0 in __49+[XCTSwiftErrorObservation observeErrorsInBlock:]_block_invoke+0x18 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x544d0)
    #20 0x10cb8a9a0 in reabstraction thunk helper from @callee_unowned @convention(block) () -> () to @escaping @callee_guaranteed () -> ()+0xc (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a9a0)
    #21 0x10cb8a800 in closure #1 () -> () in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x2c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a800)
    #22 0x10cb8aadc in partial apply forwarder for closure #1 () -> () in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x18 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3aadc)
    #23 0x24937ce1c in Swift.TaskLocal.withValue<A>(_: A, operation: () throws -> A1, file: Swift.String, line: Swift.UInt) throws -> A1+0x7c (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswift_Concurrency.dylib:arm64+0x20e1c)
    #24 0x10cb8a63c in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x1b8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a63c)
    #25 0x10cb8a914 in @objc static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x50 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a914)
    #26 0x1059e43cc in +[XCTSwiftErrorObservation observeErrorsInBlock:]+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x543cc)
    #27 0x1059fe0c4 in +[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]+0xb4 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e0c4)
    #28 0x1059fe7c8 in +[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]+0x1ac (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e7c8)
    #29 0x1059feb4c in +[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:]+0x40 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6eb4c)

previously allocated by thread T0 here:
    #0 0x1049de798 in _Znwm+0x68 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/Frameworks/libclang_rt.asan_iossim_dynamic.dylib:arm64+0x5e798)
    #1 0x116e07ae4 in facebook::react::jsinspector_modern::HostTarget::create(facebook::react::jsinspector_modern::HostTargetDelegate&, std::__1::function<void (std::__1::function<void ()>&&)>)+0x158 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x2b7bae4)
    #2 0x1148577ec in -[RCTBridge setUp]+0x778 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5cb7ec)
    #3 0x114852e64 in -[RCTBridge initWithDelegate:bundleURL:moduleProvider:launchOptions:]+0x8bc (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c6e64)
    #4 0x11485234c in -[RCTBridge initWithBundleURL:moduleProvider:launchOptions:]+0x3bc (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c634c)
    #5 0x114331ef4 in -[RCTAllocationTests testModulesAreDeallocated]+0x570 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0xa5ef4)
    #6 0x1804bfcdc in __invoking___+0x8c (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x132cdc)
    #7 0x1804bcc50 in -[NSInvocation invoke]+0x110 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x12fc50)
    #8 0x1059feac0 in +[XCTFailableInvocation invokeStandardConventionInvocation:completion:]+0x3c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6eac0)
    #9 0x1059fea78 in __90+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]_block_invoke_3+0x14 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6ea78)
    #10 0x1059fe2e4 in __81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke+0x128 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e2e4)
    #11 0x1059e44d0 in __49+[XCTSwiftErrorObservation observeErrorsInBlock:]_block_invoke+0x18 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x544d0)
    #12 0x10cb8a9a0 in reabstraction thunk helper from @callee_unowned @convention(block) () -> () to @escaping @callee_guaranteed () -> ()+0xc (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a9a0)
    #13 0x10cb8a800 in closure #1 () -> () in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x2c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a800)
    #14 0x10cb8aadc in partial apply forwarder for closure #1 () -> () in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x18 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3aadc)
    #15 0x24937ce1c in Swift.TaskLocal.withValue<A>(_: A, operation: () throws -> A1, file: Swift.String, line: Swift.UInt) throws -> A1+0x7c (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswift_Concurrency.dylib:arm64+0x20e1c)
    #16 0x10cb8a63c in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x1b8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a63c)
    #17 0x10cb8a914 in @objc static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x50 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a914)
    #18 0x1059e43cc in +[XCTSwiftErrorObservation observeErrorsInBlock:]+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x543cc)
    #19 0x1059fe0c4 in +[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]+0xb4 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e0c4)
    #20 0x1059fe7c8 in +[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]+0x1ac (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e7c8)
    #21 0x1059feb4c in +[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:]+0x40 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6eb4c)
    #22 0x1059bb264 in __24-[XCTestCase invokeTest]_block_invoke.80+0x5c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2b264)
    #23 0x1059c06d8 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x306d8)
    #24 0x1059badf4 in -[XCTestCase invokeTest]+0x290 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2adf4)
    #25 0x1059bc868 in __26-[XCTestCase performTest:]_block_invoke.118+0x1c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2c868)
    #26 0x1059c06d8 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x306d8)
    #27 0x1059bc2a8 in __26-[XCTestCase performTest:]_block_invoke.108+0x1e8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2c2a8)
    #28 0x10599b7a0 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]+0xa8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb7a0)
    #29 0x10599b6a0 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0x60 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb6a0)

Thread T9 created by T0 here:
    #0 0x1049c85e8 in pthread_create+0x58 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/Frameworks/libclang_rt.asan_iossim_dynamic.dylib:arm64+0x485e8)
    #1 0x180f45ec4 in -[NSThread startAndReturnError:]+0x11c (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x76bec4)
    #2 0x1148ebebc in -[RCTCxxBridge start]+0x988 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x65febc)
    #3 0x1148584e0 in -[RCTBridge setUp]+0x146c (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5cc4e0)
    #4 0x114852e64 in -[RCTBridge initWithDelegate:bundleURL:moduleProvider:launchOptions:]+0x8bc (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c6e64)
    #5 0x11485234c in -[RCTBridge initWithBundleURL:moduleProvider:launchOptions:]+0x3bc (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x5c634c)
    #6 0x114331ef4 in -[RCTAllocationTests testModulesAreDeallocated]+0x570 (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0xa5ef4)
    #7 0x1804bfcdc in __invoking___+0x8c (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x132cdc)
    #8 0x1804bcc50 in -[NSInvocation invoke]+0x110 (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x12fc50)
    #9 0x1059feac0 in +[XCTFailableInvocation invokeStandardConventionInvocation:completion:]+0x3c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6eac0)
    #10 0x1059fea78 in __90+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]_block_invoke_3+0x14 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6ea78)
    #11 0x1059fe2e4 in __81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke+0x128 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e2e4)
    #12 0x1059e44d0 in __49+[XCTSwiftErrorObservation observeErrorsInBlock:]_block_invoke+0x18 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x544d0)
    #13 0x10cb8a9a0 in reabstraction thunk helper from @callee_unowned @convention(block) () -> () to @escaping @callee_guaranteed () -> ()+0xc (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a9a0)
    #14 0x10cb8a800 in closure #1 () -> () in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x2c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a800)
    #15 0x10cb8aadc in partial apply forwarder for closure #1 () -> () in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x18 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3aadc)
    #16 0x24937ce1c in Swift.TaskLocal.withValue<A>(_: A, operation: () throws -> A1, file: Swift.String, line: Swift.UInt) throws -> A1+0x7c (/Library/Developer/CoreSimulator/Volumes/iOS_22C150/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswift_Concurrency.dylib:arm64+0x20e1c)
    #17 0x10cb8a63c in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x1b8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a63c)
    #18 0x10cb8a914 in @objc static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: () -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>+0x50 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib:arm64+0x3a914)
    #19 0x1059e43cc in +[XCTSwiftErrorObservation observeErrorsInBlock:]+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x543cc)
    #20 0x1059fe0c4 in +[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]+0xb4 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e0c4)
    #21 0x1059fe7c8 in +[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]+0x1ac (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6e7c8)
    #22 0x1059feb4c in +[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:]+0x40 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x6eb4c)
    #23 0x1059bb264 in __24-[XCTestCase invokeTest]_block_invoke.80+0x5c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2b264)
    #24 0x1059c06d8 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x306d8)
    #25 0x1059badf4 in -[XCTestCase invokeTest]+0x290 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2adf4)
    #26 0x1059bc868 in __26-[XCTestCase performTest:]_block_invoke.118+0x1c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2c868)
    #27 0x1059c06d8 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x306d8)
    #28 0x1059bc2a8 in __26-[XCTestCase performTest:]_block_invoke.108+0x1e8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2c2a8)
    #29 0x10599b7a0 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]+0xa8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb7a0)
    #30 0x10599b6a0 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0x60 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb6a0)
    #31 0x1059bbd54 in -[XCTestCase performTest:]+0xf4 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x2bd54)
    #32 0x1059b7fa8 in -[XCTest runTest]+0x28 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x27fa8)
    #33 0x1059c6ce8 in -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:]+0x3c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36ce8)
    #34 0x1059c6b6c in __27-[XCTestSuite performTest:]_block_invoke+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36b6c)
    #35 0x1059c65f4 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x24 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x365f4)
    #36 0x10599b7a0 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]+0xa8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb7a0)
    #37 0x10599b6a0 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0x60 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb6a0)
    #38 0x1059c6570 in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x94 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36570)
    #39 0x1059c6818 in -[XCTestSuite performTest:]+0xbc (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36818)
    #40 0x1059b7fa8 in -[XCTest runTest]+0x28 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x27fa8)
    #41 0x1059c6ce8 in -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:]+0x3c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36ce8)
    #42 0x1059c6b6c in __27-[XCTestSuite performTest:]_block_invoke+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36b6c)
    #43 0x1059c65f4 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x24 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x365f4)
    #44 0x10599b7a0 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]+0xa8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb7a0)
    #45 0x10599b6a0 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0x60 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb6a0)
    #46 0x1059c6570 in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x94 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36570)
    #47 0x1059c6818 in -[XCTestSuite performTest:]+0xbc (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36818)
    #48 0x1059b7fa8 in -[XCTest runTest]+0x28 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x27fa8)
    #49 0x1059c6ce8 in -[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:]+0x3c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36ce8)
    #50 0x1059c6b6c in __27-[XCTestSuite performTest:]_block_invoke+0x9c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36b6c)
    #51 0x1059c65f4 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x24 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x365f4)
    #52 0x10599b7a0 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]+0xa8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb7a0)
    #53 0x10599b6a0 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0x60 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb6a0)
    #54 0x1059c6570 in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x94 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36570)
    #55 0x1059c6818 in -[XCTestSuite performTest:]+0xbc (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x36818)
    #56 0x1059b7fa8 in -[XCTest runTest]+0x28 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x27fa8)
    #57 0x1059e56c0 in __89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke+0x60 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x556c0)
    #58 0x10599b7a0 in +[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:]+0xa8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb7a0)
    #59 0x10599b6a0 in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0x60 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0xb6a0)
    #60 0x1059e5588 in -[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]+0xf8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x55588)
    #61 0x1059d868c in __72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke_2+0x74 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x4868c)
    #62 0x1059d9860 in __XCTAsyncEnumerateWithWaiter_block_invoke+0xdc (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x49860)
    #63 0x1059d99f8 in __XCTAsyncEnumerate_block_invoke.98+0x30 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x499f8)
    #64 0x1059d850c in XCTAsyncEnumerateWithWaiter+0x1f0 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x4850c)
    #65 0x1059d82cc in __72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke+0x68 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x482cc)
    #66 0x1059d87c0 in -[XCTExecutionWorker runWithError:]+0x48 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x487c0)
    #67 0x1059d6804 in __25-[XCTestDriver _runTests]_block_invoke.200+0x30 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x46804)
    #68 0x1059ea5f4 in -[XCTestObservationCenter _observeTestExecutionForTestBundle:inBlock:]+0xb0 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x5a5f4)
    #69 0x1059d61f0 in -[XCTestDriver _runTests]+0x43c (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x461f0)
    #70 0x1059d7f8c in _XCTestMain+0x70 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTestCore.framework/XCTestCore:arm64+0x47f8c)
    #71 0x1044dcd24 in static xctesttool.xctest.main() -> ()+0x1a8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest:arm64+0x100004d24)
    #72 0x1044dce1c in static xctesttool.xctest.$main() -> ()+0x8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest:arm64+0x100004e1c)
    #73 0x1044dce30 in main+0x8 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest:arm64+0x100004e30)
    #74 0x1044f540c  (/usr/lib/dyld:arm64+0x140c)
    #75 0x10461e270  (<unknown module>)

SUMMARY: AddressSanitizer: heap-use-after-free (/Users/user/Library/Developer/Xcode/DerivedData/RNTesterPods-canztgbgdjmncfewkgmlcfravynr/Build/Products/Variant-ASan-UBSan/Debug-iphonesimulator/RNTesterUnitTests.xctest/RNTesterUnitTests:arm64+0x2507d78) in std::__1::__function::__value_func<void (std::__1::function<void ()>&&)>::operator bool[abi:de180100]() const+0x94
Shadow bytes around the buggy address:
  0x000109829080: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x000109829100: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
  0x000109829180: fa fa 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000109829200: 00 00 00 00 fa fa fa fa fa fa fa fa 00 00 00 00
  0x000109829280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa fa
=>0x000109829300: fa fa fa fa fa fa fd fd fd fd fd[fd]fd fd fd fd
  0x000109829380: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa
  0x000109829400: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x000109829480: fd fa fa fa fa fa fa fa fa fa 00 00 00 00 00 00
  0x000109829500: 00 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa
  0x000109829580: fa fa fa fa 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
==12132==ABORTING
AddressSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report.

(lldb) thread info -s
thread #11: tid = 0x25ffcb, 0x00000001049d9e04 libclang_rt.asan_iossim_dynamic.dylib`__asan::AsanDie(), name = 'com.facebook.react.JavaScript', stop reason = Use of deallocated memory
{
  "access_size": 8,
  "access_type": 0,
  "address": 4454519640,
  "bp": 6107004928,
  "description": "heap-use-after-free",
  "instrumentation_class": "AddressSanitizer",
  "pc": 4672011644,
  "sp": 6107004920,
  "stop_type": "fatal_error"
}

Reproducer

I'm struggling with finding a way to reproduce this with a reproducer template and can't see how to reproduce with RNTesterPlayground.js. However, it is possible to reproduce the error if using the React Native repo from tag v0.76.6:

https://github.com/facebook/react-native/tree/v0.76.6

Screenshots and Videos

No response

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 21, 2025
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants