Skip to content

swift build --configuration release causes Linux VM to crash #76

Open
@progressive-galib

Description

@progressive-galib

The bug
Building the project in debug mode works fine. However, attempting to build in release mode (swift build --configuration release) causes the entire WSL2 VM to abruptly crash. The terminal session is terminated, and no specific error message is provided except a compile failure with signal 9.


To Reproduce
Steps to reproduce the behavior:

  1. Clone the repository:

    git clone https://github.com/stackotter/swift-bundler
    cd swift-bundler
  2. Attempt to build in release mode:

    swift build --configuration release
  3. Observe that the VM crashes or restarts during the build (typically near the end of the compilation process).

galib@galib:~/desktop/nf/swift-bundler$ swift build --configuration release
Fetching https://github.com/jakeheis/SwiftCLI.git from cache
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/swiftlang/swift-syntax from cache
.........(many more git fetching, version determination etc later).......
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/gregcotten/AsyncProcess
Working copy of https://github.com/gregcotten/AsyncProcess resolved at 0.0.5
Building for production...
error: compile command failed due to signal 9 (use -v to see invocation)
[955/970] Compiling AsyncAlgorithms AsyncAdjacentPairsSequence.swiftTerminated
galib@galib:~/desktop/nf/swift-bundler$
[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

Expected behavior
The build should either complete successfully or fail gracefully. It should not cause the WSL2 VM to crash.


Environment (please complete the following information):

  • OS: Windows 10 with WSL2
  • Distro: fedora remix on WSL2
  • Swift version:
galib@galib:/mnt/c/Users/mahfu/Desktop/nf/swift-bundler$ swift --version
Swift version 6.1.2 (swift-6.1.2-RELEASE)
Target: x86_64-unknown-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions