Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59930

macOS: Intermittent hang in qt_safe_accept

    XMLWordPrintable

Details

    • macOS
    • 979c8b746b56b8e68acf47b5af2eecf834043b50

    Description

      On macOS, the ::accept call in qt_safe_accept intermittently blocks indefinitely in the attached code, causing a hang.

      To demonstrate in the attached code, build and run in the terminal (and Ctrl+C to quit):

      ./NCA-9481-widgets.app/Contents/MacOS/NCA-9481-widgets
      

      After several repeats, the hang will occur. It seems that qt_safe_accept sometimes gets called spuriously a second time, and ::accept blocks. Adding O_NONBLOCK to the qt_safe_socket call in QLocalServerPrivate::listen(const QString &) makes the hang go away.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            erb Jason Erb (Suitable Technologies)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes