Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3446

Implement in the driver a state dumper when a crash is detected

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:

      Description

      One thing that we have in clang that would be very useful in Swift is the ability to do a dump of the compiling module when the compiler crashes.

      At a high level, I believe the problem basically comes down to the driver determining how far into the compilation the crash happened, rerunning to before that stage and dumping all intermediate, ast, sib files, packaging those up into a zip file.

      My proposal for how to do this is to create a global variable that shows the stage of the compilation and have an RAII struct that sets up a signal handler that catches the signal and exits with the value in the global.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gottesmm Michael Gottesman
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: