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

QSerialPort Mark/Space Emulation causes recursion and crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.7
    • Serial Port
    • None
    • Linux/X11, Other

    Description

      The QSerialPort class under unix has some code to emulate mark/space parity on systems that don't define CMSPAR by toggling between odd and even parity for each byte.  As it stands now, it doesn't work at all.  As soon as you set parity to mark or space on these platforms (FreeBSD in my test case), the writePerChar function ends up recursive due to the flush call and eventually segfaults.  Looks like this is due to a later change to make flush() non-blocking

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            brockmt Brock Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes