Skip to content

Crashdump during SwiftLint Analyze #10543

Open
@playmer

Description

@playmer

Hey folks, I'm not too familiar with the ecosystem here, I mostly work on various developer tooling for the Outlook Mobile applications. Recently I was looking into automating our usage of SwiftLint Analyze and at some point we started crashing LLVM while running it. I'm assuming this would be the correct fork to report it to, given that this is happening in the context of Swift, but I can remake this issue upstream if need be.

Here's the crashlog that's requested in the error:

Correcting 'Session.swift' (250/10510)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
(decl_context: )Stack dump:
0.	While performing cached IDE inspection if possible
1.	While performing cached IDE inspection in decl context:
    ---
    0x692871968 Module name=OLMWatchPhoneShared
      0x692872608 FileUnit file="/Users/joshuafisher/repos/client-cocoa/app-ios/OLMFoundations/OLMWatchPhoneShared/Networking/Session.swift"
        0x491097258 ClassDecl name=Session
          0x51248b7a8 AbstractFunctionDecl name=transferOngoingComplicationInfo() : (Session) -> () -> ()
    ---
2.	While evaluating request IDEInspectionSecondPassRequest(source_file "/Users/joshuafisher/repos/client-cocoa/app-ios/OLMFoundations/OLMWatchPhoneShared/Networking/Session.swift", )
3.	While evaluating request TypeCheckASTNodeAtLocRequest(0x51248b7a8 AbstractFunctionDecl name=transferOngoingComplicationInfo() : (Session) -> () -> (), )
4.	While type-checking expression at [/Users/joshuafisher/repos/client-cocoa/app-ios/OLMFoundations/OLMWatchPhoneShared/Networking/Session.swift:405:9 - line:405:86] RangeText="logAssertFail("Can't encode complication info: \(error.localizedDescription)""
5.	While type-checking-target starting at /Users/joshuafisher/repos/client-cocoa/app-ios/OLMFoundations/OLMWatchPhoneShared/Networking/Session.swift:405:9

I'm happy to do what I can to get more information, but keep in mind that I haven't been able to reproduce this on a smaller scale, and this takes hours to run even on an M3 Max. (Please talk to the SourceKit/Swift folks, seems something started harshly penalizing parallel calls several years ago)

If I understood the ecosystem more I'd be willing to try to debug it, but as it is I hit a barrier in the bowels of SwiftLint/SourceKitten, my very limited understanding is it's doing some sort of IPC to communicate with SourceKit and SourceKit is the one crashing in LLVM? So presumably I'd need to build SourceKit and LLVM myself to be able to actually see the crash? Not sure if that's doable on my side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions