Comment 3 for bug 1585382

Revision history for this message
Martin Pitt (pitti) wrote :

http://autopkgtest.ubuntu.com/packages/udisks2/zesty/i386 now has two failures with core dumps. I extracted the stack trace from the topmost one.

This one is interesting:

        f = Frame 0xb662ccec, for file src/tests/test_polkitd.py, line 184, in spawn (allowed_actions=['org.freedesktop.udisks2.modify-device-system', 'org.freedesktop.udisks2.modify-device'], on_bus=None, pid=18994, bus=<BusConnection(_signal_recipients_by_object_path={}, _Connection__call_on_disconnection=[], _signals_lock=<_thread.lock at remote 0xb6330a10>, _signal_sender_matches={}, _dbus_Connection_initialized=1, _bus_names=<WeakValueDictionary(_iterating=set(), _remove=<function at remote 0xb633a4f4>, data={}, _pending_removals=[]) at remote 0xb50c038c>) at remote 0xb634683c>, timeout=49)

that suggests it hits this code path in src/tests/test_polkitd.py:

    for timeout in range(50):
        try:
            p = dbus.Interface(bus.get_object('org.freedesktop.DBus', '/org/freedesktop/DBus'),
                               'org.freedesktop.DBus').GetConnectionUnixProcessID(
                                   bus.get_name_owner('org.freedesktop.PolicyKit1'))
        except dbus.exceptions.DBusException:
            continue
        if p == pid:
            break
        time.sleep(0.1)
    else:
        sys.stderr.write('test polkitd failed to start up\n')
        os.abort()

i. e. it timed out waiting for the mocked polkit to appear on the bus.