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

uic crashes on Windows when outfile=stdout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.0.0 Beta 1
    • Fix Version/s: 5.0.0 Beta 1
    • Labels:
      None
    • Environment:
      Windows 8 beta, Windows 7, MSVC2010, MSVC2012 beta
    • Commits:
      57265a20cba2a1d5990dffb857c9e68e58644e28

      Description

      QTextCode::codecForLocale() returns 0 when compiled in bootstrap library , thus it crashes in QTextStream::flush().

      Note: qmake generates (uic -o <file> uifile and thus does not crash).

      To reproduce:

      uic src\widgets\dialogs\qfiledialog.ui

      Program received signal SIGSEGV, Segmentation fault.
      0x004e750d in QTextCodec::fromUnicode (this=0x0, in=0x15c8738, length=144
      state=0x1562ee4)
      at ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:115
      115

      { return convertFromUnicode(in, length, state); }

      (gdb) where
      #0 0x004e750d in QTextCodec::fromUnicode (this=0x0, in=0x15c8738,
      length=14451, state=0x1562ee4)
      at ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:115
      #1 0x0045c49b in QTextStreamPrivate::flushWriteBuffer (this=0x1562eb0)
      at ..\..\corelib\io\qtextstream.cpp:674
      #2 0x0045ce2d in QTextStream::~QTextStream (this=0x1562aa8,
      __in_chrg=<optimized out>) at ..\..\corelib\io\qtextstream.cpp:1149
      #3 0x0045ce65 in QTextStream::~QTextStream (this=0x1562aa8,
      __in_chrg=<optimized out>) at ..\..\corelib\io\qtextstream.cpp:1150
      #4 0x00403265 in Driver::uic (this=0x28fdb4, fileName=..., out=0x0)
      at driver.cpp:323
      #5 0x0044445a in runUic (argc=2, argv=0x1562338) at main.cpp:163
      #6 0x00444588 in main (argc=2, argv=0x1562338) at main.cpp:181
      (gdb)
      #0 0x004e750d in QTextCodec::fromUnicode (this=0x0, in=0x15c8738,
      length=14451, state=0x1562ee4)
      at ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:115
      #1 0x0045c49b in QTextStreamPrivate::flushWriteBuffer (this=0x1562eb0)
      at ..\..\corelib\io\qtextstream.cpp:674
      #2 0x0045ce2d in QTextStream::~QTextStream (this=0x1562aa8,
      __in_chrg=<optimized out>) at ..\..\corelib\io\qtextstream.cpp:1149
      #3 0x0045ce65 in QTextStream::~QTextStream (this=0x1562aa8,
      __in_chrg=<optimized out>) at ..\..\corelib\io\qtextstream.cpp:1150
      #4 0x00403265 in Driver::uic (this=0x28fdb4, fileName=..., out=0x0)
      at driver.cpp:323
      #5 0x0044445a in runUic (argc=2, argv=0x1562338) at main.cpp:163
      #6 0x00444588 in main (argc=2, argv=0x1562338) at main.cpp:181
      (gdb)
      #0 0x004e750d in QTextCodec::fromUnicode (this=0x0, in=0x15c8738,
      length=14451, state=0x1562ee4)
      at ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:115
      #1 0x0045c49b in QTextStreamPrivate::flushWriteBuffer (this=0x1562eb0)
      at ..\..\corelib\io\qtextstream.cpp:674
      #2 0x0045ce2d in QTextStream::~QTextStream (this=0x1562aa8,
      __in_chrg=<optimized out>) at ..\..\corelib\io\qtextstream.cpp:1149
      #3 0x0045ce65 in QTextStream::~QTextStream (this=0x1562aa8,
      __in_chrg=<optimized out>) at ..\..\corelib\io\qtextstream.cpp:1150
      #4 0x00403265 in Driver::uic (this=0x28fdb4, fileName=..., out=0x0)
      at driver.cpp:323
      #5 0x0044445a in runUic (argc=2, argv=0x1562338) at main.cpp:163
      #6 0x00444588 in main (argc=2, argv=0x1562338) at main.cpp:181

        Attachments

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

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes