Your message dated Tue, 23 Jul 2024 14:08:49 +0100
with message-id <[email protected]>
and subject line Re: Bug#972151: glib2.0: gdbus-server-auth test fails on 
IPv6-only buildds
has caused the Debian Bug report #972151,
regarding glib2.0: gdbus-server-auth test fails on IPv6-only buildds
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
972151: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972151
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: glib2.0
Version: 2.66.1-1
Severity: important
Tags: ftbfs help
X-Debbugs-Cc: [email protected]

One of the tests in GLib's test suite is gdbus-server-auth, which tests
the GDBusServer IPC server, among other things verifying that a libdbus
client can interoperate with the GDBusServer.

It appears this test consistently fails on arm-conova-03 (with either
its armel or armhf hat), but not on other buildds (!), when it exercises
a TCP connection with the DBUS_COOKIE_SHA1 authentication mechanism. I
don't know why. It might be something timing-related (the test was intended
to reproduce a timing problem in DBUS_COOKIE_SHA1 where GDBus and libdbus
failed to interoperate).

I've tried running the same test in a loop on porterboxes in the past,
without being able to reproduce the problem in 2000 consecutive runs.

What hardware is arm-conova-03 running on? Is it the same as amdahl, which
has a similar description on db.debian.org?

Is there anything odd about how arm-conova-03's filesystem or /tmp works,
perhaps using tmpfs or NFS where other buildds don't, or not using tmpfs
where other buildds do, or an unusual level of load?

Or is there anything odd about arm-conova-03's TCP or other networking
setup?

Is there anything else special about arm-conova-03 that would make it have
unusual timing more often, perhaps pausing execution for a significant
time and then resuming?

If I upload a version to experimental with extra debug logging, is it
possible for porters or buildd admins to force it to be scheduled on
arm-conova-03 or a similar machine?

Thanks,
    smcv

# random seed: R02S6c2bc7bff771d54ff46a2e943ffa793a
1..8
# Start of gdbus tests
# GLib-DEBUG: g_set_user_dirs: Setting HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/.dirs/runtime
# Testing GDBus server at unix:dir=/tmp/gdbus-server-auth-TEU9R0 / libdbus 
client, with flags: external:false anonymous:false sha1:false abstract:false 
tcp:false
# Connectable address: unix:path=/tmp/gdbus-server-auth-TEU9R0/dbus-LvKVVgBn
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says GDBus client is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 0 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 1 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 2 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 3 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 4 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 5 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 6 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 7 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 8 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 9 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 10 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 11 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 12 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 13 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 14 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 15 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 16 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 17 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 18 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 19 is uid 2952, pid 25936
ok 1 /gdbus/server-auth
# Start of server-auth tests
# GLib-DEBUG: g_set_user_dirs: Setting HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/abstract/.dirs/runtime
# Testing GDBus server at unix:tmpdir=/tmp/gdbus-server-auth-X7IBS0 / libdbus 
client, with flags: external:false anonymous:false sha1:false abstract:true 
tcp:false
# Connectable address: unix:abstract=/tmp/gdbus-server-auth-X7IBS0/dbus-D31sbKvP
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says GDBus client is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 0 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 1 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 2 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 3 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 4 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 5 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 6 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 7 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 8 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 9 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 10 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 11 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 12 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 13 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 14 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 15 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 16 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 17 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 18 is uid 2952, pid 25936
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=25936,uid=2952,gid=1009
# GLib-GIO-DEBUG: Server says libdbus client 19 is uid 2952, pid 25936
ok 2 /gdbus/server-auth/abstract
# GLib-DEBUG: g_set_user_dirs: Setting HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to 
/tmp/test_gdbus-server-auth_SYU9R0/gdbus/server-auth/tcp/.dirs/runtime
# Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: 
external:false anonymous:false sha1:false abstract:false tcp:true
# Connectable address: tcp:host=127.0.0.1,port=44295
# GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication
# GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication
# GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=0
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=0
# GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used 
after threads are created
**
GLib-GIO:ERROR:../../../gio/tests/gdbus-server-auth.c:429:do_test_server_auth: 
assertion failed (libdbus_call.error.name == NULL): 
("org.freedesktop.DBus.Error.Failed" == NULL)
Bail out! 
GLib-GIO:ERROR:../../../gio/tests/gdbus-server-auth.c:429:do_test_server_auth: 
assertion failed (libdbus_call.error.name == NULL): 
("org.freedesktop.DBus.Error.Failed" == NULL)

--- End Message ---
--- Begin Message ---
Version: 2.66.3-1

On Tue, 13 Oct 2020 at 19:31:33 +0100, Simon McVittie wrote:
> On Tue, 13 Oct 2020 at 13:10:46 +0000, Paul Wise wrote:
> > arm-conova-03 does not have an IPv4 address/route except on the
> > loopback device but amdahl, arm-conova-01 and arm-conova-02 do.
> 
> Thanks, that could well be it. libdbus resolves the host part of a TCP
> address using getaddrinfo() with AI_ADDRCONFIG, but AI_ADDRCONFIG has
> troublesome behaviour on systems where the only IPv4 address is loopback
> (reported years ago as <https://bugs.debian.org/854302>, for example).
> 
> The intended behaviour of AI_ADDRCONFIG (I think) is to make, for example,
> example.com resolve to an IPv6 address if you only have external IPv6
> connectivity, an IPv4 address if you only have external IPv4 connectivity,
> or both if you have both.
> 
> This makes complete sense if you are connecting to arbitrary Internet
> hosts, or even to LAN hosts, but is actively hostile if you happen to be
> "talking to yourself" in a unit test by connecting to ::1, 127.x.x.x or
> localhost, which (as in this case) are very likely to be reachable via
> IPv4 or IPv6 even if nothing else is.
> 
> Recent versions of GLib implement
> https://tools.ietf.org/html/draft-ietf-dnsop-let-localhost-be-localhost-02,
> and also implement a special case that attempts to parse hostnames as
> IPv4 or IPv6 addresses before trying name resolution; but libdbus doesn't
> have either of those yet (partly because D-Bus over TCP is insecure and
> discouraged, so I don't want to spend time improving it).
> 
> See also <https://bugs.debian.org/952740>,
> <https://sourceware.org/bugzilla/show_bug.cgi?id=12398>.

For whatever reason (possibly a behaviour change in glibc?), this seems
to be working now. I can run

    bwrap --dev-bind / / --unshare-net meson test -C ~/tmp/build/glib/debug

and I can see libdbus clients successfully connecting to a GDBus server
with IPv4 even in that restricted environment:

# Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: 
external:false anonymous:false sha1:true abstract:false tcp:true
...
# GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1
# GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication
# GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1
# GLib-GIO-DEBUG: Authorizing peer with credentials: 
GCredentials:linux-ucred:pid=0
# GLib-GIO-DEBUG: New connection from peer with credentials: 
GCredentials:linux-ucred:pid=0
# GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1

Also, even if this test did fail, it is no longer RC for Debian, because we
have marked the TCP/DBUS_COOKIE_SHA1 parts of gdbus-server-auth test as flaky
(they intermittently fail on some buildds, but we cannot reproduce the
failure in a development environment, and D-Bus over TCP is strongly
discouraged anyway).

I'm closing this as having been resolved in the first version where the
TCP parts of gdbus-server-auth were marked as flaky.

    smcv

--- End Message ---

Reply via email to