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

[5.4] Calling C module segfaults via CLI only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Environment:

      Xcode 12.5

      Description

      When running a Swift program that calls through to a C module, the program segfaults. This only occurs on the CLI, running via Xcode is fine. Looks like a regression for SR-12424

      To recreate:

      Expected

      App prints out a password hash correctly

      Actual:

      ➜  BCryptCrash git:(main) swift run
      [1/1] Planning build
      
      
      * Build Completed![1]    92807 segmentation fault  swift run
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            0xTim Tim
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: