Simple service crash

Vitaly V. Ch vitaly.v.ch at gmail.com
Mon Nov 5 08:09:40 PST 2007


attachment from previous letter

On 11/5/07, Thiago Macieira <thiago at kde.org> wrote:
>
> 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
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20071105/fd0cd10b/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sim300.dbus.tgz
Type: application/x-gzip
Size: 13759 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071105/fd0cd10b/attachment.bin 


More information about the dbus mailing list