[SR-8837] A strange runtime crash #51344
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
regression
run-time crash
Bug → crash: Swift code crashed during execution
swift 4.2
Attachment: Download
Environment
Xcode 10.0
Additional Detail from JIRA
md5: f34e2266d5f786b4ed1630b2247b5261
Issue Description:
I updated my iOS app from Swift 4.1 to Swift 4.2, then a very strange runtime crash appeared. It can compile and it crashes at runtime (only release mode). Even same code will lead to different crash.
It will crash at release mode. And the error is strange. It will crash at Salt.Api.init(url:). No idea why, since News.Api has nothing to do with Salt.Api. The stranger thing is that if I delete app's BasicApi.swift (Useless code in this case, isn't it?), it will not crash.
Same code, but different crash error.
It will crash at release mode.
RuntimeCrash(49642,0x108170380) malloc: Heap corruption detected, free list is damaged at 0x600002df9080
*** Incorrect guard value: 0
RuntimeCrash(49642,0x108170380) malloc: *** set a breakpoint in malloc_error_break to debug // The crash message appears many time in Swift 4.2.
The text was updated successfully, but these errors were encountered: