Hi,

Sorry I should correct me, the error mentioned by Lorenzo appears just in
the case when demoxbp is linked statically, the dynamic version works.

...
==20686== Memcheck, a memory error detector.
==20686== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==20686== Using LibVEX rev 1884, a library for dynamic binary translation.
==20686== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==20686== Using valgrind-3.4.1, a dynamic binary instrumentation framework.
==20686== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==20686== For more details, rerun with: -v
==20686== 
==20686== Invalid read of size 1
==20686==    at 0x4007668: strlen (mc_replace_strmem.c:242)
==20686==    by 0xAF604E: XSetCommand (in /usr/lib/libX11.so.6.2.0)
==20686==    by 0xAFAAA0: XSetWMProperties (in /usr/lib/libX11.so.6.2.0)
==20686==    by 0x30B9127: QWidgetPrivate::create_sys(unsigned long, bool,
bool) (in /usr/lib/libQtGui.so.4.5.2)
==20686==    by 0x307C6AF: QWidget::create(unsigned long, bool, bool) (in
/usr/lib/libQtGui.so.4.5.2)
==20686==    by 0x30787E5: QWidgetPrivate::createWinId(unsigned long) (in
/usr/lib/libQtGui.so.4.5.2)
==20686==    by 0x307C0A7: QWidgetPrivate::setWindowTitle_helper(QString
const&) (in /usr/lib/libQtGui.so.4.5.2)
==20686==    by 0x307C4E1: QWidget::setWindowTitle(QString const&) (in
/usr/lib/libQtGui.so.4.5.2)
==20686==    by 0x80C55D0: HB_FUN_QT_QWIDGET_SETWINDOWTITLE (in
/home/Istvan/Download/harbour/contrib/hbxbp/tests/demoxbp)
==20686==    by 0x811247E: hb_vmProc (in
/home/Istvan/Download/harbour/contrib/hbxbp/tests/demoxbp)
==20686==    by 0x80E11B4: hb_vmExecute (in
/home/Istvan/Download/harbour/contrib/hbxbp/tests/demoxbp)
==20686==    by 0x811547E: hb_vmDoBlock (in
/home/Istvan/Download/harbour/contrib/hbxbp/tests/demoxbp)
==20686==  Address 0x1 is not stack'd, malloc'd or (recently) free'd
==20686==
...
Unrecoverable error 6005:
...
Exception SIGSEGV at address 0x1
...
Called from QT_QWIDGET_SETWINDOWTITLE(0)
...
Called from (b)QWIDGET(0) in ../../../TQWidget.prg
...
Called from QMAINWINDOW:SETWINDOWTITLE(0) in ../../../TQWidget.prg
Called from XBPDIALOG:CREATE(0) in ../../../xbpdialog.prg
Called from GUISTDDIALOG(312) in demoxbp.prg
Called from BUILDADIALOG(117) in demoxbp.prg
Called from _BUILDADIALOG(104) in demoxbp.prg
Called from MAIN(95) in demoxbp.prg
...

Best regards,
István Bisz 

-----Original Message-----
From: Bisz István [mailto:istvan.b...@t-online.hu] 
Sent: 2009. szeptember 4. 19:01
To: 'Harbour Project Main Developer List.'
Subject: RE: [Harbour] demoxbp segfault in Fedora 11

Hi,

I just finished the demoxbp testing. It works without the mentioned error
with the latest commits and KDE qt-devel installed, but without QT SDK from
Trolltech site.

Best regards,
István 

-----Original Message-----
From: Lorenzo Fiorini [mailto:lorenzo.fior...@gmail.com] 
Sent: 2009. szeptember 4. 8:16
To: Harbour Project Main Developer List.
Subject: [Harbour] demoxbp segfault in Fedora 11

Using QT SDK from trolltech site ./demoxbp worked as expected.
Then I've installed distro's KDE and qt-dev and I always get at start:

Program received signal SIGSEGV, Segmentation fault.
0x006a9163 in strlen () from /lib/libc.so.6
...
(gdb) bt
#0  0x006a9163 in strlen () from /lib/libc.so.6
#1  0x00e2d04f in XSetCommand () from /usr/lib/libX11.so.6
#2  0x00e31aa1 in XSetWMProperties () from /usr/lib/libX11.so.6
#3  0x05a88128 in QWidgetPrivate::create_sys(unsigned long, bool, bool) ()
   from /usr/lib/libQtGui.so.4
#4  0x05a4b6b0 in QWidget::create(unsigned long, bool, bool) ()
   from /usr/lib/libQtGui.so.4
#5  0x05a477e6 in QWidgetPrivate::createWinId(unsigned long) ()
   from /usr/lib/libQtGui.so.4
#6  0x05a4b0a8 in QWidgetPrivate::setWindowTitle_helper(QString const&) ()
   from /usr/lib/libQtGui.so.4
#7  0x05a4b4e2 in QWidget::setWindowTitle(QString const&) ()
   from /usr/lib/libQtGui.so.4
#8  0x080c3fd1 in HB_FUN_ERRORNEW ()
#9  0x00d450ff in hb_vmProc () from /opt/harbour/lib/libharbour.so
#10 0x00d13e35 in hb_vmExecute () from /opt/harbour/lib/libharbour.so
#11 0x00d480ff in hb_vmDoBlock () from /opt/harbour/lib/libharbour.so
#12 0x00d17912 in hb_vmSend () from /opt/harbour/lib/libharbour.so
#13 0x00d429ce in hb___msgEvalInline () from /opt/harbour/lib/libharbour.so
#14 0x00d17912 in hb_vmSend () from /opt/harbour/lib/libharbour.so
#15 0x00d150ef in hb_vmExecute () from /opt/harbour/lib/libharbour.so
#16 0x080770bb in HB_FUN_ERRORNEW ()
#17 0x080d45a0 in ?? ()
#18 0x0815ace0 in HB_FUN_ERRORNEW ()
#19 0x00000008 in ?? ()
#20 0xbfffea5c in ?? ()
#21 0x08159c90 in HB_FUN_ERRORNEW ()
#22 0x081afae8 in ?? ()
#23 0xbfffea88 in ?? ()
#24 0x00d17912 in hb_vmSend () from /opt/harbour/lib/libharbour.so
Backtrace stopped: frame did not save the PC
(gdb)

using valgrind --tool=memcheck --leak-check=yes -v ./demoxbp &>
demoxbp.log I see:
...
==11511== Invalid read of size 1
==11511==    at 0x4007668: strlen (mc_replace_strmem.c:242)
==11511==    by 0x9AB04E: XSetCommand (in /usr/lib/libX11.so.6.2.0)
==11511==    by 0x9AFAA0: XSetWMProperties (in /usr/lib/libX11.so.6.2.0)
==11511==    by 0x5A88127: QWidgetPrivate::create_sys(unsigned long,
bool, bool) (in /usr/lib/libQtGui.so.4.5.2)
==11511==    by 0x5A4B6AF: QWidget::create(unsigned long, bool, bool)
(in /usr/lib/libQtGui.so.4.5.2)
==11511==    by 0x5A477E5: QWidgetPrivate::createWinId(unsigned long)
(in /usr/lib/libQtGui.so.4.5.2)
==11511==    by 0x5A4B0A7:
QWidgetPrivate::setWindowTitle_helper(QString const&) (in
/usr/lib/libQtGui.so.4.5.2)
==11511==    by 0x5A4B4E1: QWidget::setWindowTitle(QString const&) (in
/usr/lib/libQtGui.so.4.5.2)
==11511==    by 0x80C3FD0: (within
/home/twfiorlo/workspace/harbour/contrib/hbxbp/tests/demoxbp)
==11511==    by 0x43AE0FE: hb_vmProc (in
/opt/harbour/lib/libharbour-2.0.0.so)
==11511==    by 0x437CE34: hb_vmExecute (in
/opt/harbour/lib/libharbour-2.0.0.so)
...

Is there anything we can do at hbqt side?

best regards,
Lorenzo




_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to