You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the recursion in SwiftSyntax's SyntaxVisitor, it's easy to trigger a stack overflow due to too much recursive calls. This is especially easy to trigger if you run visitors on multiple threads concurrently, if you compile with a debug configuration or if you run with tsan. For example:
Sorry for forward-duping, the other issue happened to have gotten the lower issue number after migrating to GitHub issues and it’s easier to dupe this way.
Additional Detail from JIRA
md5: 46d095af8127f00fe7ff16b9a8489020
Issue Description:
Due to the recursion in SwiftSyntax's
SyntaxVisitor
, it's easy to trigger a stack overflow due to too much recursive calls. This is especially easy to trigger if you run visitors on multiple threads concurrently, if you compile with a debug configuration or if you run with tsan. For example:Example here: realm/SwiftLint#2480
If it would help, I can take some time to create a more focused repro case, just ask.
The text was updated successfully, but these errors were encountered: