Uploaded image for project: 'Swift'
  1. Swift
  2. SR-8906

Can't print() a DispatchQoS instance on Linux (any longer)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: libdispatch
    • Environment:

      This is the release version of Swift 4.2 on Linux, built for Ubuntu 16.04

      Description

       

      The following program:

      import Dispatch
      print(String(describing: DispatchQoS.utility))
      print(String(describing: DispatchQoS.utility.qosClass))
      

      results in the following output with Swift 4.2 on Linux:

      SWIFT RUNTIME BUG: unable to find field metadata for type 'Dispatch.DispatchQoS'

      SWIFT RUNTIME BUG: unable to find field metadata for type 'Dispatch.DispatchQoS'

      DispatchQoS(unknown: (), unknown: ())

      SWIFT RUNTIME BUG: unable to find field metadata for type 'Dispatch.DispatchQoS.QoSClass'

      SWIFT RUNTIME BUG: unable to find field metadata for type 'Dispatch.DispatchQoS.QoSClass'

      SWIFT RUNTIME BUG: unable to find field metadata for type 'Dispatch.DispatchQoS.QoSClass'

      unknown()

       

      The "SWIFT RUNTIME BUG" lines are output to the error stream.

       

      On both Swift 4.0.3 and 4.1.3, the output is the expected:

      DispatchQoS(qosClass: Dispatch.DispatchQoS.QoSClass.utility, relativePriority: 0)

      utility

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              glessard Guillaume Lessard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: