[SR-12081] Runtime error on iOS 13.x: EXC_BAD_ACCESS when type metadata accessor for XXX
#54517
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Attachment: Download
Additional Detail from JIRA
md5: eae3b6d5f569d9b12c12f66e5069e77d
Issue Description:
A runtime error happens on greater than iOS 13.x.
Running this will cause a Thread 1: EXC_BAD_ACCESS.
It seems to happen, if defining too many subclasses that adopt the protocol inherited by it as the generic argument of superclass.
Reference URLs:
https://gist.github.com/marty-suzuki/22969715bfa01196f2a47349bf45b4c4
https://github.com/funzin/VerificationProject
Note:
It works fine on less than iOS 12.
It happens even if i built it with Xcode 11.0, 11.2.1 and 11.3.1.
It happens on both of the iOS simulator and the iOS device.
If defining not so many subclasses, it works fine even if greater than iOS 13.x.
If build with Release configuration, it works fine even if greater than iOS 13.x.
The text was updated successfully, but these errors were encountered: