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-15658] Swift Frontend running crash #57937

Open
swift-ci opened this issue Dec 24, 2021 · 1 comment
Open

[SR-15658] Swift Frontend running crash #57937

swift-ci opened this issue Dec 24, 2021 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-15658
Radar None
Original Reporter ptr_9696 (JIRA User)
Type Bug

Attachment: Download

Environment

Hardware: Intel

macOS version : 12.1

Xcode version : 13.2.1

Swift version : 5.5.2

cmake version : 3.22.1

ninja version : 1.10.2

python version : 3.9.9

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: f10dde4c23db93173267b41e3a0f9c18

Issue Description:

I cloned the latest Swift release version (5.5.2) and builded it successfully with the following command

SKIP_XCODE_VERSION_CHECK=1 \
./swift/utils/build-script \
--release-debuginfo --debug-swift-stdlib \
--skip-build-benchmarks \
--skip-ios --skip-watchos --skip-tvos \
--swift-darwin-supported-archs "x86_64" \
--xcode

However, when I run swift-frontend using Xcode, I get the following error

<unknown>:0: error: fatal error encountered during compilation; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project
<unknown>:0: note: Compiler-internal integrated REPL has been removed; use the LLDB-enhanced REPL instead.

I tried the Debug, Release, RelwithDebInfo all crash in the same place

Stack dump:
0.  Program arguments: /Volumes/Swift-Source/Swift-5.5.2_Xcode-13.2_macOS-12.1/build/Xcode-DebugAssert/swift-macosx-x86_64/Debug/bin/swift-frontend -frontend -repl -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -color-diagnostics -target-sdk-version 12.1 -module-name REPL
1.  Swift version 5.5.2 (swift-5.5.2-RELEASE)
2.  
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000112d7008d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 61
1  swift-frontend           0x0000000112d705cb PrintStackTraceSignalHandler(void*) + 27
2  swift-frontend           0x0000000112d6e533 llvm::sys::RunSignalHandlers() + 115
3  swift-frontend           0x0000000112d72174 SignalHandler(int) + 196
4  libsystem_platform.dylib 0x00007ff80fc04e2d _sigtramp + 29
5  libsystem_platform.dylib 0x2f312e32312d5300 _sigtramp + 3400409283356853488
6  libsystem_c.dylib        0x00007ff80fb3bd10 abort + 123
7  swift-frontend           0x0000000107442e48 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_29::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) const + 840
8  swift-frontend           0x0000000107442af8 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_1::operator()(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) const + 56
9  swift-frontend           0x0000000107442aac swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_1::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 44
10 swift-frontend           0x0000000112cb2ed1 llvm::report_fatal_error(llvm::Twine const&, bool) + 161
11 swift-frontend           0x0000000112cb2e25 llvm::report_fatal_error(char const*, bool) + 53
12 swift-frontend           0x000000010744eb8a performAction(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 202
13 swift-frontend           0x0000000107442580 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 288
14 swift-frontend           0x00000001074414b6 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2534
15 swift-frontend           0x0000000107275018 run_driver(llvm::StringRef, llvm::ArrayRef<char const*>) + 344
16 swift-frontend           0x000000010727455f main + 1663
17 dyld                     0x0000000140d3c4fe start + 462
@swift-ci
Copy link
Collaborator Author

Comment by Casper Jeukendrup (JIRA)

This looks like a duplicate of SR-15631.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

1 participant