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-13060] swiftc crash when comparing == NSNull.null #55506

Open
swift-ci opened this issue Jun 22, 2020 · 3 comments
Open

[SR-13060] swiftc crash when comparing == NSNull.null #55506

swift-ci opened this issue Jun 22, 2020 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13060
Radar None
Original Reporter helge (JIRA User)
Type Bug

Attachment: Download

Environment

macOS 10.15.5 (19F101) Xcode 11.5 (11E608c)
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee asb (JIRA)
Priority Medium

md5: 0b298b0864d5ce84209f5016f3946754

Issue Description:

Kills the compiler:

@CodaFi
Copy link
Member

CodaFi commented Jun 22, 2020

Is there an additional declaration of `json` missing? I cannot reproduce a crash against master on macOS or Linux.

@swift-ci
Copy link
Collaborator Author

Comment by Helge Heß (JIRA)

Not sure what you mean by that. The `is` variant compiles fine (so `json` is properly declared, the crash dump contains the code), the `==` variant crashes.

I also tried to replicate the issue in the REPL, and couldn't.

@swift-ci
Copy link
Collaborator Author

Comment by Andrew Breckenridge (JIRA)

I'm trying to repro at AndrewSB@a597cef

but it looks like NSObject no longer has null, compiler error:

'null()' has been replaced by 'init()'

Remove '.null'

can you think of any alternatives that might trigger the same crash in swiftc?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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
Projects
None yet
Development

No branches or pull requests

2 participants