Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift-run crashes when using the swiftbuild build system #8274

Open
1 task done
dschaefer2 opened this issue Feb 3, 2025 · 1 comment
Open
1 task done

swift-run crashes when using the swiftbuild build system #8274

dschaefer2 opened this issue Feb 3, 2025 · 1 comment
Labels

Comments

@dschaefer2
Copy link
Member

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

Under debug I can see that the build service thread is still running when swift-run closes all the file handles before doing the exec call to launch the executable. I can see why we need to do that to make sure we aren't leaking file descriptors there. But we should probably wait until the build service is fully shut down before doing that.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

This is off the initial PR for the swiftbuild integration.

@dschaefer2 dschaefer2 added the bug label Feb 3, 2025
@dschaefer2
Copy link
Member Author

This is with a project created with swift package init --type executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant