[SR-10112] Runtime crash with lazy var and capture list compiled with optimization level -O #52514
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
optimized only
Flag: An issue whose reproduction requires optimized compilation
run-time crash
Bug → crash: Swift code crashed during execution
Environment
swift 4.2
xcode 10.1
Additional Detail from JIRA
md5: 7804a10e0964de8730beb7f68df9a73f
Issue Description:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xe100000000000010
I'm not sure where the problem is but it seems like bug with lazy vars or capture list
It crashes with optimization level -O and it doesn't with -Onone
It crashes on line with accessing lazy var reference type
I found 3 independent fixes:
I have reproducible test project https://github.com/Stunba/TestSwiftCrash
The text was updated successfully, but these errors were encountered: