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-9151] [Source Compat] Breakage: GRDB.swift - Assertion failed: (arg.hasLValueType() == param.isIndirectInOut()) #51647

Closed
clackary opened this issue Oct 31, 2018 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software source compatibility

Comments

@clackary
Copy link
Contributor

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

md5: 903300384457af06a0d3b43b8e3ab50e

Issue Description:

To reproduce:

1. Install Xcode 10.0

2. $ git clone git@github.com:apple/swift-source-compat-suite.git

3. $ cd swift-source-compat-suite

To build Swift from scratch before testing:

4. $ ./reproduce.py master --project-path GRDB.swift

Or if you've already built Swift:

4. $ ./reproduce.py master --project-path GRDB.swift --swiftc path/to/swiftc

Build log

Pull request to update GRDB.swift hash

Assertion failed: (arg.hasLValueType() == param.isIndirectInOut()), function emit, file /Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/swift/lib/SILGen/SILGenApply.cpp, line 2699.

1.  While emitting SIL for 'performInsert(_:)' at /Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/GRDB.swift/GRDB/Record/PersistableRecord.swift:942:12
2.  While silgen emitFunction SIL function "@$s4GRDB17PersistableRecordPAAE13performInsertyyAA8DatabaseCKF".
 for 'performInsert(_:)' at /Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/GRDB.swift/GRDB/Record/PersistableRecord.swift:942:12
0  swift                    0x0000000113ea2e08 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x0000000113ea1dd8 llvm::sys::RunSignalHandlers() + 248
2  swift                    0x0000000113ea3422 SignalHandler(int) + 258
3  libsystem_platform.dylib 0x00007fff6396cf5a _sigtramp + 26
4  libsystem_platform.dylib 0x00000001179ebff8 _sigtramp + 3020419256
5  libsystem_c.dylib        0x00007fff6370a1ae abort + 127
6  libsystem_c.dylib        0x00007fff636d21ac basename_r + 0
7  swift                    0x00000001109055ac (anonymous namespace)::ArgEmitter::emit(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 4396
8  swift                    0x0000000110910470 (anonymous namespace)::CallSite::emit(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, (anonymous namespace)::ParamLowering&, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::SmallVectorImpl<(anonymous namespace)::DelayedArgument>&, llvm::Optional<swift::ForeignErrorConvention> const&, swift::ImportAsMemberStatus) && + 976
9  swift                    0x000000011090fbbc (anonymous namespace)::CallEmission::emitArgumentsForNormalApply(swift::CanTypeWrapper<swift::FunctionType>&, swift::Lowering::AbstractionPattern&, swift::CanTypeWrapper<swift::SILFunctionType>, llvm::Optional<swift::ForeignErrorConvention> const&, swift::ImportAsMemberStatus, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::Optional<swift::SILLocation>&, swift::CanTypeWrapper<swift::FunctionType>&) + 1740
10 swift                    0x00000001108f48fc (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 2924
11 swift                    0x00000001108f3c90 swift::Lowering::SILGenFunction::emitApplyExpr(swift::Expr*, swift::Lowering::SGFContext) + 2016
12 swift                    0x000000011095f391 swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 81
13 swift                    0x000000011095465e swift::Lowering::SILGenFunction::emitIgnoredExpr(swift::Expr*) + 1198
14 swift                    0x00000001109c1d5c swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 8348
15 swift                    0x00000001109c1711 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 6737
16 swift                    0x00000001109c1c8b swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 8139
17 swift                    0x00000001109bfcb5 swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) + 21
18 swift                    0x00000001109779a9 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 425
19 swift                    0x00000001108eda1d swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*)::$_1::operator()(swift::SILFunction*) const + 237
20 swift                    0x00000001108e49e3 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 627
21 swift                    0x00000001109cc8de swift::ASTVisitor<SILGenExte
nsion, void, void, void, void, void, void>::visit(swift::Decl*) + 110
22 swift                    0x00000001109cabeb SILGenExtension::emitExtension(swift::ExtensionDecl*) + 59
23 swift                    0x00000001109caba5 swift::Lowering::SILGenModule::visitExtensionDecl(swift::ExtensionDecl*) + 21
24 swift                    0x00000001108e9e16 swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) + 806
25 swift                    0x00000001108ead73 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*) + 371
26 swift                    0x00000001108eb280 swift::performSILGeneration(swift::ModuleDecl*, swift::SILOptions&) + 16
27 swift                    0x000000010fff4bf3 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 9027
28 swift                    0x000000010fff181d swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3021
29 swift                    0x000000010ffa37ce main + 686
30 libdyld.dylib            0x00007fff6365e015 start + 1
31 libdyld.dylib            0x0000000000000160 start + 2627346764
<unknown>:0: error: unable to execute command: Abort trap: 6
@clackary
Copy link
Contributor Author

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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 crash Bug: A crash, i.e., an abnormal termination of software source compatibility
Projects
None yet
Development

No branches or pull requests

2 participants