[SR-2656] Linux Swift 3.0 crashes in DispatchIO.read() Created: 15 Sep 2016  Updated: 23 Sep 2016  Resolved: 23 Sep 2016

Status: Resolved
Project: Swift
Component/s: libdispatch

Type: Bug Priority: Medium
Reporter: Helge Heß Assignee: David Grove
Resolution: Done Votes: 0
Labels: Linux
Environment:

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



 Description   

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

  • thread #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 #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.



 Comments   
Comment by David Grove [ 22 Sep 2016 ]

I can reproduce crash. Investigating.

Comment by David Grove [ 22 Sep 2016 ]

A proposed fix in https://github.com/apple/swift-corelibs-libdispatch/pull/175

Comment by Helge Heß [ 22 Sep 2016 ]

That was Swift. Thx.

Comment by David Grove [ 23 Sep 2016 ]

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

Generated at Sun Dec 16 14:59:43 CST 2018 using Jira 7.13.0#713000-sha1:fbf406879436de2f3fb1cfa09c7fa556fb79615a.