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

static QDateTime::fromTime_t() non-reentrant on Android

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.5.1, 5.6.0 RC, 5.7.0 Alpha
    • Core: Date/Time
    • None
    • GCC 4.9 armv7 from android-ndk-r10e, Android 4.4, Android 5.1

      When I create QDateTime objects in two threads at the same time, sometimes I get value from thread 1 in the thread 2. I can reproduce it on Android, but not on my Linux Laptop.

      Test program in the attachment run two treads, and each thread creates uint variable, then creates from it QDateTime and compares toTime_t() and initial value. After several seconds, the values does not match.

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

            thiago Thiago Macieira
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes