Skip to content

Oschly/BadAccessPlayground

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%