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-9685] Accessing NSNumber(value: 1.2 as Float).description crashes with Fatal error: Unknown NSNumber Type: file /…/swift-corelibs-foundation/Foundation/NSNumber.swift, line 1041 #3556

Closed
norio-nomura opened this issue Jan 17, 2019 · 3 comments

Comments

@norio-nomura
Copy link
Contributor

Previous ID SR-9685
Radar None
Original Reporter @norio-nomura
Type Bug
Status Resolved
Resolution Done
Environment

swift-5.0-DEVELOPMENT-SNAPSHOT-2019-01-16-a on Linux
swift-DEVELOPMENT-SNAPSHOT-2019-01-16-a on Linux

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Linux
Assignee None
Priority Medium

md5: d8a4d9fd0a1e4dd45c44df426d864499

Issue Description:

$ docker run --privileged -it --rm norionomura/swift:5020190116a swift
Welcome to Swift version 5.0-dev (LLVM a6b53a73a4, Clang e5012f3421, Swift 72c4f73082).
Type :help for assistance.
  1> import Foundation
  2> NSNumber(value: 1.2 as Float).description
Fatal error: Unknown NSNumber Type: file /home/buildnode/jenkins/workspace/oss-swift-5.0-package-linux-ubuntu-16_04/swift-corelibs-foundation/Foundation/NSNumber.swift, line 1041
Execution interrupted. Enter code to recover and continue.
Enter LLDB commands to investigate (type :help for assistance.)
Process 9 stopped
* thread #​1, name = 'repl_swift', stop reason = signal SIGILL: illegal instruction operand
    frame #&#8203;0: 0x00007ffff73f7dca libswiftCore.so`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift._assertionFailure(_: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 378
libswiftCore.so`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift._assertionFailure(_: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never:
->  0x7ffff73f7dca <+378>: ud2    
    0x7ffff73f7dcc <+380>: movq   %rbx, %r13
    0x7ffff73f7dcf <+383>: addq   $0x10, %r13
    0x7ffff73f7dd3 <+387>: cmpl   $0x80, %r15d
Target 0: (repl_swift) stopped.
  3> ^D
@spevans
Copy link
Collaborator

spevans commented Jan 17, 2019

#1830

@spevans
Copy link
Collaborator

spevans commented Jan 29, 2019

Merged into master and swift-5.0-branch

@norio-nomura
Copy link
Contributor Author

Thanks! 🙂

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants