Dbus doesn't answer on Hello, manual connection

Kristoffer Lundén kristoffer.lunden at gmail.com
Sun Mar 4 09:04:11 PST 2007


Hello, thanks for the reply

On 3/4/07, Havoc Pennington <hp at redhat.com> wrote:
> Yes, you should get an answer or disconnected, unless you set the
> NO_REPLY_EXPECTED flag or you have not yet sent the full message.
>
> I can't tell you what's wrong just from looking at the binary protocol
> dump, unfortunately ;-)
>

That's what I thought, and that was also the reason for includig the
dump of what I'm sending - the most obvious guess would be that the
message is either incomplete or malformed in some other way, so that
Dbus is still waiting for something. I thought that maybe someone
could spot something like that in the message. :)

Does anybody perhaps have a dump of a succesful Hello message, I could
look at that and compare myself?

> I would suggest building dbus from source, which will give you a lot of
> tools to debug this. You'll be able to run the daemon with verbose
> output (I added instructions for this to the dbus-daemon man page iirc,
> though it's not on the web site version of the man page yet, it's in
> CVS). You'll also be able to print out the socket traffic and see what
> libdbus does, for ease of copying it, or insert additional debug
> statements of whatever kind. And you'll be able to look through the
> source and understand what libdbus is generating that way.

Yes, i will try that next, I think. Can you give me any more pointers
as to where to start, any specific places in the code? I'm somewhat
litterate in C, but not very good at it, so I'd be grateful for some
help finding the right places. :) It seems like compiling with
--enable-verbose-mode and setting environment will give me the verbose
output, guess I'll start there first.

> Another idea is to turn on the tcp listen address in your test daemon's
> .conf file, then use a tool to dump the tcp traffic in order to see what
> e.g. dbus-monitor sends when it connects to the bus.

Ah, that also seems like a good idea, could probably use ethereal or
something like that for this...

Many thanks for your answers, let's see what we can find out... :)

-- Kristoffer


>
> Havoc
>
>


-- 
Kristoffer Lundén
✉ kristoffer.lunden at gmail.comkristoffer.lunden at gamemaker.nu
http://www.gamemaker.nu/
☎ 0704 48 98 77


More information about the dbus mailing list