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

"Error: Allocator returned a misaligned block: heap may be corrupted" in QApplication construction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.1
    • GUI: Window management
    • None
    • Ubuntu 12.04 (64 bit), gcc 4.6.3

    Description

      Executing the "Hello notepad" example of the "Getting started programming with Qt" (http://qt-project.org/doc/qt-4.8/gettingstartedqt.html, see attachment for the .cpp) in the debugger software TotalView 8.10 leads to the following error: "Allocator returned a misaligned block: heap may be corrupted". QApplication seems to be the culprit here.

      Context: my application crashes on Ubuntu (segmentation fault) on exit. But not on windows. I've been trying to find the reason and I used TotalView to debug my application. It quickly lead me to believe that the problem was caused by a memory corruption. When I run a memory analysis in TotalView, it fails at the creation of the QApplication with the error reported above. If I remove the QApplication, the segmentation fault on exit disappears... The "Hello nodepad" example, much simpler than my application, seems to exibit the same issue.

      Attachments

        1. Misaligned_allocation.cpp
          0.2 kB
        2. HelloNotepad.mdbg
          4.72 MB
        3. TotalView.png
          TotalView.png
          50 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            morph208 Olivier Comas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes