Skip to content

[SR-11258] [Source Compat] Breakage: GRDB.swift - Assertion failed: (Loc.isValid()) #53659

Open
@groue

Description

@groue
Previous ID SR-11258
Radar rdar://problem/54312893
Original Reporter @groue
Type Bug
Environment

Xcode 11 beta 5

Trunk snapshot org.swift.50201908031a

macOS 10.14.6 (18G84)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.2Regression, CompilerCrash, SourceCompatibility
Assignee None
Priority Medium

md5: a526b77bd16ced82909f717c8393cdb5

Issue Description:

Hello,

The Trunk Development snapshot shipped on August 3, 2019 (identifier org.swift.50201908031a) fails to compile the test suite of GRDB.swift (https://github.com/groue/GRDB.swift)

To reproduce:

  • Install Xcode 11 beta 5

  • Download the snapshot

  • Clone GRDB, tag v4.1.1

  • Open GRDB.xcworkspace

  • Select GRDBOSX scheme

  • Build tests

The tests fail to build, with the following output:

Assertion failed: (Loc.isValid()), function getLineAndColumn, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/include/swift/Basic/SourceManager.h, line 202.
...
3.  While emitting SIL for 'testWriteObservationFailsByDefaultWithErrorHandling()' (at /Users/groue/Documents/git/groue/GRDB.swift/Tests/GRDBTests/ValueObservationReadonlyTests.swift:63:5)
0  swift                    0x000000010b25c6c5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  swift                    0x000000010b25b9b5 llvm::sys::RunSignalHandlers() + 85
2  swift                    0x000000010b25cca8 SignalHandler(int) + 264
3  libsystem_platform.dylib 0x00007fff5a8d9b5d _sigtramp + 29
4  swift                    0x000000010d5820f0 cmark_strbuf__initbuf + 135259
5  libsystem_c.dylib        0x00007fff5a7936a6 abort + 127
6  libsystem_c.dylib        0x00007fff5a75c20d basename_r + 0
7  swift                    0x000000010b51e433 swift::SILProfiler::assignRegionCounters() (.cold.5) + 35
8  swift                    0x0000000108202871 swift::SILProfiler::assignRegionCounters() + 3585
9  swift                    0x0000000108201a17 swift::SILProfiler::create(swift::SILModule&, swift::ForDefinition_t, swift::ASTNode, swift::SILDeclRef) + 503
10 swift                    0x00000001081918b9 swift::SILFunction::createProfiler(swift::ASTNode, swift::SILDeclRef, swift::ForDefinition_t) + 41
11 swift                    0x0000000107cb5fdd setUpForProfiling(swift::SILDeclRef, swift::SILFunction*, swift::ForDefinition_t) + 125
12 swift                    0x0000000107cb5b62 swift::Lowering::SILGenModule::getFunction(swift::SILDeclRef, swift::ForDefinition_t) + 434
13 swift                    0x0000000107cb629f swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 591
14 swift                    0x0000000107d8ba83 (anonymous namespace)::SILGenType::emitType() + 803
15 swift                    0x0000000107d8b759 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) + 25
16 swift                    0x0000000107cbb0d6 swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) + 822
17 swift                    0x0000000107cbc04f swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*) + 287
18 swift                    0x0000000107cbc486 swift::performSILGeneration(swift::FileUnit&, swift::SILOptions&) + 38
19 swift                    0x00000001079dd6e4 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 7604
20 swift                    0x00000001079daa00 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3024
21 swift                    0x0000000107982389 main + 729
22 libdyld.dylib            0x00007fff5a6ee3d5 start + 1
23 libdyld.dylib            0x00000000000000b6 start + 2777750754
error: Abort trap: 6 (in target 'GRDBOSXTests' from project 'GRDB')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareregressionsource compatibilityswift 5.2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions