Skip to content

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

Closed
@swift-ci

Description

@swift-ci
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions