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

[REG 5.15] Crash during construction of QLocale() on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15
    • Core: Locales (i18n)
    • None
    • Windows

    Description

      emphasized textTrying to access the default locale results in a debug assert for me (5.15, MSVC):

      #include <QLocale>
      
      int main(int argc, char *argv[])
      {
          QLocale::system();
      }
      

      results in

      ASSERT: "uint(i) < uint(size())" in file C:\dev\qt\5.15\msvc-2019-amd64\qtbase\include\QtCore\../../../../src/qtbase/src/corelib/text/qstring.h, line 1031
      

      Stack trace:

      1  qt_message_fatal       qlogging.cpp   1865 0x7ff9da51c40d 
      2  QMessageLogger::fatal  qlogging.cpp   893  0x7ff9da51abe3 
      3  qt_assert              qglobal.cpp    3354 0x7ff9da50b089 
      4  QString::at            qstring.h      1031 0x7ff9da4cb49e 
      5  updateSystemPrivate    qlocale.cpp    754  0x7ff9da6b3362 
      6  systemData             qlocale.cpp    772  0x7ff9da6b3413 
      7  QLocale::system        qlocale.cpp    2723 0x7ff9da6aa176 
      8  main                   main.cpp       5    0x7ff6dbc41398 
      9  invoke_main            exe_common.inl 79   0x7ff6dbc41989 
      10 __scrt_common_main_seh exe_common.inl 288  0x7ff6dbc4182e 
      11 __scrt_common_main     exe_common.inl 331  0x7ff6dbc416ee 
      12 mainCRTStartup         exe_main.cpp   17   0x7ff6dbc41a19 
      13 BaseThreadInitThunk    KERNEL32            0x7ffa53a17bd4 
      14 RtlUserThreadStart     ntdll               0x7ffa53e2ced1 
      

      This seems to be introduced by commit c0ea88a6776b6281d5774d03572b1aecc2ef3c25 .

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes