heap-use-after-free after dealloc of RCTBridge #48805
Labels
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Description
Initially I was debugging another issue with
TSan
and the runtime issue breakpoint set to Thread Sanitizer when running the tests inRNTestPods
for iOS Simulator 18.2. However, Xcode crashed as a result ofASan
detecting a use-after-free.Steps to reproduce
RCTAllocationTests.testModulesAreDeallocated
orRCTAllocationTests.testModulesAreInvalidated
.React Native Version
0.76.6
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
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
The text was updated successfully, but these errors were encountered: