DBus on "other" platforms

René J.V. Bertin rjvbertin at gmail.com
Mon May 16 17:18:34 UTC 2016


On Monday May 16 2016 12:23:23 Simon McVittie wrote:

> That's not what I asked you to do. Please run it with the --tap option

My bad, I missed that somehow.


> not the one you just compiled; similarly, it'll use your normal
> (installed) session.conf, not a local one that hopefully only has
> EXTERNAL enabled. If you are testing a special local compile of dbus you

Yes, I wondered about that!
So test/data/valid-config-files/session.conf should by definition be configured correctly, with EXTERNAL enabled?
>From the looks of it that's not the case, and there are also include directives that fetch things from /opt/local/etc/dbus-1 (i.e. the "normal" install location). That global session.conf appears to be empty, though; there's nothing in session.d .

> 
>     DBUS_TEST_DAEMON=$(pwd)/bus/dbus-daemon \
>     DBUS_TEST_DATA=$(pwd)/test/data \
>     test/test-dbus-daemon --tap

That results in

# random seed: R02Sb0a7bf037780925e97e26c652b3a9dc7
1..8
# UnixUserID of this process is 505
ok 1 /creds
**
ERROR:dbus-daemon.c:548:test_processid: assertion failed (error.name == DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN): ("org.freedesktop.DBus.Error.InvalidArgs" == "org.freedesktop.DBus.Error.UnixProcessIdUnknown")
# ERROR:dbus-daemon.c:548:test_processid: assertion failed (error.name == DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN): ("org.freedesktop.DBus.Error.InvalidArgs" == "org.freedesktop.DBus.Error.UnixProcessIdUnknown")
Abort
Exit 134

> or perhaps more simply
> 
>     make -C test check-TESTS TESTS=test-dbus-daemon VERBOSE=1

And this in

PASS: test-dbus-daemon 1 /creds
ERROR: test-dbus-daemon - too few tests run (expected 8, got 1)
ERROR: test-dbus-daemon - exited with status 134 (terminated by signal 6?)
======================================
   dbus 1.10.8: test/test-suite.log
======================================

# TOTAL: 3
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 2

.. contents:: :depth: 2

ERROR: test-dbus-daemon
=======================

# random seed: R02Sf06c05621c301026bce0b14eaee134fa
1..8
# UnixUserID of this process is 505
**
ERROR:dbus-daemon.c:548:test_processid: assertion failed (error.name == DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN): ("org.freedesktop.DBus.Error.InvalidArgs" == "org.freedesktop.DBus.Error.UnixProcessIdUnknown")
ok 1 /creds
PASS: test-dbus-daemon 1 /creds
../build-aux/tap-driver.sh: line 639: 30871 Abort trap: 6           "$@"
# ERROR:dbus-daemon.c:548:test_processid: assertion failed (error.name == DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN): ("org.freedesktop.DBus.Error.InvalidArgs" == "org.freedesktop.DBus.Error.UnixProcessIdUnknown")
ERROR: test-dbus-daemon - too few tests run (expected 8, got 1)
ERROR: test-dbus-daemon - exited with status 134 (terminated by signal 6?)

============================================================================
Testsuite summary for dbus 1.10.8
============================================================================
# TOTAL: 3
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 2
============================================================================
See test/test-suite.log
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=dbus
============================================================================
make[1]: *** [test-suite.log] Error 1
make: *** [check-TESTS] Error 2

> > /processid: **
> > ERROR:dbus-daemon.c:548:test_processid: assertion failed (error.name == DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN): ("org.freedesktop.DBus.Error.InvalidArgs" == "org.freedesktop.DBus.Error.UnixProcessIdUnknown")
> > Abort
> > Exit 134

OK.

> This is getting more in-depth. Could you open a bug report on
> <https://bugs.freedesktop.org/enter_bug.cgi?product=dbus&component=core>
> for this part, please?

OK. Later tonight or else tomorrow.

> 
> Editing test/dbus-daemon.c to include something like
> 
>     g_printerr ("%s: %s\n", error.name, error.message);

Prints

org.freedesktop.DBus.Error.InvalidArgs: Argument 0 is specified to be of type "uint32", but is actually of type "string"

maybe that already gives you an idea, together with that attached session.conf .

R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20160516/11d2db23/attachment.html>


More information about the dbus mailing list