Bug 16696 - bus-test failed to complete tests.
Summary: bus-test failed to complete tests.
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: 1.2.x
Hardware: x86 (IA32) Mac OS X (All)
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard: committed, awaiting testing
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2008-07-13 15:56 UTC by Andrew SG Rojek
Modified: 2012-01-23 03:03 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Andrew SG Rojek 2008-07-13 15:56:17 UTC
SUMMARY
--------
Whilst running the tests for dbus [v1.2.1], the bus-test application 'quits unexpectedly'.


OVERVIEW
--------
Configuration and make executed without reporting any errors. 


STEPS TO REPRODUCE.
------------------
configure
make
make check

As this seems to be testing the libexpat library, I tried to build it with libxml instead of expat with the --with-xml option.
Output from tests is below. The tests terminate before any crash logs are generated.


ACTUAL RESULTS.
--------------

Output from 'make check'
--------------------
...
Unknown group "root" on element <deny>
  0   bus-test                            0x00079048 _dbus_print_backtrace + 40
  1   bus-test                            0x00074192 _dbus_abort + 18
  2   bus-test                            0x00060dc6 _dbus_warn + 102
  3   bus-test                            0x00008f58 bus_config_parser_check_doctype + 5720
  4   bus-test                            0x0000945b bus_config_parser_start_element + 971
  5   bus-test                            0x000242c6 bus_connection_dispatch_all_messages + 598
  6   libexpat.1.dylib                    0x000e311a XML_SetEncoding + 6324
  7   libexpat.1.dylib                    0x000e39ba XML_SetEncoding + 8532
  8   libexpat.1.dylib                    0x000e4221 XML_SetEncoding + 10683
  9   libexpat.1.dylib                    0x000e56ac XML_SetEncoding + 15942
  10  libexpat.1.dylib                    0x000de5ff XML_ParseBuffer + 139
  11  bus-test                            0x000247ac bus_config_load + 908
  12  bus-test                            0x0000b8a5 bus_config_parser_steal_service_context_table + 725
  13  bus-test                            0x0000c26f bus_config_parser_test + 1615
  14  bus-test                            0x00024aca main + 154
  15  bus-test                            0x00001cd6 start + 54
  Process 81858 sleeping for gdb attach
/bin/sh: line 1: 81858 Abort trap              DBUS_TEST_DATA=../test/data DBUS_TEST_HOMEDIR=../dbus DBUS_FATAL_WARNINGS=1 DBUS_BLOCK_ON_ABORT=1 ${dir}$tst
FAIL: bus-test
...


Output from OSX Reporting Application.
-------------------------------
Thread 0 Crashed:
0   libSystem.B.dylib             	0x9241db9e __kill + 10
1   libSystem.B.dylib             	0x92494ec2 raise + 26
2   libSystem.B.dylib             	0x924a447f abort + 73
3   bus-test                      	0x000741e4 _dbus_abort + 100
4   bus-test                      	0x00060dc6 _dbus_warn + 102
5   bus-test                      	0x00008f58 append_rule_from_element + 4552 (config-parser.c:1495)
6   bus-test                      	0x0000945b bus_config_parser_start_element + 971 (config-parser.c:1598)
7   bus-test                      	0x000242c6 expat_StartElementHandler + 406 (config-loader-expat.c:111)
8   libexpat.1.dylib              	0x000e311a XML_SetEncoding + 6324
9   libexpat.1.dylib              	0x000e39ba XML_SetEncoding + 8532
10  libexpat.1.dylib              	0x000e4221 XML_SetEncoding + 10683
11  libexpat.1.dylib              	0x000e56ac XML_SetEncoding + 15942
12  libexpat.1.dylib              	0x000de5ff XML_ParseBuffer + 139
13  bus-test                      	0x000247ac bus_config_load + 908 (config-loader-expat.c:245)
14  bus-test                      	0x0000b8a5 process_test_valid_subdir + 629 (config-parser.c:2626)
15  bus-test                      	0x0000c26f bus_config_parser_test + 1615 (config-parser.c:3393)
16  bus-test                      	0x00024aca main + 154 (test-main.c:107)
17  bus-test                      	0x00001cd6 start + 54

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x924a443f  ecx: 0xbfffde3c  edx: 0x9241db9e
  edi: 0x00000000  esi: 0xa0222578  ebp: 0xbfffde58  esp: 0xbfffde3c
   ss: 0x0000001f  efl: 0x00000282  eip: 0x9241db9e   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x2ee77000

Binary Images:
    0x1000 -    0x9dfeb +bus-test ??? (???) <aeab617962e29aedf5a76777de0c7957> /Volumes/src/src_gnm_base/dbus-1.2.1/bus/bus-test
   0xdd000 -    0xfbfe3  libexpat.1.dylib ??? (???) <eff8a63a23a7d07af62b36fdb329e393> /usr/lib/libexpat.1.dylib
0x8fe00000 - 0x8fe2da53  dyld 96.2 (???) <06900973e83f70548b7a2a5fa6435865> /usr/lib/dyld
0x923ae000 - 0x9250eff3  libSystem.B.dylib ??? (???) <a12f397abf2285077b89bd726bff5b18> /usr/lib/libSystem.B.dylib
0x96112000 - 0x96116fff  libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
0x96a96000 - 0x96a9dfe9  libgcc_s.1.dylib ??? (???) <f53c808e87d1184c0f9df63aef53ce0b> /usr/lib/libgcc_s.1.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib


Output from 'make check' with --with-xml=libxml.
----------------------------------------
...
dbus-test: running spawn tests
Not expecting error when launching segfaulting executable: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program .../dbus-1.2.1/test/test-segfault: Unknown error: 0
Unit test failed: spawn
FAIL: dbus-test
...


EXPECTED RESULTS.
---------------
pass tests.


BUILD AND PLATFORM.
------------------
date:         13 July 2008
platform:  Mac OSX 10.5.4/Darwin 9.4.0


ADDITIONAL BUILDS AND PLATFORMS.
------------------------------
unknown.


ADDITIONAL INFORMATION.
----------------------
libexpat is installed in two locations, using factory installed library.
packages installed prior to dbus follow the gnome recommended order for a full install.
all libraries installed are with the option --disable-static.
Comment 1 Colin Walters 2008-09-18 16:16:25 UTC
"Unknown group "root" on element <deny>"

This sounds like the configuration file needs to be different for OS X?  Is there no group "root" there?  Is this still reproducible with 1.2.3?

At a higher level I'm trying to get all OS X integration done here:

http://bugs.freedesktop.org/show_bug.cgi?id=14259

Comment 2 Andrew SG Rojek 2008-09-24 17:17:44 UTC
Thanks for reply.

Checked groups for 'root' using dscl and no account has been created for 'root'.
As far as I'm aware, root user is grouped with other admin accounts under 'admin'.

I'll try v1.2.3 and get back to you soon.

A.

Comment 3 Andrew SG Rojek 2009-04-19 17:39:11 UTC
Colin,

Just got round to testing the latest release of dbus (v.1.2.12) and the
'make check' output is almost identical with the same problems.

After examining the system accounts and several experimentations
with group accounts on the Mac, the group error reported before,
can be eliminated by changing the statements in the test file
'many-rules.conf' on lines 20 and 38 to read,

<deny group="wheel"/>

As an unqualified opinion, the group 'wheel' (System Group) seems to
be the most commonly used group when associated with the 'root'
account on the Mac and is also the only member of that group.
Therefore, it would seem that it would be a suitable substitute.

Alternatively, the group 'sys' (System) also has 'root' as its only
member, but is not widely used throughout the system. Also,
group 'admin' (Administrators) has as its members all the user
accounts that have administrator status. Don't know if that one
is of any help however.

With root group set to wheel, the rest of the tests progressed without
any related errors. For a future addition, could you get configure to
detect darwin OS and reconfigure the conf files to read the group 'wheel' ?

Getting back to the output from the check, the valid and invalid
message tests all seem to produce the same message,
"message builder language no longer supported"
and I'm not aware of the implications of this.

Being able to progress deeper into the tests, the following test failed,
./bus-test: Running message dispatch test
check_get_connection_unix_process_id
this one seemed a bit more serious.



OUTPUT FROM 'MAKE CHECK'
----------------------
Making check in dbus
make  check-am
make  check-TESTS
Test data in ../test/data
dbus-test: running string tests
dbus-test: checking for memleaks
dbus-test: running sysdeps tests
dbus-test: checking for memleaks
dbus-test: running data-slot tests
dbus-test: checking for memleaks
dbus-test: running misc tests
dbus-test: checking for memleaks
dbus-test: running address tests
dbus-test: checking for memleaks
dbus-test: running server tests
dbus-test: checking for memleaks
dbus-test: running object-tree tests
dbus-test: checking for memleaks
dbus-test: running signature tests
dbus-test: checking for memleaks
dbus-test: running marshalling tests
dbus-test: checking for memleaks
recursive marshal tests disabled
dbus-test: running byteswap tests
  120 blocks swapped from order 'l' to 'B'
  120 blocks swapped from order 'B' to 'l'
dbus-test: checking for memleaks
dbus-test: running memory tests
dbus-test: checking for memleaks
dbus-test: running mem-pool tests
dbus-test: checking for memleaks
dbus-test: running list tests
dbus-test: checking for memleaks
dbus-test: running marshal-validate tests
dbus-test: checking for memleaks
dbus-test: running marshal-header tests
dbus-test: checking for memleaks
dbus-test: running message tests
 testing message loading: trivial example of each message type 4 test loads cumulative
 testing message loading: assorted arguments 124 test loads cumulative
 testing message loading: assorted special cases 144 test loads cumulative
 testing message loading: each uint32 modified 35366 test loads cumulative
 testing message loading: wrong body lengths 38366 test loads cumulative
 testing message loading: each byte modified 51545 test loads cumulative
51545 sample messages tested
validity   0 seen 378 times
validity   1 seen 3477 times
validity   2 seen 177 times
validity   4 seen 3 times
validity   5 seen 3 times
validity   6 seen 3 times
validity   7 seen 273 times
validity   8 seen 3 times
validity   9 seen 15780 times
validity  10 seen 173 times
validity  11 seen 2740 times
validity  12 seen 6078 times
validity  13 seen 3960 times
validity  14 seen 360 times
validity  15 seen 3 times
validity  16 seen 1080 times
validity  17 seen 1440 times
validity  18 seen 1107 times
validity  19 seen 3 times
validity  20 seen 1080 times
validity  21 seen 6480 times
validity  22 seen 3 times
validity  23 seen 3 times
validity  24 seen 720 times
validity  25 seen 360 times
validity  26 seen 1440 times
validity  27 seen 720 times
validity  28 seen 360 times
validity  29 seen 3 times
validity  30 seen 720 times
validity  31 seen 3 times
validity  32 seen 360 times
validity  33 seen 3 times
validity  34 seen 3 times
validity  35 seen 14625 times
validity  37 seen 6666 times
validity  38 seen 2013 times
validity  39 seen 15447 times
validity  40 seen 1788 times
validity  41 seen 8325 times
validity  42 seen 3408 times
validity  43 seen 4875 times
validity  45 seen 3327 times
validity  46 seen 7485 times
validity  47 seen 1125 times
validity  48 seen 3 times
validity  49 seen 3 times
validity  50 seen 144 times
validity  51 seen 3 times
validity  54 seen 12 times
validity  -4 seen 0 times
validity  -2 seen 0 times
validity   3 seen 0 times
validity  36 seen 0 times
validity  44 seen 0 times
validity  52 seen 0 times
validity  53 seen 0 times
validity  55 seen 0 times
Testing valid-messages:
Could not load array-of-array-of-uint32.message, message builder language no longer supported
Could not load dict-simple.message, message builder language no longer supported
Could not load dict.message, message builder language no longer supported
Could not load emptiness.message, message builder language no longer supported
Could not load lots-of-arguments.message, message builder language no longer supported
Could not load no-padding.message, message builder language no longer supported
Could not load opposite-endian.message, message builder language no longer supported
Could not load recursive-types.message, message builder language no longer supported
Could not load simplest-manual.message, message builder language no longer supported
Could not load simplest.message, message builder language no longer supported
Could not load standard-acquire-service.message, message builder language no longer supported
Could not load standard-hello.message, message builder language no longer supported
Could not load standard-list-services.message, message builder language no longer supported
Could not load standard-service-exists.message, message builder language no longer supported
Could not load unknown-header-field.message, message builder language no longer supported
Testing invalid-messages:
Could not load array-of-nil.message, message builder language no longer supported
Could not load array-with-mixed-types.message, message builder language no longer supported
Could not load bad-boolean-array.message, message builder language no longer supported
Could not load bad-boolean.message, message builder language no longer supported
Could not load bad-endian.message, message builder language no longer supported
Could not load bad-header-field-alignment.message, message builder language no longer supported
    boolean-has-no-value.message-raw
Could not load local-namespace.message, message builder language no longer supported
Could not load no-dot-in-name.message, message builder language no longer supported
Could not load not-nul-header-padding.message, message builder language no longer supported
Could not load overlong-name.message, message builder language no longer supported
Could not load too-little-header-padding.message, message builder language no longer supported
Could not load too-much-header-padding-by-far.message, message builder language no longer supported
Could not load too-much-header-padding.message, message builder language no longer supported
Could not load too-short-dict.message, message builder language no longer supported
Testing incomplete-messages:
Could not load missing-body.message, message builder language no longer supported
dbus-test: checking for memleaks
dbus-test: running hash tests
Computing test hash keys...
... done.
dbus-test: checking for memleaks
dbus-test: running spawn tests
dbus-test: checking for memleaks
dbus-test: running credentials tests
dbus-test: checking for memleaks
dbus-test: running userdb tests
    Current user: root homedir: /var/root gids: 0 1 2 8 29 3 9 4 503 5 80 20
dbus-test: checking for memleaks
dbus-test: running keyring tests
 1 keys in test
dbus-test: checking for memleaks
dbus-test: running sha tests
SHA-1: H>SHS Type 1 Strings<H
SHA-1: H>SHS Type 2 Strings<H
SHA-1: H>SHS Type 3 Strings<H
 (ending tests due to Type 3 tests seen - this is normal)
Passed the 229 SHA-1 tests in the test file
dbus-test: checking for memleaks
dbus-test: running auth tests
Testing auth:
    anonymous-client-successful.auth-script
    anonymous-server-successful.auth-script
    cancel.auth-script
    client-out-of-mechanisms.auth-script
    external-failed.auth-script
    external-root.auth-script
    external-silly.auth-script
    external-successful.auth-script
    extra-bytes.auth-script
    fail-after-n-attempts.auth-script
    fallback.auth-script
    invalid-command-client.auth-script
    invalid-command.auth-script
    invalid-hex-encoding.auth-script
    mechanisms.auth-script
dbus-test: checking for memleaks
dbus-test: running pending-call tests
dbus-test: checking for memleaks
dbus-test: completed successfully
PASS: dbus-test
==================
All 1 tests passed
==================
Making check in bus
make  check-TESTS
./bus-test: Running expire list test
./bus-test: checking for memleaks
./bus-test: Running config file parser test
Testing retrieving the default session service directories
    default service dir: /Volumes/gnu/gde/org.gnome/share/dbus-1/services
    default service dir: /usr/local/share/dbus-1/services
    default service dir: /Volumes/gnu/gde/org.gnome/share/dbus-1/services
    test service dir: /testusr/testlocal/testshare/dbus-1/services
    test service dir: /testusr/testshare/dbus-1/services
    test service dir: /usr/local/share/dbus-1/services
    test service dir: /testhome/foo/.testlocal/testshare/dbus-1/services
Testing retrieving the default system service directories
    default service dir: /testusr/testlocal/testshare/dbus-1/system-services
    default service dir: /testusr/testshare/dbus-1/system-services
    default service dir: /usr/local/share/dbus-1/system-services
    test service dir: /testusr/testlocal/testshare/dbus-1/system-services
    test service dir: /testusr/testshare/dbus-1/system-services
    test service dir: /usr/local/share/dbus-1/system-services
Testing valid files:
    basic.conf
    debug-allow-all-sha1.conf
    debug-allow-all.conf
    entities.conf
    many-rules.conf
    session.conf
    system.conf
Testing invalid files:
    badselinux-1.conf
    badselinux-2.conf
    circular-1.conf
    circular-2.conf
    circular-3.conf
    not-well-formed.conf
    truncated-file.conf
Comparing equivalent files:
    basic-1.conf
    basic-2.conf
Comparing equivalent files:
    entities-1.conf
    entities-2.conf
./bus-test: checking for memleaks
./bus-test: Running policy test
./bus-test: checking for memleaks
./bus-test: Running signals test
./bus-test: checking for memleaks
./bus-test: Running SHA1 connection test
./bus-test: checking for memleaks
./bus-test: Running message dispatch test
check_get_connection_unix_process_id:1278 received message interface "(unset)" member "(unset)" error name "org.freedesktop.DBus.Error.UnixProcessIdUnknown" on 0x205210, expecting not this error
  0   bus-test                            0x0007a748 _dbus_print_backtrace + 40
  1   bus-test                            0x00075762 _dbus_abort + 18
  2   bus-test                            0x000622e6 _dbus_warn + 102
  3   bus-test                            0x00013076 bus_dispatch_remove_connection + 454
  4   bus-test                            0x00018442 bus_dispatch_remove_connection + 21906
  5   bus-test                            0x000184e7 bus_dispatch_test + 39
  6   bus-test                            0x00025ba2 main + 338
  7   bus-test                            0x00001846 start + 54
  Process 92900 sleeping for gdb attach
/bin/sh: line 1: 92900 Abort trap              DBUS_TEST_DATA=../test/data DBUS_TEST_HOMEDIR=../dbus DBUS_FATAL_WARNINGS=1 DBUS_BLOCK_ON_ABORT=1 ${dir}$tst
FAIL: bus-test
./bus-test-system: Running config file parser (trivial) test
Testing valid files:
    basic.conf
    debug-allow-all-sha1.conf
    debug-allow-all.conf
    entities.conf
    many-rules.conf
    session.conf
    system.conf
Testing invalid file:
    ../test/data/invalid-config-files/not-well-formed.conf
Testing valid file:
    ../test/data/valid-config-files/system.conf
Testing values from: ../test/data/valid-config-files/system.conf
    <type>system</type> OKAY!
    <standard_system_service_dirs/> OKAY!
./bus-test-system: checking for memleaks
./bus-test-system: Success
PASS: bus-test-system
./bus-test-launch-helper: Running launch helper OOM checks
./bus-test-launch-helper: checking for memleaks
./bus-test-launch-helper: Success
PASS: bus-test-launch-helper
===================
1 of 3 tests failed
===================
make[2]: *** [check-TESTS] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1

Comment 4 Colin Walters 2009-04-21 11:03:22 UTC
Hi, I would prefer to see these kinds of things consolidated in the general Mac patch in bug 14259.  Any changes to configure.in etc are likely to overlap.
Comment 5 Colin Walters 2009-04-21 11:05:17 UTC
Just noticed I already said that, sorry.  Anyways I know the other Mac patch needs review...getting closer.
Comment 6 Mike McQuaid 2010-12-30 03:19:29 UTC
I think this should be fixed now, can you confirm?
Comment 7 Andrew SG Rojek 2010-12-30 16:34:29 UTC
Will get round to testing soon.

A.
Comment 8 Simon McVittie 2012-01-23 03:03:20 UTC
This is believed to have been fixed ages ago. Please reopen and provide more information if it turns out not to work.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.