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-14541] Segmentation fault: 11 when building project #56893

Open
swift-ci opened this issue Apr 27, 2021 · 1 comment
Open

[SR-14541] Segmentation fault: 11 when building project #56893

swift-ci opened this issue Apr 27, 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-14541
Radar rdar://problem/77222684
Original Reporter dcacenabes (JIRA User)
Type Bug
Environment

Swift 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Big Sur 11.2.3 (Running on Intel mac)

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

md5: b0907e4c5fa838357f7a220d692554f8

Issue Description:

We are trying to build an open source project with the latest Xcode 12.5 released recently (version 5.4 of the swift compiler). The build fails with a segmentation fault.

Stack Trace:

1.  Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
0  swift-frontend           0x0000000108445e85 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  swift-frontend           0x0000000108444e78 llvm::sys::RunSignalHandlers() + 248
2  swift-frontend           0x0000000108446446 SignalHandler(int) + 262
3  libsystem_platform.dylib 0x00007fff203bed7d _sigtramp + 29
4  libsystem_platform.dylib 0x00007f82900d26f0 _sigtramp + 18446743538714622352
5  swift-frontend           0x000000010491acdb swift::Type::print(swift::ASTPrinter&, swift::PrintOptions const&) const + 75
6  swift-frontend           0x0000000104925e85 (anonymous namespace)::PrintAST::printTypeLocWithOptions(swift::TypeLoc const&, swift::PrintOptions const&) + 149
7  swift-frontend           0x0000000104928a0e (anonymous namespace)::PrintAST::printParameterList(swift::ParameterList*, llvm::ArrayRef<swift::AnyFunctionType::Param>, bool) + 1102
8  swift-frontend           0x000000010492925a (anonymous namespace)::PrintAST::printFunctionParameters(swift::AbstractFunctionDecl*) + 234
9  swift-frontend           0x000000010491fa8b swift::ASTVisitor<(anonymous namespace)::PrintAST, void, void, void, void, void, void>::visit(swift::Decl*) + 12235
10 swift-frontend           0x000000010491a353 (anonymous namespace)::PrintAST::visit(swift::Decl*) + 1043
11 swift-frontend           0x00000001049259bf (anonymous namespace)::PrintAST::printMembersOfDecl(swift::Decl*, bool, bool, bool) + 2255
12 swift-frontend           0x000000010492016a swift::ASTVisitor<(anonymous namespace)::PrintAST, void, void, void, void, void, void>::visit(swift::Decl*) + 13994
13 swift-frontend           0x000000010491a353 (anonymous namespace)::PrintAST::visit(swift::Decl*) + 1043
14 swift-frontend           0x00000001037d5003 swift::emitSwiftInterface(llvm::raw_ostream&, swift::ModuleInterfaceOptions const&, swift::ModuleDecl*) + 5811
15 swift-frontend           0x00000001036458f3 void llvm::function_ref<void (llvm::raw_pwrite_stream&)>::callback_fn<swift::withOutputFile(swift::DiagnosticEngine&, llvm::StringRef, llvm::function_ref<bool (llvm::raw_pwrite_stream&)>)::'lambda'(llvm::raw_pwrite_stream&)>(long, llvm::raw_pwrite_stream&) + 19
16 swift-frontend           0x0000000104b4c189 swift::atomicallyWritingToFile(llvm::StringRef, llvm::function_ref<void (llvm::raw_pwrite_stream&)>) + 1657
17 swift-frontend           0x00000001036416b6 swift::withOutputFile(swift::DiagnosticEngine&, llvm::StringRef, llvm::function_ref<bool (llvm::raw_pwrite_stream&)>) + 86
18 swift-frontend           0x00000001036756ac printModuleInterfaceIfNeeded(llvm::StringRef, swift::ModuleInterfaceOptions const&, swift::LangOptions const&, swift::ModuleDecl*) + 1260
19 swift-frontend           0x000000010366c602 performEndOfPipelineActions(swift::CompilerInstance&) + 5794
20 swift-frontend           0x0000000103667e08 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 14792
21 swift-frontend           0x00000001035e7e82 main + 1266
22 libdyld.dylib            0x00007fff20395621 start + 1
error: Segmentation fault: 11 (in target 'Bond-iOS' from project 'Bond')

Steps to reproduce:

Desired output: Target is built successfully

Actual output: Segmentation fault

@typesanitizer
Copy link

@swift-ci create

@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

2 participants