|
From: <ti...@ne...> - 2005-08-30 08:06:50
|
Hi, i have a problem while debugging with valgrind (memcheck). I used valgrind several times, and it makes a very good job. I am developing under linux with use of QT and Coin3d. But i don´t know if this is importand. At my code, i declare an integer member-variable at the header-file: int m_numHandleList; and at the point where i do something like this at the constructor: m_numHandleList=0; i get this message from valgrind: <<<<<<<<<<<<<<<<<<<<<<<<snip<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ==7162== Invalid write of size 4 ==7162== at 0x8073164: TetraRenderer::TetraRenderer(SLFFEAProblemDataTetra*) (TetraRenderer.cpp:30) ==7162== by 0x80715C1: OfflineDeformDataAdvisorSLFFEA::genData(QString) (OfflineDeformDataAdvisorSLFFEA.cpp:49) ==7162== by 0x80604AE: FlexGUI::pushButtonLoad_released() (FlexGUI.qt.cpp:63) ==7162== by 0x805F9F7: FlexGUI::qt_invoke(int, QUObject*) (moc_FlexGUI.qt.cpp:88) ==7162== by 0x1C06D0ED: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C06D895: QObject::activate_signal(int) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C3DF9D8: QAction::activated() (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C3DFA3B: QAction::qt_emit(int, QUObject*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C06D120: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C06D895: QObject::activate_signal(int) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C3C502B: QButton::clicked() (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C1054C8: QButton::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== Address 0x1E4488B8 is 4 bytes after a block of size 12 alloc'd ==7162== at 0x1B903458: operator new(unsigned) (in /usr/lib/valgrind/vgpreload_memcheck.so) ==7162== by 0x80715A9: OfflineDeformDataAdvisorSLFFEA::genData(QString) (OfflineDeformDataAdvisorSLFFEA.cpp:49) ==7162== by 0x80604AE: FlexGUI::pushButtonLoad_released() (FlexGUI.qt.cpp:63) ==7162== by 0x805F9F7: FlexGUI::qt_invoke(int, QUObject*) (moc_FlexGUI.qt.cpp:88) ==7162== by 0x1C06D0ED: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C06D895: QObject::activate_signal(int) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C3DF9D8: QAction::activated() (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C3DFA3B: QAction::qt_emit(int, QUObject*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C06D120: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C06D895: QObject::activate_signal(int) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C3C502B: QButton::clicked() (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) ==7162== by 0x1C1054C8: QButton::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/qt3/lib/libqt-mt.so.3.3.3) <<<<<<<<<<<<<<<<<<<<<<<<snip<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Can someone explain this to me? I have also another question, i do not understand some outputs i get every time, even if the program runs without any error. For example i get outputs like these, hundrets of them: <<<<<<<<<<<<<<<<<<<<<<<<snip<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ==7162== Conditional jump or move depends on uninitialised value(s) ==7162== at 0x1CE9CC74: (within /usr/lib/libGLcore.so.1.0.7174) ==7162== Conditional jump or move depends on uninitialised value(s) ==7162== at 0x1B90418C: strcat (in /usr/lib/valgrind/vgpreload_memcheck.so) ==7162== by 0x1CD51576: (within /usr/lib/libGLcore.so.1.0.7174) ==7162== Conditional jump or move depends on uninitialised value(s) ==7162== at 0x1CD8A8D4: (within /usr/lib/libGLcore.so.1.0.7174) ==7162== by 0x7A: ??? <<<<<<<<<<<<<<<<<<<<<<<<snip<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Can someone help me? The first problem is more importand to me. Thank you for reading. :) Best regards from germany, Timo Hambürger |