Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 744 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 744 Bytes

BadAccessPlayground

I'm trying to understand why this unit test (often) produces EXC_BAD_ACCESS errors. Is the code doing something unsafe? Take a look at BadAccessPlaygroundTests.swift.

Instructions

  1. Open BadAccessPlayground.xcodeproj in Xcode 15
  2. Run the testBadAccess() test in BadAccessPlaygroundTests.swift repeatedly until failure. Recommended 10000 max iterations.
  3. Repeat until you witness a EXC_BAD_ACCESS error

Screenshots

Screenshot of Xcode with a breakpoint unexpectedly hitting Item's deinit Screenshot of Xcode with an EXC_BAD_ACCESS