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-15323] Illegal instruction in Foundation.NSCalendar on Linux #3196

Open
swift-ci opened this issue Oct 14, 2021 · 0 comments
Open

[SR-15323] Illegal instruction in Foundation.NSCalendar on Linux #3196

swift-ci opened this issue Oct 14, 2021 · 0 comments

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-15323
Radar None
Original Reporter Gerzer (JIRA User)
Type Bug
Environment

Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-76-generic x86_64)

Swift version 5.5 (swift-5.5-RELEASE)

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

md5: b1a12baae938ed05fc35f952d29c79a7

Issue Description:

I'm consistently encountering an "illegal instruction operand" runtime crash when running my Swift project on Linux:

* thread #​1, name = 'Runner', stop reason = signal SIGILL: illegal instruction operand

{{ frame #0: 0x00007ffff6f608cf libFoundation.so`function signature specialization <Arg[4] = Dead> of Foundation.NSCalendar.(_convert in A964CA9D661260BE41808499AF1D27AB)(: Swift.Optional<Swift.Int>, type: Swift.String, vector: inout Swift.Array<Swift.Int32>, compDesc: inout Swift.Array<Swift.Int8>) -> () + 47}}

libFoundation.so`function signature specialization <Arg[4] = Dead> of Foundation.NSCalendar.(_convert in A964CA9D661260BE41808499AF1D27AB)(: Swift.Optional<Swift.Int>, type: Swift.String, vector: inout Swift.Array<Swift.Int32>, compDesc: inout Swift.Array<Swift.Int8>) -> ():

-> 0x7ffff6f608cf <+47>: ud2

{{ 0x7ffff6f608d1 <+49>: cmpq $-0x80000000, %rbx ; imm = 0x80000000 }}

{{ 0x7ffff6f608d8 <+56>: jl 0x7ffff6f609ce ; <+302>}}

{{ 0x7ffff6f608de <+62>: movq %rdx, -0x30(%rbp)}}

{{ thread #68, name = 'Runner', stop reason = shared-library-event}}

{{ frame #0: 0x00007ffff7fe48f0 ld-2.28.so`_GI_dl_debug_state at dl-debug.c:74:1}}

Target 0: (Runner) stopped.

You can reproduce this by building and running the project on Linux.

@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
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

1 participant