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-7673] Crash in Sema/fixed_ambiguities/rdar35623181.swift #50213

Closed
milseman mannequin opened this issue May 13, 2018 · 3 comments
Closed

[SR-7673] Crash in Sema/fixed_ambiguities/rdar35623181.swift #50213

milseman mannequin opened this issue May 13, 2018 · 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.2

Comments

@milseman
Copy link
Mannequin

milseman mannequin commented May 13, 2018

Previous ID SR-7673
Radar rdar://problem/40227913
Original Reporter @milseman
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 4.2Regression, CompilerCrash
Assignee None
Priority Medium

md5: 56f5c96d18c1bd879688e47ccdbff416

Issue Description:

#16578 XFAILs Sema/fixed_ambiguities/rdar35623181.swift, which produces a crash in the compiler (see the PR).

Changes in that PR are mostly internal stdlib or changes to inlinability annotations, not the compiler.

@slavapestov
Copy link
Member

Crash in SIL printer when printing the @_specialize attribute:

// Sequence<>.joined(separator:)
sil [_specialize exported: false, kind: full, where Assertion failed: (GenericEnv), function print, file /Users/spestov/src/swift/lib/SIL/SILPrinter.cpp, line 3020.
0  swift                    0x000000010ff9da88 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x000000010ff9e196 SignalHandler(int) + 694
2  libsystem_platform.dylib 0x00007fff52f57f5a _sigtramp + 26
3  libsystem_platform.dylib 0x000000011a2bb5b8 _sigtramp + 3342218872
4  libsystem_c.dylib        0x00007fff52cf51ae abort + 127
5  libsystem_c.dylib        0x00007fff52cbd1ac basename_r + 0
6  swift                    0x000000010d4eed84 swift::SILSpecializeAttr::print(llvm::raw_ostream&) const + 1524
7  swift                    0x000000010d4ecca4 swift::SILFunction::print(swift::SILPrintContext&) const + 2292
8  swift                    0x000000010d4eff4b swift::SILModule::print(swift::SILPrintContext&, swift::ModuleDecl*, bool) const + 2507
9  swift                    0x000000010c817435 writeSIL(swift::SILModule&, swift::PrimarySpecificPaths const&, swift::CompilerInstance&, swift::CompilerInvocation&) + 197
10 swift                    0x000000010c80d24b performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 12043
11 swift                    0x000000010c809336 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3318
12 swift                    0x000000010c7c5cdd main + 2317
13 libdyld.dylib            0x00007fff52c49015 start + 1
14 libdyld.dylib            0x000000000000000d start + 2906353657
Stack dump:
0.  Program arguments: /Users/spestov/src/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift -frontend -emit-sil -primary-file test/Sema/fixed_ambiguities/rdar35623181.swift -target x86_64-apple-darwin17.5.0 -enable-objc-interop -color-diagnostics -module-name rdar35623181 -o -

@belkadan
Copy link
Contributor

@swift-ci create

@slavapestov
Copy link
Member

#16587

@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.2
Projects
None yet
Development

No branches or pull requests

3 participants