Simple service crash
Thiago Macieira
thiago at kde.org
Mon Nov 5 07:53:26 PST 2007
Em Monday 05 November 2007 16:36:57 Vitaly V. Ch escreveu:
> I try to write simple dbus service according to example
> qt/examples/qdbus/remotecontrolledcar
>
> but service fail when client try to call get_csq with next backtrace:
>
> ==6856== Invalid read of size 2
> ==6856== at 0x417B0D1: QString::toUtf8() const (in /usr/lib/qt-4.2.2
> /lib/libQtCore.so.4.2.2)
> ==6856== by 0x406B62D: (within /usr/lib/qt-4.2.2/lib/libQtDBus.so.4.2.2)
> ==6856== by 0x404BEF1: (within /usr/lib/qt-4.2.2/lib/libQtDBus.so.4.2.2)
> ==6856== by 0x40404E0: (within /usr/lib/qt-4.2.2/lib/libQtDBus.so.4.2.2)
> ==6856== by 0x4046BFC: (within /usr/lib/qt-4.2.2/lib/libQtDBus.so.4.2.2)
> ==6856== by 0x4047162: (within /usr/lib/qt-4.2.2/lib/libQtDBus.so.4.2.2)
> ==6856== by 0x41FEA1C: QObject::event(QEvent*) (in /usr/lib/qt-4.2.2
> /lib/libQtCore.so.4.2.2)
> ==6856== by 0x41EE6AD: QCoreApplicationPrivate::notify_helper(QObject*,
> QEvent*) (in /usr/lib/qt-4.2.2/lib/libQtCore.so.4.2.2)
> ==6856== by 0x41EFF7B: QCoreApplication::notify(QObject*, QEvent*) (in
> /usr/lib/qt-4.2.2/lib/libQtCore.so.4.2.2)
> ==6856== by 0x41EF81F: QCoreApplication::sendPostedEvents(QObject*, int)
> (in /usr/lib/qt-4.2.2/lib/libQtCore.so.4.2.2)
> ==6856== by 0x42122BE: (within /usr/lib/qt-4.2.2/lib/libQtCore.so.4.2.2)
> ==6856== by 0x42D2B10: g_main_context_dispatch (in /usr/lib/libglib-
> 2.0.so.0.1200.12)
> ==6856== Address 0xBE89F000 is not stack'd, malloc'd or (recently) free'd
>
>
> source attached.
>
> any idea?
You have two .pro files in the same directory in your .zip file. And both
reference an unknown -lbj.
Can you provide us with a self-contained example that compiles?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071105/52cd7d75/attachment.pgp
More information about the dbus
mailing list