Hi,
Rebuild Harbour with
export HB_USER_CFLAGS=-g
or:
export HB_BUILD_DEBUG=yes
then create final binaries without striping debug information
hbmk2 -nostrip ... tst.prg
and run them using valgrind:
exec valgrind --tool=memcheck --leak-check=yes --num-callers=32 -v ./tst \
2> err.log
use you application and close it. Ten check in err.log for any errors
detected by valgrind.
Here the first error i found (log around 400kb) :
==5172== Use of uninitialised value of size 4
==5172== at 0x4262FDD: hb_gt_def_OutErr (hbgtcore.c:704)
==5172== by 0x42584DC: hb_gtOutErr (gtapi.c:999)
==5172== by 0x42501E8: hb_errInternalRaw (errintlo.c:108)
==5172== by 0x4250045: hb_errInternal (errint.c:61)
==5172== by 0x422F74F: hb_signalExceptionHandler (extrap.c:354)
==5172== by 0x613944F: (within /lib/i686/cmov/libc-2.9.so)
==5172== by 0x640B2F6: XSetCommand (in /usr/lib/libX11.so.6.2.0)
==5172== by 0x640FC7F: XSetWMProperties (in /usr/lib/libX11.so.6.2.0)
==5172== by 0x493B3B0: QWidgetPrivate::create_sys(unsigned long,
bool, bool) (qwidget_x11.cpp:756)
==5172== by 0x490068B: QWidget::create(unsigned long, bool, bool)
(qwidget.cpp:1252)
==5172== by 0x48FB942: QWidgetPrivate::createWinId(unsigned long)
(qwidget.cpp:2182)
==5172== by 0x490002A: QWidgetPrivate::setWindowTitle_helper(QString
const&) (qwidget.cpp:5343)
==5172== by 0x4900481: QWidget::setWindowTitle(QString const&)
(qwidget.cpp:5374)
==5172== by 0x80FCD11: HB_FUN_QT_QWIDGET_SETWINDOWTITLE
(hbqt_qwidget.cpp:1759)
==5172== by 0x4227694: hb_vmProc (hvm.c:5693)
==5172== by 0x41EF929: hb_vmExecute (hvm.c:1625)
==5172== by 0x4229AB6: hb_vmDoBlock (codebloc.c:286)
==5172== by 0x41F1E18: hb_vmSend (hvm.c:5837)
==5172== by 0x4224BA2: hb___msgEvalInline (classes.c:4367)
==5172== by 0x41F1E18: hb_vmSend (hvm.c:5837)
==5172== by 0x41EE487: hb_vmExecute (hvm.c:1644)
==5172== by 0x8090DEA: HB_FUN_MAIN (demoqt.c:543)
==5172== by 0x4227694: hb_vmProc (hvm.c:5693)
==5172== by 0x4233441: main (mainstd.c:88)
Unrecoverable error 6005: ==5172==
==5172== Use of uninitialised value of size 4
==5172== at 0x4262FE8: hb_gt_def_OutErr (hbgtcore.c:705)
==5172== by 0x42584DC: hb_gtOutErr (gtapi.c:999)
==5172== by 0x42501E8: hb_errInternalRaw (errintlo.c:108)
==5172== by 0x4250045: hb_errInternal (errint.c:61)
==5172== by 0x422F74F: hb_signalExceptionHandler (extrap.c:354)
==5172== by 0x613944F: (within /lib/i686/cmov/libc-2.9.so)
==5172== by 0x640B2F6: XSetCommand (in /usr/lib/libX11.so.6.2.0)
==5172== by 0x640FC7F: XSetWMProperties (in /usr/lib/libX11.so.6.2.0)
==5172== by 0x493B3B0: QWidgetPrivate::create_sys(unsigned long,
bool, bool) (qwidget_x11.cpp:756)
==5172== by 0x490068B: QWidget::create(unsigned long, bool, bool)
(qwidget.cpp:1252)
==5172== by 0x48FB942: QWidgetPrivate::createWinId(unsigned long)
(qwidget.cpp:2182)
==5172== by 0x490002A: QWidgetPrivate::setWindowTitle_helper(QString
const&) (qwidget.cpp:5343)
==5172== by 0x4900481: QWidget::setWindowTitle(QString const&)
(qwidget.cpp:5374)
==5172== by 0x80FCD11: HB_FUN_QT_QWIDGET_SETWINDOWTITLE
(hbqt_qwidget.cpp:1759)
==5172== by 0x4227694: hb_vmProc (hvm.c:5693)
==5172== by 0x41EF929: hb_vmExecute (hvm.c:1625)
==5172== by 0x4229AB6: hb_vmDoBlock (codebloc.c:286)
==5172== by 0x41F1E18: hb_vmSend (hvm.c:5837)
==5172== by 0x4224BA2: hb___msgEvalInline (classes.c:4367)
==5172== by 0x41F1E18: hb_vmSend (hvm.c:5837)
==5172== by 0x41EE487: hb_vmExecute (hvm.c:1644)
==5172== by 0x8090DEA: HB_FUN_MAIN (demoqt.c:543)
==5172== by 0x4227694: hb_vmProc (hvm.c:5693)
==5172== by 0x4233441: main (mainstd.c:88)
Guy
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour