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

[autotest] tst_QVarLengthArray::outOfMemory is crashing the machine on Ubuntu 11.10

    XMLWordPrintable

Details

    • 9d0afa2ab02ddd86818e83d514e03f6dfb5a1fef

    Description

      With sha1 4920090da0fc937d171065694d5274221d2747c9

      QVarLengthArray<Foo> a;
      const int N = 0x7fffffff / sizeof(Foo);
      a.resize(N);
      

      On Ubuntu 11.10, the test causes the machine to crash.

      The test itself is crashing on other platforms:

      on Mac 10.6 see attached trace.

      On windows 7 with error:

      ********* Start testing of tst_QVarLengthArray *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QVarLengthArray::initTestCase()
      
      Exception at 0x756db9bc, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) at c:\users\cchao\git\qtbase\src\corelib\global\qglobal.cpp:1921
      FAIL!  : tst_QVarLengthArray::outOfMemory() Caught unhandled exception
      .\qtestcase.cpp(2143) : failure location
      Totals: 1 passed, 1 failed, 0 skipped
      ********* Finished testing of tst_QVarLengthArray *********
      
      Exception at 0x756db9bc, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) at c:\users\cchao\git\qtbase\src\testlib\qtestcase.cpp:2159
      
      Exception at 0x756db9bc, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) at c:\users\cchao\git\qtbase\src\corelib\global\qglobal.cpp:1921
      

      Attachments

        Issue Links

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

          Activity

            People

              stromme Christian
              carochao Caroline Chao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes