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-2656] Linux Swift 3.0 crashes in DispatchIO.read() #722

Closed
swift-ci opened this issue Sep 15, 2016 · 4 comments
Closed

[SR-2656] Linux Swift 3.0 crashes in DispatchIO.read() #722

swift-ci opened this issue Sep 15, 2016 · 4 comments

Comments

@swift-ci
Copy link

swift-ci commented Sep 15, 2016

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

Ubuntu, either 14 or 15, doesn't matter with the final Swift 3.0 drop.

Additional Detail from JIRA
Votes 0
Component/s libdispatch
Labels Bug, Linux
Assignee dgrove-oss (JIRA)
Priority Medium

md5: 11d534504ba248a72e773044ac6867ff

Issue Description:

Swift 3.0: read()ing from a DispatchIO channel on Linux results in a SIGILL:

  • thread Add & use DISPATCH_NOESCAPE attribute macro #6: tid = 1146, 0x00007ffff7efb503 libdispatch.so`_os_object_release + 35, name = 'sockd', stop reason = signal SIGILL: illegal instruction operand

  • frame #0: 0x00007ffff7efb503 libdispatch.so`_os_object_release + 35
    frame Typos #1: 0x00007ffff7ef46b7 libdispatch.so`_dispatch_call_block_and_release + 7

I put up an tiny isolated example over here: https://github.com/helje5/linux-gcd-issue

Works fine on macOS.

@swift-ci
Copy link
Author

swift-ci commented Sep 22, 2016

Comment by David Grove (JIRA)

I can reproduce crash. Investigating.

@swift-ci
Copy link
Author

swift-ci commented Sep 22, 2016

Comment by David Grove (JIRA)

A proposed fix in #175

@swift-ci
Copy link
Author

swift-ci commented Sep 22, 2016

Comment by Helge Heß (JIRA)

That was Swift. Thx.

@swift-ci
Copy link
Author

swift-ci commented Sep 23, 2016

Comment by David Grove (JIRA)

fixed merged to master; will be merged to Swift3 branch shortly.

@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

1 participant