Message validation fails

Julian Stecklina der_julian at web.de
Sun Oct 26 19:58:08 PDT 2008


Hello,

I have begun hacking on a dbus implementation in Common Lisp and am
currently stuck with the following issue. After successfully
authenticating to the daemon, my client tries to send a Hello message
which is rejected by the daemon.

Debug output from dbus-daemon is:

14201:  128 unused bytes sent to message loader
14201: have 128 bytes, need body 0 + header 128 = 128
14201: validating body from pos 0 len 128 sig 'yyyyuua(yv)'
14201: Failed to load header for new message code 40
14201:    0	0xb80ac1f0:  'l' 0x01 0x00 0x01 BE: 1812004865 LE: 16777580
14201:    4	0xb80ac1f4: 0x00 0x00 0x00 0x00 BE: 0 LE: 0 u64: 0x100016c dbl: 8.28923e-317
14201:    8	0xb80ac1f8: 0x01 0x00 0x00 0x00 BE: 16777216 LE: 1
14201:   12	0xb80ac1fc:  'l' 0x00 0x00 0x00 BE: 1811939328 LE: 108 u64: 0x6c00000001 dbl: 2.29176e-312
14201:   16	0xb80ac200: 0x01 0x01  'o' 0x00 BE: 16871168 LE: 7274753
14201:   20	0xb80ac204: 0x15 0x00 0x00 0x00 BE: 352321536 LE: 21 u64: 0x15006f0101 dbl: 4.45655e-313
14201:   24	0xb80ac208:  '/'  'o'  'r'  'g' BE: 795832935 LE: 1735552815
14201:   28	0xb80ac20c:  '/'  'f'  'r'  'e' BE: 795243109 LE: 1701996079 u64: 0x6572662f67726f2f dbl: 4.77173e+180
14201:   32	0xb80ac210:  'e'  'd'  'e'  's' BE: 1701078387 LE: 1936024677
14201:   36	0xb80ac214:  'k'  't'  'o'  'p' BE: 1802792816 LE: 1886352491 u64: 0x706f746b73656465 dbl: 3.90673e+233
14201:   40	0xb80ac218:  '/'  'D'  'B'  'u' BE: 793002613 LE: 1967277103
14201:   44	0xb80ac21c:  's' 0x00 0x00 0x00 BE: 1929379840 LE: 115 u64: 0x737542442f dbl: 2.45001e-312
14201:   48	0xb80ac220: 0x03 0x01  's' 0x00 BE: 50426624 LE: 7536899
14201:   52	0xb80ac224: 0x05 0x00 0x00 0x00 BE: 83886080 LE: 5 u64: 0x500730103 dbl: 1.06137e-313
14201:   56	0xb80ac228:  'H'  'e'  'l'  'l' BE: 1214606444 LE: 1819043144
14201:   60	0xb80ac22c:  'o' 0x00 0x00 0x00 BE: 1862270976 LE: 111 u64: 0x6f6c6c6548 dbl: 2.3644e-312
14201:   64	0xb80ac230: 0x02 0x01  's' 0x00 BE: 33649408 LE: 7536898
14201:   68	0xb80ac234: 0x14 0x00 0x00 0x00 BE: 335544320 LE: 20 u64: 0x1400730102 dbl: 4.24436e-313
14201:   72	0xb80ac238:  'o'  'r'  'g'  '.' BE: 1869768494 LE: 778531439
14201:   76	0xb80ac23c:  'f'  'r'  'e'  'e' BE: 1718773093 LE: 1701147238 u64: 0x656572662e67726f dbl: 2.78107e+180
14201:   80	0xb80ac240:  'd'  'e'  's'  'k' BE: 1684370283 LE: 1802724708
14201:   84	0xb80ac244:  't'  'o'  'p'  '.' BE: 1953460270 LE: 779120500 u64: 0x2e706f746b736564 dbl: 5.28763e-85
14201:   88	0xb80ac248:  'D'  'B'  'u'  's' BE: 1145206131 LE: 1937064516
14201:   92	0xb80ac24c: 0x00 0x00 0x00 0x00 BE: 0 LE: 0 u64: 0x73754244 dbl: 9.57037e-315
14201:   96	0xb80ac250: 0x06 0x01  's' 0x00 BE: 100758272 LE: 7536902
14201:  100	0xb80ac254: 0x14 0x00 0x00 0x00 BE: 335544320 LE: 20 u64: 0x1400730106 dbl: 4.24436e-313
14201:  104	0xb80ac258:  'o'  'r'  'g'  '.' BE: 1869768494 LE: 778531439
14201:  108	0xb80ac25c:  'f'  'r'  'e'  'e' BE: 1718773093 LE: 1701147238 u64: 0x656572662e67726f dbl: 2.78107e+180
14201:  112	0xb80ac260:  'd'  'e'  's'  'k' BE: 1684370283 LE: 1802724708
14201:  116	0xb80ac264:  't'  'o'  'p'  '.' BE: 1953460270 LE: 779120500 u64: 0x2e706f746b736564 dbl: 5.28763e-85
14201:  120	0xb80ac268:  'D'  'B'  'u'  's' BE: 1145206131 LE: 1937064516
14201:  124	0xb80ac26c: 0x00 0x00 0x00 0x00 BE: 0 LE: 0 u64: 0x73754244 dbl: 9.57037e-315
14201: 
14201: Corrupted message stream, disconnecting

Can anyone spot what I might have done wrong?

Regards,
-- 
Julian Stecklina

Well, take it from an old hand: the only reason it would be easier to
program in C is that you can't easily express complex problems in C,
so you don't. - Erik Naggum (in comp.lang.lisp)


More information about the dbus mailing list