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

QAbstractTestLogger::addMessage UB ?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.4
    • Testing: qtestlib
    • None
    • Linux 3.18.13_s40 #1 SMP Fri Sep 16 20:54:01 UTC 2022 armv7l GNU/Linux
    • Linux/Other display system

    Description

      Good afternoon.

       

      My application logs messages from different threads in a unit test. Found out with the help of libasan that there is an unsynchronized access to std::vector. Sanitizer logs attached to the ticket.

      The title contains the name of the base class, but most likely the problem is in the junit or plain logger.

       

      The binary is run like this:

      ./binary -maxwarnings 0 -o ${remote_log},junitxml -o -,txt

      In the documentation, I did not find anything about the thread safety of QTestLib loggers.

      Attachments

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

        Activity

          People

            macadder Jason McDonald
            lma10h Raphael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes