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

QLocale::QLocale() calls itself recursively and deadlocks on Windows with certain regional settings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.14.2
    • Fix Version/s: 5.15.0
    • Component/s: Core: Locales (i18n)
    • Labels:
      None
    • Environment:
      Winows 10 MinGW
    • Platform/s:
      Windows
    • Commits:
      1eeabc6652220ff263eaa63872cd52c1693cbf69

      Description

      This only appears to occur on Windows 10. If the Windows regional advanced settings are changed to use a ',' character for both DP and grouping character the QLocale constructor will deadlock due to a recursive call while holding a lock.

      This was reported for our application by users using the Greek language locale, without having to change the number formats to the pathological setup above. Can be demonstrated by a trivial application that just constructs a QLocale default object in main().

        Attachments

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

          Activity

            People

            Assignee:
            Eddy Edward Welbourne
            Reporter:
            bsomervi Bill Somerville
            PM Owner:
            Maurice Kalinowski Maurice Kalinowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes