Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.8.1
-
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.