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-9029] [Source Compat] Breakage: fluent, SwiftLint #51532

Closed
clackary opened this issue Oct 17, 2018 · 5 comments
Closed

[SR-9029] [Source Compat] Breakage: fluent, SwiftLint #51532

clackary opened this issue Oct 17, 2018 · 5 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself source compatibility

Comments

@clackary
Copy link
Contributor

Previous ID SR-9029
Radar rdar://problem/45345844
Original Reporter @clackary
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, SourceCompatibility
Assignee @gottesmm
Priority Medium

md5: 2f6955a7388c6e83e24c59723d6517d5

Issue Description:

Both fluent and SwiftLint projects seem to be failing for an issue in SILGen. Stack traces look similar starting with this:

7 swift 0x00000001044440aa (anonymous namespace)::PatternMatchEmission::emitSpecializedDispatch((anonymous namespace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, unsigned int&, unsigned int, std::__1::function<void (swift::SILLocation)> const&) + 12410 

https://ci.swift.org/view/Source%20Compatibility/job/swift-master-source-compat-suite/2695/artifact/swift-source-compat-suite/

fluent build log

SwiftLint build log

Full backtrace:

1.  While emitting SIL for 'serialize(_:)' at /Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/fluent/.build/checkouts/sql-8718d34e/Sources/SQL/SQLExpression.swift:246:12
2.  While silgen emitFunction SIL function "@$s3SQL20GenericSQLExpressionO9serializeySSSaySE_pGzF".
 for 'serialize(_:)' at /Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/fluent/.build/checkouts/sql-8718d34e/Sources/SQL/SQLExpression.swift:246:12
0  swift                    0x0000000107928fc8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x0000000107927f98 llvm::sys::RunSignalHandlers() + 248
2  swift                    0x00000001079295e2 SignalHandler(int) + 258
3  libsystem_platform.dylib 0x00007fff60ef9f5a _sigtramp + 26
4  libc++abi.dylib          0x00007fff5eb91628 operator new(unsigned long) + 40
5  libsystem_c.dylib        0x00007fff60c971ae abort + 127
6  libsystem_c.dylib        0x00007fff60c5f1ac basename_r + 0
7  swift                    0x00000001044440aa (anonymous namespace)::PatternMatchEmission::emitSpecializedDispatch((anonymous namespace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, unsigned int&, unsigned int, std::__1::function<void (swift::SILLocation)> const&) + 12410
8  swift                    0x000000010443d89d (anonymous namespace)::PatternMatchEmission::emitDispatch((anonymous namespace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, std::__1::function<void (swift::SILLocation)> const&) + 1981
9  swift                    0x0000000104445c74 std::__1::__function::__func<(anonymous namespace)::PatternMatchEmission::emitSpecializedDispatch((anonymous namespace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, unsigned int&, unsigned int, std::__1::function<void (swift::SILLocation)> const&)::$_5, std::__1::allocator<(anonymous namespace)::PatternMatchEmission::emitSpecializedDispatch((anonymous names
pace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, unsigned int&, unsigned int, std::__1::function<void (swift::SILLocation)> const&)::$_5>, void (llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, llvm::ArrayRef<(anonymous namespace)::SpecializedRow>, std::__1::function<void (swift::SILLocation)> const&)>::operator()(llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>&&, llvm::ArrayRef<(anonymous namespace)::SpecializedRow>&&, std::__1::function<void (swift::SILLocation)> const&) + 2340
10 swift                    0x0000000104447cc5 (anonymous namespace)::PatternMatchEmission::emitEnumElementObjectDispatch(llvm::ArrayRef<(anonymous namespace)::RowToSpecialize>, swift::Lowering::ConsumableManagedValue, std::__1::function<void (llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, llvm::ArrayRef<(anonymous namespace)::SpecializedRow>, std::__1::function<void (swift::SILLocation)> const&)> const&, std::__1::function<void (swift::SILLocation)> const&, swift::ProfileCounter)::$_12::operator()(swift::EnumElementDecl*, swift::SILBasicBlock*, (anonymous namespace)::CaseInfo const&) const + 1909
11 swift                    0x0000000104442973 (anonymous namespace)::PatternMatchEmission::emitSpecializedDispatch((anonymous namespace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, unsigned int&, unsigned int, std::__1::function<void (swift::SILLocation)> const&) + 6467
12 swift                    0x000000010443d89d (anonymous namespace)::PatternMatchEmission::emitDispatch((anonymous namespace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, std::__1::function<void (swift::SILLocation)> const&) + 1981
13 swift                    0x000000010443ca2f swift::Lowering::SILGenFunction::emitSwitchStmt(swift::SwitchStmt*) + 2735
14 swift                    0x000000010446556b swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 8155
15 swift                    0x0000000104463585 swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) + 21
16 swift                    0x000000010441ba59 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 425
17 swift                    0x0000000104391b8d swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*)::$_1::operator()(swift::SILFunction*) const + 237
18 swift                    0x0000000104388ca3 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 627
19 swift                    0x000000010446f3b5 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) + 21
20 swift                    0x000000010446db7f (anonymous namespace)::SILGenType::emitType() + 239
21 swift                    0x000000010446da89 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) + 25
22 swift                    0x000000010438e096 swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) + 790
23 swift                    0x000000010438eee3 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*) + 371
24 swift                    0x000000010438f3f0 swift::performSILGeneration(swift::ModuleDecl*, swift::SILOptions&) + 16
25 swift                    0x0000000103a9a9c3 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 9027
26 swift                    0x0000000103a975ed swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3021
27 swift                    0x0000000103a499de main + 686
28 libdyld.dylib            0x00007fff60beb015 start + 1
<unknown>:0: error: unable to execute command: Abort trap: 6
<unknown>:0: error: compile command failed due to signal 6 (use -v to see invocation)
@clackary
Copy link
Contributor Author

@swift-ci create

@gottesmm
Copy link
Member

Looking at this now. I figured out the problem.

@gottesmm
Copy link
Member

I think this fixes it: #19959

@gottesmm
Copy link
Member

Merged!

@clackary
Copy link
Contributor Author

Thanks Michael!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 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 A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself source compatibility
Projects
None yet
Development

No branches or pull requests

2 participants