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

MSVC 2017: free/realloc on non heap address when Qt is built statically

    XMLWordPrintable

    Details

      Description

      1) memory free on non heap address (d->sharedNull())
      QVector::append()
      qt\5.8.0\src\qtbase\src\corelib\tools\qvector.h
      2) memory realloc on non heap address (QListData::shared_null)
      QListData::realloc_grow(int growth)
      qt\5.8.0\src\qtbase\src\corelib\tools\qlist.cpp

      Attachment: qvector.h + qlist.cpp
      Hot Fix marked with // Hans

      Here addionally Snipping Tool Images, from my Debugging Session witch the Callstack with the static Instance initialization.

        Attachments

        1. qlist.cpp
          61 kB
        2. QListData_realloc_grow_CallStack.PNG
          QListData_realloc_grow_CallStack.PNG
          58 kB
        3. qtbug59570_stack.txt
          4 kB
        4. qtbug59570.zip
          1 kB
        5. qvector.h
          33 kB
        6. Vector_append_Callstack.PNG
          Vector_append_Callstack.PNG
          66 kB

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hans_qt_bugreport Johann Brantsch
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes