You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Environment
macOS 11.4 (20F71)
swift-format 0.50400.0,
debug
orrelease
configurationIntel CPU
Additional Detail from JIRA
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 thelineBreakBeforeEachArgument
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 thedump-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.The text was updated successfully, but these errors were encountered: