[SR-11663] Code analysis in editor / SourceKit service falls into infinite loop when running certain code #54072
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
performance
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Tried on MBP 15-2017, 16GB RAM, macOS 10.14.4 and iMac 5k macOS 10.14.6, both Xcode 11.1.
Additional Detail from JIRA
md5: 62e1eff4867fe6a0d9eff03e1d355c6c
Issue Description:
I've run into this issue while writing models for our app. Basically editing multiple structures/enums in multiple files at short intervals.
From one moment, SourceKitService started consuming large amounts of memory: pressure at 100%, Activity Monitor shows rapidly growing usage, about 1GB of memory consumed per second, swap around 50 GB until disk is full, then crashing the OS.
Sometimes, when killing SourceKit process, this starts just as "swift" process, or when running as playground it might appear as lldb-rpc service.
SourceKit also stays running and consuming memory after killing Xcode.
It is reproducible every time with the attached playground.
The text was updated successfully, but these errors were encountered: