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-11592] "Remangling failed" on Linux for conditional conformance implementation. #53997

Closed
ffried opened this issue Oct 9, 2019 · 2 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 mangling Area → compiler: Mangling

Comments

@ffried
Copy link
Contributor

ffried commented Oct 9, 2019

Previous ID SR-11592
Radar rdar://problem/56120467
Original Reporter @ffried
Type Bug
Status Resolved
Resolution Done
Environment

Swift version 5.1.1 (swift-5.1.1-RELEASE)
Target: x86_64-unknown-linux-gnu

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

md5: eb7ff6ae3f74ff6371fcfa20c22e76c6

Issue Description:

The following code compiles on macOS, but fails to compile on Linux (Ubuntu 18.04 - Swift 5.1.1):

protocol Creatable {
    static func make() -> Self?
}

extension Optional: Creatable where Wrapped: Creatable {
    static func make() -> Self? {
        return Wrapped.make()
    }
}

The failure message:

Remangling failed:
original     = $sxSg22s511_remangling_failed9CreatableA2bCRzlAbCP4makexSgyFZTW
remangled    = $sxSg22s511_remangling_failed9CreatableA2bCRzlAbCP4makeAAyFZTW
Stack dump:
0.  Program arguments: /usr/swift/swift-5.1.1/bin/swift -frontend -interpret s511_remangling_failed.swift -disable-objc-interop -color-diagnostics -module-name s511_remangling_failed 
/usr/swift/swift-5.1.1/bin/swift[0x451a3b4]
/usr/swift/swift-5.1.1/bin/swift[0x451800e]
/usr/swift/swift-5.1.1/bin/swift[0x451a7c8]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f4a62015890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f4a60478e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f4a6047a801]
/usr/swift/swift-5.1.1/bin/swift[0x14775f2]
/usr/swift/swift-5.1.1/bin/swift[0x14772d1]
/usr/swift/swift-5.1.1/bin/swift[0x130dbeb]
/usr/swift/swift-5.1.1/bin/swift[0x8e0da7]
/usr/swift/swift-5.1.1/bin/swift[0x8e33ad]
/usr/swift/swift-5.1.1/bin/swift[0x8e31c1]
/usr/swift/swift-5.1.1/bin/swift[0x8e2d8f]
/usr/swift/swift-5.1.1/bin/swift[0x8e0363]
/usr/swift/swift-5.1.1/bin/swift[0x8e2716]
/usr/swift/swift-5.1.1/bin/swift[0x8e265d]
/usr/swift/swift-5.1.1/bin/swift[0x83fbcc]
/usr/swift/swift-5.1.1/bin/swift[0x840b13]
/usr/swift/swift-5.1.1/bin/swift[0x8410fb]
/usr/swift/swift-5.1.1/bin/swift[0x4d53d2]
/usr/swift/swift-5.1.1/bin/swift[0x4d0cde]
/usr/swift/swift-5.1.1/bin/swift[0x473b16]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f4a6045bb97]
/usr/swift/swift-5.1.1/bin/swift[0x47377a]
Aborted
@belkadan
Copy link
Contributor

belkadan commented Oct 9, 2019

@swift-ci create

@eeckstein
Copy link
Member

This seems to be already fixed on master.

@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 mangling Area → compiler: Mangling
Projects
None yet
Development

No branches or pull requests

4 participants