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

Crash by recursive calls

    XMLWordPrintable

Details

    • Windows
    • 9d1905da9c59e9062a157199c81c076efc20eb28, 922d195020d54d7e599d135f6a5e0338100e08f1

    Description

       

      1    RtlSizeHeap                          ntdll                         0x775e96cb 
      2    RtlSizeHeap                          ntdll                         0x775e85b0 
      3    RtlAllocateHeap                      ntdll                         0x775edecb 
      4    RtlAllocateHeap                      ntdll                         0x775edc2e 
      5    RtlpNtSetValueKey                    ntdll                         0x7768d869 
      6    RtlReleaseSRWLockShared              ntdll                         0x775efb40 
      7    RtlAllocateHeap                      ntdll                         0x775edecb 
      8    RtlAllocateHeap                      ntdll                         0x775edc2e 
      9    calloc_base                          ucrtbased                     0x513ab4a5 
      10   calloc_base                          ucrtbased                     0x513ab2c6 
      11   malloc_dbg                           ucrtbased                     0x513ada3a 
      12   malloc                               ucrtbased                     0x513ae354 
      13   QArrayData::allocate                 qarraydata.cpp           118  0x51634725 
      14   QTypedArrayData<char>::allocate      qarraydata.h             224  0x5163efb4 
      15   QByteArray::resize                   qbytearray.cpp           1867 0x5163773a 
      16   qt_getCanonicalFontNames             qwindowsfontdatabase.cpp 987  0x50ece9e0 
      17   addFontToDatabase                    qwindowsfontdatabase.cpp 1059 0x50ed0552 
      18   storeFont                            qwindowsfontdatabase.cpp 1140 0x50ed0ad5 
      19   EnumFontFamiliesExW                  GDI32                         0x743afd4e 
      20   EnumFontFamiliesExW                  GDI32                         0x743afc4e 
      21   QWindowsFontDatabase::populateFamily qwindowsfontdatabase.cpp 1160 0x50ecb20f 
      22   addFontToDatabase                    qwindowsfontdatabase.cpp 1102 0x50ed0786 
      23   storeFont                            qwindowsfontdatabase.cpp 1140 0x50ed0ad5 
      24   EnumFontFamiliesExW                  GDI32                         0x743afd4e 
      25   EnumFontFamiliesExW                  GDI32                         0x743afc4e 
      26   QWindowsFontDatabase::populateFamily qwindowsfontdatabase.cpp 1160 0x50ecb20f 
      27   addFontToDatabase                    qwindowsfontdatabase.cpp 1102 0x50ed0786 
      28   storeFont                            qwindowsfontdatabase.cpp 1140 0x50ed0ad5 
      29   EnumFontFamiliesExW                  GDI32                         0x743afd4e 
      30   EnumFontFamiliesExW                  GDI32                         0x743afc4e 
      31   QWindowsFontDatabase::populateFamily qwindowsfontdatabase.cpp 1160 0x50ecb20f 
      32   addFontToDatabase                    qwindowsfontdatabase.cpp 1102 0x50ed0786 
      33   storeFont                            qwindowsfontdatabase.cpp 1140 0x50ed0ad5 
      34   EnumFontFamiliesExW                  GDI32                         0x743afd4e 
      35   EnumFontFamiliesExW                  GDI32                         0x743afc4e 
      36   QWindowsFontDatabase::populateFamily qwindowsfontdatabase.cpp 1160 0x50ecb20f 
      ...  <More>                                                                        
      

       

      Each addFontToDatabase() has same locals: 

      		antialias	false	bool
      		charSet	'Ì' 	204	0xcc	unsigned char
      		db	@0xb8e658	QWindowsFontDatabase
      		englishName	""	QString
      		faceName	"Yu Gothic"	QString
      		familyName	"游ゴシック"	QString
      		fixed	false	bool
      		foundryName	""	QString
      		logFont	@0x592192c	tagLOGFONTW
      		scalable	true	bool
      		signature	@0x5921ae4	tagFONTSIGNATURE
      		size	65535	int
      		stretch	Unstretched (100)	QFont::Stretch
      		style	StyleNormal (0)	QFont::Style
      		styleName	"Regular"	QString
      		subFamilyName	"Yu Gothic"	QString
      		subFamilyStyle	"Regular"	QString
      		textmetric	@0x5921a98	tagTEXTMETRICW
      		ttf	true	bool
      		type	4	int
      		weight	Normal (50)	QFont::Weight
      		writingSystems	@0xb1d78	QSupportedWritingSystems
      

       

      It doesn't crash after removing changes in the following files:

      qtbase\src\platformsupport\fontdatabases\windows\qwindowsfontdatabase.cpp
      qtbase\src\platformsupport\fontdatabases\windows\qwindowsfontdatabase_p.h
      

       

       

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              nodir.temir Nodir Temirkhodjaev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes