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-4863] Swift compiler crashes on building SWXMLHash 3.0.2 with swift-DEVELOPMENT-SNAPSHOT-2017-05-10-a #47440

Closed
norio-nomura opened this issue May 11, 2017 · 3 comments
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 regression swift 4.0

Comments

@norio-nomura
Copy link
Contributor

Previous ID SR-4863
Radar None
Original Reporter @norio-nomura
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

swift-DEVELOPMENT-SNAPSHOT-2017-05-10-a

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

md5: a04b2d6fa42732c72f922b7cac6c299b

relates to:

  • SR-4850 Assertion failed: (Val && "isa<> used on a null pointer"), function doit

Issue Description:

Reproducing steps:

1. git clone https://github.com/drmohundro/SWXMLHash.git
2. cd SWXMLHash
3. xcodebuild -toolchain org.swift.3020170510a -workspace SWXMLHash.xcworkspace/ -scheme SWXMLHash\ OSX test

Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/llvm/include/llvm/Support/Casting.h, line 95.
0  swift                    0x00000001078da1b8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x00000001078d9186 llvm::sys::RunSignalHandlers() + 86
2  swift                    0x00000001078da779 SignalHandler(int) + 361
3  libsystem_platform.dylib 0x00007fffa3591b3a _sigtramp + 26
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 1554441440
5  libsystem_c.dylib        0x00007fffa3416420 abort + 129
6  libsystem_c.dylib        0x00007fffa33dd893 basename_r + 0
7  swift                    0x00000001052b3679 swift::ModuleFile::finishNormalConformance(swift::NormalProtocolConformance*, unsigned long long) + 4249
8  swift                    0x000000010570bf03 swift::NormalProtocolConformance::resolveLazyInfo() const + 99
9  swift                    0x00000001052e62c5 swift::serialization::Serializer::writeNormalConformance(swift::NormalProtocolConformance const*) + 661
10 swift                    0x00000001052f493b swift::serialization::Serializer::writeAllDeclsAndTypes() + 2699
11 swift                    0x00000001052f5dc8 swift::serialization::Serializer::writeAST(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, bool) + 3288
12 swift                    0x00000001052faa8b swift::serialization::Serializer::writeToStream(llvm::raw_ostream&, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SILModule const*, swift::SerializationOptions const&) + 139
13 swift                    0x000000010532b613 void llvm::function_ref<void (llvm::raw_ostream&)>::callback_fn<swift::serialize(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&, swift::SILModule const*)::$_4>(long, llvm::raw_ostream&) + 179
14 swift                    0x00000001052fbc1b withOutputFile(swift::ASTContext&, llvm::StringRef, llvm::function_ref<void (llvm::raw_ostream&)>) + 395
15 swift                    0x00000001052fba0c swift::serialize(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&, swift::SILModule const*) + 220
16 swift                    0x00000001046e5fec performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 10428
17 swift                    0x00000001046e265a swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2650
18 swift                    0x000000010469f0b0 main + 3312
19 libdyld.dylib            0x00007fffa3382235 start + 1

Full crash log attached.

@belkadan
Copy link
Contributor

Likely the same as SR-4850.

@norio-nomura
Copy link
Contributor Author

This crash does not happen with swift-4.0-DEVELOPMENT-SNAPSHOT-2017-05-11-a on ubuntu 16.04

@norio-nomura
Copy link
Contributor Author

I confirmed that this issue has been fixed on swift-4.0-DEVELOPMENT-SNAPSHOT-2017-05-15-a.

@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 regression swift 4.0
Projects
None yet
Development

No branches or pull requests

3 participants