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

[SR-14852] Parallel mode segfaults #308

Closed
klanchman opened this issue Jun 29, 2021 · 2 comments
Closed

[SR-14852] Parallel mode segfaults #308

klanchman opened this issue Jun 29, 2021 · 2 comments
Labels
bug Something isn't working swift-format

Comments

@klanchman
Copy link

Previous ID SR-14852
Radar None
Original Reporter @klanchman
Type Bug
Status Resolved
Resolution Done
Environment
  • macOS 11.4 (20F71)

  • swift-format 0.50400.0, debug or release configuration

  • Intel CPU

Additional Detail from JIRA
Votes 0
Component/s swift-format
Labels Bug
Assignee None
Priority Medium

md5: 625fc62ff7e877e9e5d0a5c5ce7137f7

Issue Description:

swift-format crashes due to a segmentation fault when using the --parallel flag. The cause of the crash appears to be different depending on build configuration.

When using debug configuration, the segfault happens if the lineBreakBeforeEachArgument option is enabled. Disabling the line break option avoids the error.

When using release configuration, the segfault happens when using the --configuration option, even if the provided configuration file contains the default options from the dump-configuration command. Omitting the --configuration option avoids the error.

I use Mint to manage swift-format, which means I typically have a release build. I have a custom configuration file, meaning I am unable to use parallel mode. I could use a debug build, but I enable the lineBreakBeforeEachArgument option, so parallel mode still doesn't work for me.

@typesanitizer
Copy link

cc @allevato

@klanchman
Copy link
Author

This appears to be resolved in the latest version using the release configuration

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working swift-format
Projects
None yet
Development

No branches or pull requests

2 participants