D-Bus daemon big and little endian issue
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Jun 9 10:53:56 PDT 2011
On Mon, 30 May 2011 at 14:45:38 +0200, Bart Vanherck wrote:
> As you can see this is big endian
>
> The dbus-daemon sends the same message to the monitor (who is in little
> endian format)
[...]
> This happens only with some method calls, for example the Hello call does
> not have the problem. We can reproduce this 100%.
Thank you for reminding the list: as you pointed out, this was reported back
in 2007, but nobody opened a bug, and the bug report to the mailing list
was lost. This is why we have a bug tracker :-)
I've opened <https://bugs.freedesktop.org/show_bug.cgi?id=38120> and proposed
some fixes.
The Hello call presumably either never reaches dbus-monitor, or happens to
be small enough to decode to something "valid" (albeit huge) in either
endianness.
Could you try rebuilding dbus with the patch "_dbus_header_byteswap: change
the first byte of the message, not just the struct member", from that bug
report, applied, and restarting? That should fix the endianness handling.
Thanks,
S
More information about the dbus
mailing list