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-6967] Crash when starting already canceled Foundation.Operation on Linux #663

Closed
swift-ci opened this issue Feb 9, 2018 · 2 comments

Comments

@swift-ci
Copy link

swift-ci commented Feb 9, 2018

Previous ID SR-6967
Radar None
Original Reporter artem (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Swift version 4.0.3 (swift-4.0.3-RELEASE)

Ubuntu 16.04

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

md5: 89aa4b6093114ef24e8777b5984e1b4d

Issue Description:

import Foundation

let operation = Operation()
operation.cancel()
operation.start()

Enter LLDB commands to investigate (type :help for assistance.)
Process 30622 stopped
* thread #​1, name = 'repl_swift', stop reason = signal SIGILL: illegal instruction operand
frame #​0: 0x00007ffff7f19e70 libdispatch.so`dispatch_group_leave + 32
libdispatch.so`dispatch_group_leave:
-> 0x7ffff7f19e70 <+32>: ud2 
0x7ffff7f19e72: nopw %cs:(%rax,%rax)
libdispatch.so`_dispatch_group_wake:
0x7ffff7f19e80 <+0>: pushq %rbp
0x7ffff7f19e81 <+1>: pushq %r15
Target 0: (repl_swift) stopped.
@belkadan
Copy link

belkadan commented Feb 9, 2018

@millenomi, possible good StarterBug?

@spevans
Copy link
Contributor

spevans commented Jan 29, 2020

This was fixed in 4.1 by this PR: apple/swift-corelibs-foundation#1229

@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

3 participants