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

Crash (divison by zero) in QLocaleData::applyIntegerFormatting()

    XMLWordPrintable

Details

    • Windows
    • 2
    • 385626d64 (dev), 6b08ad7ed (6.6), 5d3021730 (tqtc/lts-6.5)
    • Foundations Sprint 94

    Description

      I just see such crashes among our users crash reports. Have no reproducer or any
      ideas how to reproduce this on purpose.. Perhaps relates to specific Windows system locale settings.

      Unhandled exception at 0x00007FFD3B0AC60B (Qt6Core.dll) in minidump (62).dmp: 0xC0000094: Integer division by zero.
      

      Call stack:

      >	Qt6Core.dll!QLocaleData::applyIntegerFormatting(QString && numStr, bool negative, int precision, int base, int width, unsigned int flags) Line 3823	C++
       	Qt6Core.dll!QLocaleData::longLongToString(__int64 n, int precision, int base, int width, unsigned int flags) Line 3806	C++
       	Qt6Core.dll!QCalendarBackend::dateTimeToString(QStringView format, const QDateTime & datetime, QDate dateOnly, QTime timeOnly, const QLocale & locale) Line 3440	C++
       	Qt6Core.dll!QCalendar::dateTimeToString(QStringView format, const QDateTime & datetime, QDate dateOnly, QTime timeOnly, const QLocale & locale) Line 1587	C++
       	[Inline Frame] Qt6Core.dll!QLocale::toString(QTime) Line 2132	C++
       	Qt6Core.dll!QLocale::toString(QTime time, const QString & format) Line 2013	C++
      ...
      

      Minidump shows that `zero` is empty string, so `digitWidth` == 0.

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            studiosus Vladimir Belyavsky
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes