dbus issueshttps://gitlab.freedesktop.org/dbus/dbus/-/issues2023-06-13T13:02:04Zhttps://gitlab.freedesktop.org/dbus/dbus/-/issues/462windows-meson-mingw-ucrt64 failing since 2023-06-06: Could not detect Ninja v...2023-06-13T13:02:04ZSimon McVittiewindows-meson-mingw-ucrt64 failing since 2023-06-06: Could not detect Ninja v1.8.2 or newerOn 2023-05-16 I re-enabled Windows CI, and it passed: https://gitlab.freedesktop.org/dbus/dbus/-/commit/a6654eae7f842ee9fd94cafb6ce1ffd98df2bdf5/pipelines?ref=master
Since 2023-06-06, CI is failing in the `windows-meson-mingw-ucrt64` jo...On 2023-05-16 I re-enabled Windows CI, and it passed: https://gitlab.freedesktop.org/dbus/dbus/-/commit/a6654eae7f842ee9fd94cafb6ce1ffd98df2bdf5/pipelines?ref=master
Since 2023-06-06, CI is failing in the `windows-meson-mingw-ucrt64` job: https://gitlab.freedesktop.org/dbus/dbus/-/jobs/43178395
```
ERROR: Could not detect Ninja v1.8.2 or newer
A full log can be found at C:\Users\Administrator\runner\builds\dbus\dbus\build\meson-logs\meson-log.txt
```
https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/tools/docker/windows/Dockerfile explicitly installs `ninja` using msys64, so it should be there. In https://gitlab.freedesktop.org/dbus/dbus/-/jobs/43178370, ninja-1.11.1-1 was installed.
It seems we also have an older version of Ninja:
```
Found ninja-1.8.2 at C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.EXE
```
I don't know which one the dbus build is meant to be using.
Please could someone who understands Windows look into this?
If we can't make this reliable, then we should disable this CI job so that only the reliable jobs are gating new contributions. I don't have enough time available for dbus maintenance to be able to afford to spend it on debugging an OS I don't use.
/cc @elmarco @rhabackerhttps://gitlab.freedesktop.org/dbus/dbus/-/issues/461DBus method param issue2023-06-05T15:36:09Z杨奎DBus method param issueI want call a dbus method of signature was a(ss).I used the following code to construct the "a (ss)" parameter, but it did not pass. The console output is as follows:
> Array or variant type requires that type begin_struct be written, b...I want call a dbus method of signature was a(ss).I used the following code to construct the "a (ss)" parameter, but it did not pass. The console output is as follows:
> Array or variant type requires that type begin_struct be written, but string was written. The overall signature expected here was 'a(ss)' and we are on byte 1 of that signature.
This is my implementation code:
```c
DBusMessageIter iter;
DBusMessageIter subIter;
dbus_message_iter_init_append(msg, &iter);
if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY,
"(ss)",
&subIter)) {
fprintf(stderr, "%s", "iter init fail\n");
exit(1);
}
String a = "aaaaaa";
String b = "bbbbbb";
dbus_message_iter_append_basic(&subIter, DBUS_TYPE_STRING, &a);
dbus_message_iter_append_basic(&subIter, DBUS_TYPE_STRING, &b);
// dbus_message_iter_append_basic(&subIter, DBUS_TYPE_STRING, &c);
// dbus_message_iter_append_basic(&subIter, DBUS_TYPE_STRING, &d);
dbus_message_iter_close_container(&iter, &subIter);
```https://gitlab.freedesktop.org/dbus/dbus/-/issues/460Make Gnome (wayland) display settings persistent without asking.2023-06-01T09:55:30ZVeldoraMake Gnome (wayland) display settings persistent without asking.Hi
I know, I can change the display settings of gnome w. wayland using d-bus.
When changing the settings, they're not persistent and only valid for the current session.
When setting the setting persistent, Gnome/Wayland asks me, if I w...Hi
I know, I can change the display settings of gnome w. wayland using d-bus.
When changing the settings, they're not persistent and only valid for the current session.
When setting the setting persistent, Gnome/Wayland asks me, if I want to keep the changes or undo them.
Is there a way, to make the settings via d-bus persistent, without having Gnome asking me, if I want to keep the changes?
Reference-Issue to gnome-randr-rust: https://github.com/maxwellainatchi/gnome-randr-rust/issues/22
Above program is a rust-software, that aims to imitate xrandr behaviour, but for gnome on wayland.
Cheers
~ Veldorahttps://gitlab.freedesktop.org/dbus/dbus/-/issues/459An issue when restart dbus.service.2023-06-01T19:27:50ZleimaohuiAn issue when restart dbus.service.## To reproduce
Steps to reproduce the behavior:
1. restart dbus.service
2. login by ssh.
## Additional context
After the following commit has been submitted into systemd. when restart dbus.service, it is hard to login by ssh.
And thi...## To reproduce
Steps to reproduce the behavior:
1. restart dbus.service
2. login by ssh.
## Additional context
After the following commit has been submitted into systemd. when restart dbus.service, it is hard to login by ssh.
And this issue can be solved by restart systemd-logind.service.
I'm not sure whether it is an issue.
```
commit 5d71e463f49518c7702467f6145484afa31bf8ba
Author: Lennart Poettering <lennart@poettering.net>
Date: Mon Jan 2 17:35:23 2023 +0100
logind: implement Type=notify-reload protocol properly
So close already. Let's add the two missing notifications too.
Fixes: #18484
diff --git a/src/login/logind.c b/src/login/logind.c
index def2f5a442..1feacd3601 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -1020,6 +1020,11 @@ static int manager_dispatch_reload_signal(sd_event_source *s, const struct signa
Manager *m = userdata;
int r;
+ (void) sd_notifyf(/* unset= */ false,
+ "RELOADING=1\n"
+ "STATUS=Reloading configuration...\n"
+ "MONOTONIC_USEC=" USEC_FMT, now(CLOCK_MONOTONIC));
+
manager_reset_config(m);
r = manager_parse_config_file(m);
if (r < 0)
@@ -1027,6 +1032,7 @@ static int manager_dispatch_reload_signal(sd_event_source *s, const struct signa
else
log_info("Config file reloaded.");
+ (void) sd_notify(/* unset= */ false, NOTIFY_READY);
return 0;
}
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
index 042ea75d7a..24f5ddaa17 100644
--- a/units/systemd-logind.service.in
+++ b/units/systemd-logind.service.in
@@ -58,6 +58,7 @@ StateDirectory=systemd/linger
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
+Type=notify-reload
```
After restart dbus.service:
```
root # systemctl status dbus
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static)
Active: active (running) since Tue 2023-05-23 15:51:50 UTC; 1 day 18h ago
TriggeredBy: ● dbus.socket
Docs: man:dbus-daemon(1)
Main PID: 39754 (dbus-daemon)
CGroup: /system.slice/dbus.service
└─39754 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
May 24 11:24:21 ubinux-x86-64 dbus-daemon[39754]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requeste>
May 24 11:24:46 ubinux-x86-64 dbus-daemon[39754]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
May 24 11:45:05 ubinux-x86-64 dbus-daemon[39754]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requeste>
May 24 11:45:30 ubinux-x86-64 dbus-daemon[39754]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
May 25 09:17:23 ubinux-x86-64 dbus-daemon[39754]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requeste>
May 25 09:17:48 ubinux-x86-64 dbus-daemon[39754]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
May 25 09:18:13 ubinux-x86-64 dbus-daemon[39754]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requeste>
May 25 09:18:38 ubinux-x86-64 dbus-daemon[39754]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
May 25 09:50:12 ubinux-x86-64 dbus-daemon[39754]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' re>
May 25 09:50:12 ubinux-x86-64 dbus-daemon[39754]: [system] Successfully activated service 'org.freedesktop.hostname1'
```https://gitlab.freedesktop.org/dbus/dbus/-/issues/458dbus-daemon: systemd activation failures are not detected2023-09-01T11:28:40ZAleksandr Mezindbus-daemon: systemd activation failures are not detected## To reproduce
Steps to reproduce the behavior:
```
$ cat ~/.local/share/dbus-1/services/com.github.amezin.false.service
[D-BUS Service]
Name=com.github.amezin.false
Exec=false
SystemdService=dbus-com.github.amezin.false.service
$ ca...## To reproduce
Steps to reproduce the behavior:
```
$ cat ~/.local/share/dbus-1/services/com.github.amezin.false.service
[D-BUS Service]
Name=com.github.amezin.false
Exec=false
SystemdService=dbus-com.github.amezin.false.service
$ cat ~/.local/share/systemd/user/dbus-com.github.amezin.false.service
[Service]
Type=dbus
BusName=com.github.amezin.false
ExecStart=false
$ dbus-send --session --dest=org.freedesktop.DBus --print-reply --reply-timeout=1000000 /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName string:'com.github.amezin.false' uint32:0
Error org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'com.github.amezin.false': timed out (service_start_timeout=120000ms)
```
## Expected result
systemd unit fails (almost) immediately, so I expect dbus-daemon to report the failure.
## Actual result
Waiting for 2 minutes, then `Error org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'com.github.amezin.false': timed out (service_start_timeout=120000ms)`.
So if I fix the issue that prevented the service from starting, there is up to 2 minute delay before the next activation attempt.
## Additional context
dbus-broker handles this better - reports the failure immediately.
It seems that systemd doesn't send `ActivationFailure` in this case - checked using `dbus-monitor`, and also by looking at systemd code. systemd seems to send `ActivationFailure` only when it can't even begin the activation (like if the unit name is incorrect). So this may be called a systemd bug... But dbus-broker somehow handles this better.
Similar systemd issue: https://github.com/systemd/systemd/issues/21520https://gitlab.freedesktop.org/dbus/dbus/-/issues/457CVE-2023-34969: dbus-daemon crashes when a monitor is active and a message fr...2023-06-08T09:13:28ZhongjinghaoCVE-2023-34969: dbus-daemon crashes when a monitor is active and a message from the driver cannot be delivered[Vulnerability description added by @smcv]
If a privileged user with control over the dbus-daemon is using the `org.freedesktop.DBus.Monitoring` interface to monitor message bus traffic, then an unprivileged user with the ability to con...[Vulnerability description added by @smcv]
If a privileged user with control over the dbus-daemon is using the `org.freedesktop.DBus.Monitoring` interface to monitor message bus traffic, then an unprivileged user with the ability to connect to the same dbus-daemon can cause a dbus-daemon crash under some circumstances.
When done on the well-known system bus, this is a denial-of-service vulnerability.
Mitigation: This can only be done if a monitoring process such as `dbus-monitor` or `busctl monitor` is active on the same dbus-daemon instance, which is a privileged operation that can only be done by root or the Unix uid of the message bus. If no monitoring process is active, then the vulnerable code is not reached.
The situation in which the message bus can be crashed is that an unprivileged user sends a message that will result in a reply from the "bus driver" (most commonly a method call on the `org.freedesktop.DBus` interface or a `NameOwnerChanged`, `NameAcquired` or `NameLost` signal), but the reply cannot be delivered, for example because it is forbidden by a `<deny>` rule or because the recipient has exceeded the configured limit on its number of queued messages.
Vulnerable versions:
* 1.15.x before 1.15.6
* 1.14.x before 1.14.8
* 1.12.x before 1.12.28
* most end-of-life versions since 1.9.x
Fixed versions:
* all since 1.15.6
* 1.14.x since 1.14.8
* 1.12.x since 1.12.28
Not vulnerable: end-of-life versions 1.8.x or older do not contain the affected code path.
## Original report
![111111](/uploads/3d50924ba02cc8e0c421e15824b92837/111111.png)
```
#0 0x00007f113fa7d3ef in ?? () from /usr/lib64/libc.so.6
#1 0x00007f113fa31006 in raise () from /usr/lib64/libc.so.6
#2 0x00007f113fa1c4f7 in abort () from /usr/lib64/libc.so.6
#3 0x00007f113fd61d62 in _dbus_abort () at dbus-sysdeps.c:93
#4 0x00007f113fd84b50 in _dbus_warn_check_failed (
format=format@entry=0x7f113fd95d28 "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-Bus library.\n") at dbus-internals.c:281
#5 0x00007f113fd8528a in _dbus_warn_return_if_fail (function=function@entry=0x7f113fd94a80 <__func__.65> "dbus_message_set_reply_serial",
assertion=assertion@entry=0x7f113fd9332a "reply_serial != 0", file=file@entry=0x7f113fd932ea "dbus-message.c", line=line@entry=1168) at dbus-internals.c:936
#6 0x00007f113fd74027 in dbus_message_set_reply_serial (message=message@entry=0x5611d306c690, reply_serial=<optimized out>) at dbus-message.c:1168
#7 0x00007f113fd77c83 in dbus_message_new_error (reply_to=reply_to@entry=0x5611d306b630, error_name=0x5611d00208e0 "org.freedesktop.DBus.Error.LimitsExceeded",
error_message=<optimized out>) at dbus-message.c:1525
#8 0x00005611ccb898ec in bus_transaction_capture_error_reply (error=<optimized out>, error=<optimized out>, in_reply_to=0x5611d306b630,
addressed_recipient=0x5611cdb65960, transaction=0x5611d67f4030) at connection.c:2314
#9 bus_transaction_capture_error_reply (transaction=0x5611d67f4030, addressed_recipient=0x5611cdb65960, error=0x7ffd16177520, in_reply_to=0x5611d306b630)
at connection.c:2296
#10 0x00005611ccb89a49 in bus_transaction_send_from_driver (transaction=0x5611d67f4030, connection=0x5611cdb65960, message=0x5611d306b630) at connection.c:2379
#11 0x00005611ccb8ef0e in bus_driver_handle_get_connection_unix_user (connection=0x5611cdb65960, transaction=0x5611d67f4030, message=<optimized out>, error=0x7ffd161776a0)
at driver.c:1667
#12 0x00005611ccb9061f in bus_driver_handle_message (connection=connection@entry=0x5611cdb65960, transaction=transaction@entry=0x5611d67f4030,
message=message@entry=0x5611d633ee10, error=error@entry=0x7ffd161776a0) at driver.c:2949
#13 0x00005611ccb8c582 in bus_dispatch (message=0x5611d633ee10, connection=0x5611cdb65960) at dispatch.c:392
#14 bus_dispatch_message_filter (connection=0x5611cdb65960, message=0x5611d633ee10, user_data=<optimized out>) at dispatch.c:548
#15 0x00007f113fd6ac1d in dbus_connection_dispatch (connection=0x5611cdb65960) at dbus-connection.c:4704
#16 dbus_connection_dispatch (connection=connection@entry=0x5611cdb65960) at dbus-connection.c:4576
#17 0x00005611ccb98821 in _dbus_loop_dispatch (loop=<optimized out>) at dbus-mainloop.c:532
#18 _dbus_loop_dispatch (loop=0x5611cdb37d30) at dbus-mainloop.c:513
#19 _dbus_loop_iterate (loop=loop@entry=0x5611cdb37d30, block=block@entry=1) at dbus-mainloop.c:862
#20 0x00005611ccb98c05 in _dbus_loop_run (loop=0x5611cdb37d30) at dbus-mainloop.c:888
#21 0x00005611ccb7dbc3 in main (argc=<optimized out>, argv=<optimized out>) at main.c:722
```https://gitlab.freedesktop.org/dbus/dbus/-/issues/456Native Windows CI not being run2023-05-16T11:01:28ZSimon McVittieNative Windows CI not being runhttps://gitlab.freedesktop.org/dbus/dbus/-/jobs/41624837 took at least 70 minutes, and I wanted to get *some* amount of CI to work today, so I disabled the native Windows CI jobs for now.
We should re-enable the Windows CI if/when it wo...https://gitlab.freedesktop.org/dbus/dbus/-/jobs/41624837 took at least 70 minutes, and I wanted to get *some* amount of CI to work today, so I disabled the native Windows CI jobs for now.
We should re-enable the Windows CI if/when it works reliably, but I've run out of time to get that working.https://gitlab.freedesktop.org/dbus/dbus/-/issues/455openSUSE mingw32-cmake, mingw64-cmake failing during CI2023-06-13T11:58:08ZSimon McVittieopenSUSE mingw32-cmake, mingw64-cmake failing during CIWhen running CI against git master, the `opensuse mingw64 cmake debug` build couldn't find the `mingw64-cmake` script:
```
+ mingw64-cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -D CMAKE_TOOLCHAIN_FILE=/builds/dbus/dbus/cmake/x8...When running CI against git master, the `opensuse mingw64 cmake debug` build couldn't find the `mingw64-cmake` script:
```
+ mingw64-cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -D CMAKE_TOOLCHAIN_FILE=/builds/dbus/dbus/cmake/x86_64-w64-mingw32.cmake -D CMAKE_PREFIX_PATH=/usr/x86_64-w64-mingw32/sys-root/x86_64-w64-mingw32 -D DBUS_USE_WINE=1 ..
./tools/ci-build.sh: line 440: mingw64-cmake: command not found
```
The corresponding 32-bit build isn't run by default, but would presumably fail in the same way.
I was able to resolve that as part of !405 by installing `mingw${bits}-cross-cmake`, but that leaves me with another error:
```
+ mingw64-cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -D CMAKE_TOOLCHAIN_FILE=/builds/dbus/dbus/cmake/x86_64-w64-mingw32.cmake -D CMAKE_PREFIX_PATH=/usr/x86_64-w64-mingw32/sys-root/x86_64-w64-mingw32 -D DBUS_USE_WINE=1 ..
RPM version 4.14.3
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [-afgpcdLAlsiv?] [-a|--all] [-f|--file] [-g|--group]
...
[--filerequire] [--filecaps]
CMake Warning:
Ignoring extra path from command line:
".."
CMake Error: The source directory "/builds/dbus/dbus/build" does not appear to contain CMakeLists.txt.
```
I think this means something is wrong with either the `mingw64-cmake` script, or the way we're invoking it. @rhabacker, since this seems to be your script, please could you have a look?
For now I'm going to disable the openSUSE mingw/cmake builds, because some CI is better than no CI. We still have at least some coverage of mingw/cmake on Debian, which succeeds.https://gitlab.freedesktop.org/dbus/dbus/-/issues/454DBUS installed in ubantu (x86_64 architectures), an error is as follows: the ...2023-04-28T09:43:10ZemodiliuganDBUS installed in ubantu (x86_64 architectures), an error is as follows: the arguments to dbus_set_error_from_message () were incorrect```
22346: 0x7f05fcbdc740: 1682664406.199526 [dbus-bus.c(219):init_connections_unlocked] Filling in system bus address...
22346: 0x7f05fcbdc740: 1682664406.199564 [dbus-bus.c(237):init_connections_unlocked] used default system bus "uni...```
22346: 0x7f05fcbdc740: 1682664406.199526 [dbus-bus.c(219):init_connections_unlocked] Filling in system bus address...
22346: 0x7f05fcbdc740: 1682664406.199564 [dbus-bus.c(237):init_connections_unlocked] used default system bus "unix:path=/var/run/dbus/system_bus_socket"
22346: 0x7f05fcbdc740: 1682664406.199582 [dbus-bus.c(245):init_connections_unlocked] Filling in session bus address...
22346: 0x7f05fcbdc740: 1682664406.199601 [dbus-bus.c(251):init_connections_unlocked] "unix:path=/run/user/16777218/bus,guid=812f0b8730831c0ca129cef5643f84bf"
22346: 0x7f05fcbdc740: 1682664406.199615 [dbus-bus.c(256):init_connections_unlocked] Filling in activation bus address...
22346: 0x7f05fcbdc740: 1682664406.199635 [dbus-bus.c(263):init_connections_unlocked] "unix:path=/run/user/16777218/bus,guid=812f0b8730831c0ca129cef5643f84bf"
22346: 0x7f05fcbdc740: 1682664406.199642 [dbus-bus.c(273):init_connections_unlocked] Bus activation type was set to "session"
22346: 0x7f05fcbdc740: 1682664406.199660 [dbus-connection.c(1867):_dbus_connection_open_internal] opening private connection to: unix:path=/run/user/16777218/bus,guid=812f0b8730831c0ca129cef5643f84bf
22346: 0x7f05fcbdc740: 1682664406.199715 [dbus-sysdeps-unix.c(929):_dbus_connect_unix_socket] connecting to unix socket /run/user/16777218/bus abstract=0
22346: 0x7f05fcbdc740: 1682664406.199740 [dbus-sysdeps-unix.c(247):_dbus_open_socket] socket fd 3 opened
22346: 0x7f05fcbdc740: 1682664406.199782 [dbus-transport-unix.c(92):_dbus_transport_new_for_domain_socket] Successfully connected to unix socket /run/user/16777218/bus
22346: 0x7f05fcbdc740: 1682664406.199818 [dbus-auth.c(2203):goto_state] client: going from state NeedSendAuth to state WaitingForData
22346: 0x7f05fcbdc740: 1682664406.199833 [dbus-transport.c(204):_dbus_transport_init_base] Initialized transport on address unix:path=/run/user/16777218/bus
22346: 0x7f05fcbdc740: 1682664406.199882 [dbus-connection.c(1359):_dbus_connection_new_for_transport] LOCK
22346: 0x7f05fcbdc740: 1682664406.199901 [dbus-transport-socket.c(181):check_read_watch] fd = 3
22346: 0x7f05fcbdc740: 1682664406.199925 [dbus-transport-socket.c(227):check_read_watch] setting read watch enabled = 0
22346: 0x7f05fcbdc740: 1682664406.199944 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 1 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 0
22346: 0x7f05fcbdc740: 1682664406.199970 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.199993 [dbus-dataslot.c(135):_dbus_data_slot_allocator_alloc] Allocated slot 0 on allocator 0x7f05fb6c8ec0 total 1 slots allocated 1 used
22346: 0x7f05fcbdc740: 1682664406.200014 [dbus-connection.c(3705):dbus_connection_send_with_reply_and_block] LOCK
22346: 0x7f05fcbdc740: 1682664406.200025 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.200052 [dbus-connection.c(3415):dbus_connection_send_with_reply] LOCK
22346: 0x7f05fcbdc740: 1682664406.200073 [dbus-dataslot.c(135):_dbus_data_slot_allocator_alloc] Allocated slot 0 on allocator 0x7f05fb6c8f10 total 1 slots allocated 1 used
22346: 0x7f05fcbdc740: 1682664406.200152 [dbus-connection.c(2033):_dbus_connection_send_preallocated_unlocked_no_update] Message 0x55952fc74440 (method_call /org/freedesktop/DBus org.freedesktop.DBus Hello '') for org.freedesktop.DBus added to outgoing queue 0x55952fc73f80, 1 pending to send
22346: 0x7f05fcbdc740: 1682664406.200182 [dbus-connection.c(2049):_dbus_connection_send_preallocated_unlocked_no_update] Message 0x55952fc74440 serial is 1
22346: 0x7f05fcbdc740: 1682664406.200199 [dbus-connection.c(1203):_dbus_connection_do_iteration_unlocked] start
22346: 0x7f05fcbdc740: 1682664406.200208 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.200234 [dbus-connection.c(1074):_dbus_connection_acquire_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.200259 [dbus-connection.c(1078):_dbus_connection_acquire_io_path] start connection->io_path_acquired = 0 timeout = -1
22346: 0x7f05fcbdc740: 1682664406.200282 [dbus-connection.c(1121):_dbus_connection_acquire_io_path] end connection->io_path_acquired = 1 we_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.200300 [dbus-connection.c(1123):_dbus_connection_acquire_io_path] unlocking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.200322 [dbus-connection.c(1126):_dbus_connection_acquire_io_path] LOCK
22346: 0x7f05fcbdc740: 1682664406.200331 [dbus-transport.c(1006):_dbus_transport_do_iteration] Transport iteration flags 0x1 timeout -1 connected = 1
22346: 0x7f05fcbdc740: 1682664406.200362 [dbus-transport-socket.c(1103):socket_do_iteration] iteration flags = write timeout = -1 read_watch = 0x55952fc73980 write_watch = 0x55952fc73930 fd = 3
22346: 0x7f05fcbdc740: 1682664406.200386 [dbus-transport-socket.c(1212):socket_do_iteration] in iteration, need_read=0 need_write=1
22346: 0x7f05fcbdc740: 1682664406.200413 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 0, do_writing = 1
22346: 0x7f05fcbdc740: 1682664406.200436 [dbus-sysdeps-unix.c(1811):write_credentials_byte] wrote credentials byte
22346: 0x7f05fcbdc740: 1682664406.200457 [dbus-transport-socket.c(464):do_authentication] client auth state: bytes to send
22346: 0x7f05fcbdc740: 1682664406.200481 [dbus-auth.c(2575):_dbus_auth_bytes_sent] client: Sent 18 bytes of: AUTH EXTERNAL 30
22346: 0x7f05fcbdc740: 1682664406.200496 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 0, do_writing = 1
22346: 0x7f05fcbdc740: 1682664406.200517 [dbus-transport-socket.c(450):do_authentication] client auth state: waiting for input
22346: 0x7f05fcbdc740: 1682664406.200532 [dbus-transport-socket.c(181):check_read_watch] fd = 3
22346: 0x7f05fcbdc740: 1682664406.200548 [dbus-transport-socket.c(227):check_read_watch] setting read watch enabled = 1
22346: 0x7f05fcbdc740: 1682664406.200561 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 0 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.200576 [dbus-transport-socket.c(512):do_writing] **Not authenticated, not writing anything**
22346: 0x7f05fcbdc740: 1682664406.200592 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 0 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.200610 [dbus-transport-socket.c(1247):socket_do_iteration] ... leaving do_iteration()
22346: 0x7f05fcbdc740: 1682664406.200633 [dbus-transport.c(1020):_dbus_transport_do_iteration] end
22346: 0x7f05fcbdc740: 1682664406.200651 [dbus-connection.c(1147):_dbus_connection_release_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.200669 [dbus-connection.c(1153):_dbus_connection_release_io_path] start connection->io_path_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.200689 [dbus-connection.c(1158):_dbus_connection_release_io_path] unlocking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.200708 [dbus-connection.c(1235):_dbus_connection_do_iteration_unlocked] end
22346: 0x7f05fcbdc740: 1682664406.200733 [dbus-connection.c(4419):_dbus_connection_get_dispatch_status_unlocked] dispatch status = complete is_connected = 1
22346: 0x7f05fcbdc740: 1682664406.200754 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.200781 [dbus-connection.c(390):_dbus_connection_lock] LOCK
22346: 0x7f05fcbdc740: 1682664406.200803 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.200824 [dbus-connection.c(390):_dbus_connection_lock] LOCK
22346: 0x7f05fcbdc740: 1682664406.200852 [dbus-connection.c(3768):_dbus_connection_flush_unlocked] doing iteration in
22346: 0x7f05fcbdc740: 1682664406.200873 [dbus-connection.c(1203):_dbus_connection_do_iteration_unlocked] start
22346: 0x7f05fcbdc740: 1682664406.200890 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.200908 [dbus-connection.c(1074):_dbus_connection_acquire_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.200918 [dbus-connection.c(1078):_dbus_connection_acquire_io_path] start connection->io_path_acquired = 0 timeout = -1
22346: 0x7f05fcbdc740: 1682664406.200935 [dbus-connection.c(1121):_dbus_connection_acquire_io_path] end connection->io_path_acquired = 1 we_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.200953 [dbus-connection.c(1123):_dbus_connection_acquire_io_path] unlocking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.200980 [dbus-connection.c(1126):_dbus_connection_acquire_io_path] LOCK
22346: 0x7f05fcbdc740: 1682664406.201001 [dbus-transport.c(1006):_dbus_transport_do_iteration] Transport iteration flags 0x7 timeout -1 connected = 1
22346: 0x7f05fcbdc740: 1682664406.201016 [dbus-transport-socket.c(1103):socket_do_iteration] iteration flags = readwrite timeout = -1 read_watch = 0x55952fc73980 write_watch = 0x55952fc73930 fd = 3
22346: 0x7f05fcbdc740: 1682664406.201038 [dbus-transport-socket.c(1178):socket_do_iteration] unlock pre poll
22346: 0x7f05fcbdc740: 1682664406.201047 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.201066 [dbus-transport-socket.c(1191):socket_do_iteration] lock post poll
22346: 0x7f05fcbdc740: 1682664406.201084 [dbus-connection.c(390):_dbus_connection_lock] LOCK
22346: 0x7f05fcbdc740: 1682664406.201113 [dbus-transport-socket.c(1212):socket_do_iteration] in iteration, need_read=1 need_write=0
22346: 0x7f05fcbdc740: 1682664406.201141 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 1, do_writing = 0
22346: 0x7f05fcbdc740: 1682664406.201163 [dbus-transport-socket.c(450):do_authentication] client auth state: waiting for input
22346: 0x7f05fcbdc740: 1682664406.201202 [dbus-transport-socket.c(265):read_data_into_auth] read 37 bytes in auth phase
22346: 0x7f05fcbdc740: 1682664406.201213 [dbus-auth.c(2256):process_command] client: got command "OK 812f0b8730831c0ca129cef5643f84bf"
22346: 0x7f05fcbdc740: 1682664406.201244 [dbus-auth.c(1641):process_ok] Got GUID '812f0b8730831c0ca129cef5643f84bf' from the server
22346: 0x7f05fcbdc740: 1682664406.201254 [dbus-auth.c(2203):goto_state] client: going from state WaitingForData to state WaitingForAgreeUnixFD
22346: 0x7f05fcbdc740: 1682664406.201273 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 1, do_writing = 0
22346: 0x7f05fcbdc740: 1682664406.201294 [dbus-transport-socket.c(464):do_authentication] client auth state: bytes to send
22346: 0x7f05fcbdc740: 1682664406.201316 [dbus-transport-socket.c(181):check_read_watch] fd = 3
22346: 0x7f05fcbdc740: 1682664406.201331 [dbus-transport-socket.c(227):check_read_watch] setting read watch enabled = 0
22346: 0x7f05fcbdc740: 1682664406.201353 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 1 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.201364 [dbus-transport-socket.c(751):do_reading] fd = 3
22346: 0x7f05fcbdc740: 1682664406.201380 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 1 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.201394 [dbus-transport-socket.c(1247):socket_do_iteration] ... leaving do_iteration()
22346: 0x7f05fcbdc740: 1682664406.201420 [dbus-transport.c(1020):_dbus_transport_do_iteration] end
22346: 0x7f05fcbdc740: 1682664406.201439 [dbus-connection.c(1147):_dbus_connection_release_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.201460 [dbus-connection.c(1153):_dbus_connection_release_io_path] start connection->io_path_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.201479 [dbus-connection.c(1158):_dbus_connection_release_io_path] unlocking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.201492 [dbus-connection.c(1235):_dbus_connection_do_iteration_unlocked] end
22346: 0x7f05fcbdc740: 1682664406.201514 [dbus-connection.c(3768):_dbus_connection_flush_unlocked] doing iteration in
22346: 0x7f05fcbdc740: 1682664406.201529 [dbus-connection.c(1203):_dbus_connection_do_iteration_unlocked] start
22346: 0x7f05fcbdc740: 1682664406.201542 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.201560 [dbus-connection.c(1074):_dbus_connection_acquire_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.201576 [dbus-connection.c(1078):_dbus_connection_acquire_io_path] start connection->io_path_acquired = 0 timeout = -1
22346: 0x7f05fcbdc740: 1682664406.201603 [dbus-connection.c(1121):_dbus_connection_acquire_io_path] end connection->io_path_acquired = 1 we_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.201622 [dbus-connection.c(1123):_dbus_connection_acquire_io_path] unlocking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.201638 [dbus-connection.c(1126):_dbus_connection_acquire_io_path] LOCK
22346: 0x7f05fcbdc740: 1682664406.201657 [dbus-transport.c(1006):_dbus_transport_do_iteration] Transport iteration flags 0x7 timeout -1 connected = 1
22346: 0x7f05fcbdc740: 1682664406.201680 [dbus-transport-socket.c(1103):socket_do_iteration] iteration flags = readwrite timeout = -1 read_watch = 0x55952fc73980 write_watch = 0x55952fc73930 fd = 3
22346: 0x7f05fcbdc740: 1682664406.201702 [dbus-transport-socket.c(1178):socket_do_iteration] unlock pre poll
22346: 0x7f05fcbdc740: 1682664406.201714 [dbus-connection.c(406):_dbus_connection_unlock] UNLOCK
22346: 0x7f05fcbdc740: 1682664406.201737 [dbus-transport-socket.c(1191):socket_do_iteration] lock post poll
22346: 0x7f05fcbdc740: 1682664406.201758 [dbus-connection.c(390):_dbus_connection_lock] LOCK
22346: 0x7f05fcbdc740: 1682664406.201780 [dbus-transport-socket.c(1212):socket_do_iteration] in iteration, need_read=0 need_write=1
22346: 0x7f05fcbdc740: 1682664406.201805 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 0, do_writing = 1
22346: 0x7f05fcbdc740: 1682664406.201826 [dbus-transport-socket.c(464):do_authentication] client auth state: bytes to send
22346: 0x7f05fcbdc740: 1682664406.201857 [dbus-auth.c(2575):_dbus_auth_bytes_sent] client: Sent 19 bytes of: NEGOTIATE_UNIX_FD
22346: 0x7f05fcbdc740: 1682664406.201866 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 0, do_writing = 1
22346: 0x7f05fcbdc740: 1682664406.201893 [dbus-transport-socket.c(450):do_authentication] client auth state: waiting for input
22346: 0x7f05fcbdc740: 1682664406.201915 [dbus-transport-socket.c(181):check_read_watch] fd = 3
22346: 0x7f05fcbdc740: 1682664406.201936 [dbus-transport-socket.c(227):check_read_watch] setting read watch enabled = 1
22346: 0x7f05fcbdc740: 1682664406.201958 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 0 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.201981 [dbus-transport-socket.c(512):do_writing] Not authenticated, not writing anything
22346: 0x7f05fcbdc740: 1682664406.202005 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 0 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.202032 [dbus-transport-socket.c(1247):socket_do_iteration] ... leaving do_iteration()
22346: 0x7f05fcbdc740: 1682664406.202120 [dbus-connection.c(3768):_dbus_connection_flush_unlocked] doing iteration in
22346: 0x7f05fcbdc740: 1682664406.202178 [dbus-connection.c(1074):_dbus_connection_acquire_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.202199 [dbus-connection.c(1078):_dbus_connection_acquire_io_path] start connection->io_path_acquired = 0 timeout = -1
22346: 0x7f05fcbdc740: 1682664406.202227 [dbus-connection.c(1121):_dbus_connection_acquire_io_path] end connection->io_path_acquired = 1 we_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.202273 [dbus-transport.c(1006):_dbus_transport_do_iteration] Transport iteration flags 0x7 timeout -1 connected = 1
22346: 0x7f05fcbdc740: 1682664406.202291 [dbus-transport-socket.c(1103):socket_do_iteration] iteration flags = readwrite timeout = -1 read_watch = 0x55952fc73980 write_watch = 0x55952fc73930 fd = 3
22346: 0x7f05fcbdc740: 1682664406.202380 [dbus-transport-socket.c(1212):socket_do_iteration] in iteration, need_read=1 need_write=0
22346: 0x7f05fcbdc740: 1682664406.202400 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 1, do_writing = 0
22346: 0x7f05fcbdc740: 1682664406.202422 [dbus-transport-socket.c(450):do_authentication] client auth state: waiting for input
22346: 0x7f05fcbdc740: 1682664406.202446 [dbus-transport-socket.c(265):read_data_into_auth] read 15 bytes in auth phase
22346: 0x7f05fcbdc740: 1682664406.202467 [dbus-auth.c(2256):process_command] client: got command "AGREE_UNIX_FD"
22346: 0x7f05fcbdc740: 1682664406.202490 [dbus-auth.c(2139):handle_client_state_waiting_for_agree_unix_fd] Successfully negotiated UNIX FD passing
22346: 0x7f05fcbdc740: 1682664406.202508 [dbus-auth.c(2203):goto_state] client: going from state WaitingForAgreeUnixFD to state Authenticated
22346: 0x7f05fcbdc740: 1682664406.202520 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 1, do_writing = 0
22346: 0x7f05fcbdc740: 1682664406.202563 [dbus-transport-socket.c(464):do_authentication] client auth state: bytes to send
22346: 0x7f05fcbdc740: 1682664406.202587 [dbus-transport-socket.c(181):check_read_watch] fd = 3
22346: 0x7f05fcbdc740: 1682664406.202601 [dbus-transport-socket.c(227):check_read_watch] setting read watch enabled = 0
22346: 0x7f05fcbdc740: 1682664406.202611 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 1 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.202627 [dbus-transport-socket.c(751):do_reading] fd = 3
22346: 0x7f05fcbdc740: 1682664406.202640 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 1 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.202651 [dbus-transport-socket.c(1247):socket_do_iteration] ... leaving do_iteration()
22346: 0x7f05fcbdc740: 1682664406.202664 [dbus-transport.c(1020):_dbus_transport_do_iteration] end
22346: 0x7f05fcbdc740: 1682664406.202678 [dbus-connection.c(1147):_dbus_connection_release_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.202688 [dbus-connection.c(1153):_dbus_connection_release_io_path] start connection->io_path_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.202695 [dbus-connection.c(1158):_dbus_connection_release_io_path] unlocking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.202707 [dbus-connection.c(1235):_dbus_connection_do_iteration_unlocked] end
22346: 0x7f05fcbdc740: 1682664406.202725 [dbus-connection.c(3768):_dbus_connection_flush_unlocked] doing iteration in
22346: 0x7f05fcbdc740: 1682664406.202739 [dbus-connection.c(1203):_dbus_connection_do_iteration_unlocked] start
22346: 0x7f05fcbdc740: 1682664406.202783 [dbus-connection.c(1078):_dbus_connection_acquire_io_path] start connection->io_path_acquired = 0 timeout = -1
22346: 0x7f05fcbdc740: 1682664406.202799 [dbus-connection.c(1121):_dbus_connection_acquire_io_path] end connection->io_path_acquired = 1 we_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.202837 [dbus-transport.c(1006):_dbus_transport_do_iteration] Transport iteration flags 0x7 timeout -1 connected = 1
22346: 0x7f05fcbdc740: 1682664406.202853 [dbus-transport-socket.c(1103):socket_do_iteration] iteration flags = readwrite timeout = -1 read_watch = 0x55952fc73980 write_watch = 0x55952fc73930 fd = 3
22346: 0x7f05fcbdc740: 1682664406.202874 [dbus-transport-socket.c(1178):socket_do_iteration] unlock pre poll
22346: 0x7f05fcbdc740: 1682664406.202912 [dbus-transport-socket.c(1191):socket_do_iteration] lock post poll
22346: 0x7f05fcbdc740: 1682664406.202940 [dbus-transport-socket.c(1212):socket_do_iteration] in iteration, need_read=0 need_write=1
22346: 0x7f05fcbdc740: 1682664406.202959 [dbus-transport-socket.c(349):exchange_credentials] exchange_credentials: do_reading = 0, do_writing = 1
22346: 0x7f05fcbdc740: 1682664406.202977 [dbus-transport-socket.c(464):do_authentication] client auth state: bytes to send
22346: 0x7f05fcbdc740: 1682664406.203000 [dbus-auth.c(2575):_dbus_auth_bytes_sent] client: Sent 7 bytes of: BEGIN
22346: 0x7f05fcbdc740: 1682664406.203011 [dbus-transport-socket.c(181):check_read_watch] fd = 3
22346: 0x7f05fcbdc740: 1682664406.203026 [dbus-transport-socket.c(227):check_read_watch] setting read watch enabled = 1
22346: 0x7f05fcbdc740: 1682664406.203038 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 1 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.203055 [dbus-transport-socket.c(165):check_write_watch] check_write_watch(): needed = 1 on connection 0x55952fc73f80 watch 0x55952fc73930 fd = 3 outgoing messages exist 1
22346: 0x7f05fcbdc740: 1682664406.203069 [dbus-transport-socket.c(1247):socket_do_iteration] ... leaving do_iteration()
22346: 0x7f05fcbdc740: 1682664406.203076 [dbus-transport.c(1020):_dbus_transport_do_iteration] end
22346: 0x7f05fcbdc740: 1682664406.203094 [dbus-connection.c(1147):_dbus_connection_release_io_path] locking io_path_mutex
22346: 0x7f05fcbdc740: 1682664406.203110 [dbus-connection.c(1153):_dbus_connection_release_io_path] start connection->io_path_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.203150 [dbus-connection.c(3768):_dbus_connection_flush_unlocked] doing iteration in
22346: 0x7f05fcbdc740: 1682664406.203206 [dbus-connection.c(1078):_dbus_connection_acquire_io_path] start connection->io_path_acquired = 0 timeout = -1
22346: 0x7f05fcbdc740: 1682664406.203215 [dbus-connection.c(1121):_dbus_connection_acquire_io_path] end connection->io_path_acquired = 1 we_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.203256 [dbus-transport.c(1006):_dbus_transport_do_iteration] Transport iteration flags 0x7 timeout -1 connected = 1
22346: 0x7f05fcbdc740: 1682664406.203272 [dbus-transport-socket.c(1103):socket_do_iteration] iteration flags = readwrite timeout = -1 read_watch = 0x55952fc73980 write_watch = 0x55952fc73930 fd = 3
22346: 0x7f05fcbdc740: 1682664406.203291 [dbus-transport-socket.c(1178):socket_do_iteration] unlock pre poll
22346: 0x7f05fcbdc740: 1682664406.203320 [dbus-transport-socket.c(1191):socket_do_iteration] lock post poll
22346: 0x7f05fcbdc740: 1682664406.203338 [dbus-transport-socket.c(1212):socket_do_iteration] in iteration, need_read=1 need_write=1
22346: 0x7f05fcbdc740: 1682664406.203352 [dbus-transport-socket.c(751):do_reading] fd = 3
22346: 0x7f05fcbdc740: 1682664406.203369 [dbus-transport-socket.c(181):check_read_watch] fd = 3
22346: 0x7f05fcbdc740: 1682664406.203378 [dbus-transport-socket.c(227):check_read_watch] setting read watch enabled = 1
22346: 0x7f05fcbdc740: 1682664406.203403 [dbus-transport-socket.c(897):do_reading] Disconnected from remote app
22346: 0x7f05fcbdc740: 1682664406.203463 [dbus-watch.c(686):dbus_watch_set_data] Setting watch fd -1 data to data = (nil) function = (nil) from data = (nil) function = (nil)
22346: 0x7f05fcbdc740: 1682664406.203479 [dbus-watch.c(686):dbus_watch_set_data] Setting watch fd -1 data to data = (nil) function = (nil) from data = (nil) function = (nil)
22346: 0x7f05fcbdc740: 1682664406.203521 [dbus-transport-socket.c(518):do_writing] Not connected, not writing anything
22346: 0x7f05fcbdc740: 1682664406.203534 [dbus-transport-socket.c(1247):socket_do_iteration] ... leaving do_iteration()
22346: 0x7f05fcbdc740: 1682664406.203575 [dbus-connection.c(1153):_dbus_connection_release_io_path] start connection->io_path_acquired = 1
22346: 0x7f05fcbdc740: 1682664406.203619 [dbus-connection.c(3779):_dbus_connection_flush_unlocked] middle
22346: 0x7f05fcbdc740: 1682664406.203637 [dbus-transport.c(1098):recover_unused_bytes] 0 unused bytes sent to message loader
22346: 0x7f05fcbdc740: 1682664406.203654 [dbus-connection.c(4419):_dbus_connection_get_dispatch_status_unlocked] dispatch status = complete is_connected = 0
22346: 0x7f05fcbdc740: 1682664406.203671 [dbus-connection.c(4364):notify_disconnected_unlocked] Dropping 1 outgoing messages since we're disconnected
22346: 0x7f05fcbdc740: 1682664406.203709 [dbus-connection.c(660):_dbus_connection_message_sent_unlocked] Message 0x55952fc74440 (method_call /org/freedesktop/DBus org.freedesktop.DBus Hello '') removed from outgoing queue 0x55952fc73f80, 0 left to send
22346: 0x7f05fcbdc740: 1682664406.203751 [dbus-connection.c(4381):notify_disconnected_and_dispatch_complete_unlocked] Sending disconnect message
22346: 0x7f05fcbdc740: 1682664406.203778 [dbus-connection.c(560):_dbus_connection_queue_synthesized_message_link] Synthesized message 0x55952fc74640 added to incoming queue 0x55952fc73f80, 1 incoming
22346: 0x7f05fcbdc740: 1682664406.203904 [dbus-connection.c(560):_dbus_connection_queue_synthesized_message_link] Synthesized message 0x55952fc741a0 added to incoming queue 0x55952fc73f80, 2 incoming
22346: 0x7f05fcbdc740: 1682664406.203927 [dbus-connection.c(2416):_dbus_connection_block_pending_call] dbus_connection_send_with_reply_and_block(): will block 25000 milliseconds for reply serial 1 from 780639 sec 483758 usec
22346: 0x7f05fcbdc740: 1682664406.203955 [dbus-connection.c(2346):check_for_reply_and_update_dispatch_unlocked] checked for reply
22346: 0x7f05fcbdc740: 1682664406.203972 [dbus-connection.c(2348):check_for_reply_and_update_dispatch_unlocked] dbus_connection_send_with_reply_and_block(): got reply
22346: 0x7f05fcbdc740: 1682664406.203989 [dbus-pending-call.c(197):_dbus_pending_call_set_reply_unlocked] handing message 0x55952fc74640 (error) to pending call serial 1
22346: 0x7f05fcbdc740: 1682664406.204148 [dbus-dataslot.c(175):_dbus_data_slot_allocator_free] Freeing slot 0 on allocator 0x7f05fb6c8f10 total 1 allocated 1 used
dbus[22346]: arguments to dbus_set_error_from_message() were incorrect, assertion "(error) == NULL || !dbus_error_is_set ((error))" failed in file dbus-message.c line 4078.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)
```
recently I want to learn commonAPI, so I installed libdbus (version 1.12.18) to commonapi_dbus_runtime, but running the server starts to get an error, the error print about DBUS is as follows:https://gitlab.freedesktop.org/dbus/dbus/-/issues/453Build fails on master on ubuntu 22.04 error: conflicting types for ‘close_ran...2023-06-07T12:08:05ZAhmed AbdelfattahBuild fails on master on ubuntu 22.04 error: conflicting types for ‘close_range’; have ‘int(unsigned int, unsigned int, unsigned int)## To reproduce
Steps to reproduce the behavior:
1. Clone the repo to the latest master : hash at time of the bug is 35ade3c8f7aca16d1c6289828a2597859d1c503b
2. Build on Ubuntu using the provided [cmake readme file](https://gitlab.freed...## To reproduce
Steps to reproduce the behavior:
1. Clone the repo to the latest master : hash at time of the bug is 35ade3c8f7aca16d1c6289828a2597859d1c503b
2. Build on Ubuntu using the provided [cmake readme file](https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/README.cmake)
## Expected result
Build passes
## Actual result
Build fails with error
```
/home/abdelah/workspace/dbus/dbus/dbus-sysdeps-unix.c:154:1: error: conflicting types for ‘close_range’; have ‘int(unsigned int, unsigned int, unsigned int)’
154 | close_range (unsigned int first,
| ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/abdelah/workspace/dbus/dbus/dbus-sysdeps-unix.c:46:
/usr/include/unistd.h:1208:12: note: previous declaration of ‘close_range’ with type ‘int(unsigned int, unsigned int, int)’
1208 | extern int close_range (unsigned int __fd, unsigned int __max_fd,
| ^~~~~~~~~~~
make[2]: *** [dbus/CMakeFiles/dbus-1.dir/build.make:706: dbus/CMakeFiles/dbus-1.dir/dbus-sysdeps-unix.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:377: dbus/CMakeFiles/dbus-1.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
```Simon McVittieSimon McVittiehttps://gitlab.freedesktop.org/dbus/dbus/-/issues/452dbus-send manual page does not document return value.2023-03-15T19:05:59ZBram Stolkdbus-send manual page does not document return value.It appears that dbus-send will return 0 on success and 1 on failure.
However, this is not documented in the manual page for dbus-send.
Tested on:
OS: Ubuntu 22.10
Version: 1.14.0-2ubuntu3
To reproduce:
$ man dbus-sendIt appears that dbus-send will return 0 on success and 1 on failure.
However, this is not documented in the manual page for dbus-send.
Tested on:
OS: Ubuntu 22.10
Version: 1.14.0-2ubuntu3
To reproduce:
$ man dbus-sendhttps://gitlab.freedesktop.org/dbus/dbus/-/issues/451Add SocketMode=0600 to the per-user dbus.socket2023-05-16T10:50:08ZCunlong LiAdd SocketMode=0600 to the per-user dbus.socketThe default SocketMode for systemd.socket is 0666, See: [SocketMode](https://www.freedesktop.org/software/systemd/man/systemd.socket.html#SocketMode=), so the mode of per-user dbus.socket (/run/user/UID/dbus) is set to 0666. However, the...The default SocketMode for systemd.socket is 0666, See: [SocketMode](https://www.freedesktop.org/software/systemd/man/systemd.socket.html#SocketMode=), so the mode of per-user dbus.socket (/run/user/UID/dbus) is set to 0666. However, the runtime directory is set to 0700 by systemd, the last two `66`s are not needed IMHO. Please consider change it to 0600 by adding SocketMode=0600 in dbus.socket.https://gitlab.freedesktop.org/dbus/dbus/-/issues/450Line references path below legacy directory /var/run/, updating /var/run/dbus...2023-02-28T20:41:48ZhongjinghaoLine references path below legacy directory /var/run/, updating /var/run/dbus/containers → /run/dbus/containersWhen I installed dbus1.14, systemd provided the following print:
``` shell
/usr/lib/tmpfiles.d/dbus.conf:13: Line references path below legacy directory /var/run/, updating /var/run/dbus/containers → /run/dbus/containers; please update t...When I installed dbus1.14, systemd provided the following print:
``` shell
/usr/lib/tmpfiles.d/dbus.conf:13: Line references path below legacy directory /var/run/, updating /var/run/dbus/containers → /run/dbus/containers; please update the tmpfiles.d/ drop-in file accordingly.
```
Is it necessary to change "@EXPANDED_RUNSTATEDIR@" to "@EXPANDED_LOCALSTATEDIR@" in bus/tmpfiles.d/dbus.conf.in?https://gitlab.freedesktop.org/dbus/dbus/-/issues/449The `$XDG_RUNTIME_DIR/bus` fallback2023-10-24T11:14:02ZHugoThe `$XDG_RUNTIME_DIR/bus` fallbackI've noticed that some implementations (including the on in this repository) use `$XDG_RUNTIME_DIR/bus` as a fallback when `$DBUS_SESSION_BUS_ADDRESS` is unset. I don't see this mentioned in the D-Bus specification, but having a well-kno...I've noticed that some implementations (including the on in this repository) use `$XDG_RUNTIME_DIR/bus` as a fallback when `$DBUS_SESSION_BUS_ADDRESS` is unset. I don't see this mentioned in the D-Bus specification, but having a well-known fallback like this is very convenient.
I think it might be a good idea to add a note on this fallback to [the relevant section of the dbus spec](https://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-types) and make it part of the standard.https://gitlab.freedesktop.org/dbus/dbus/-/issues/448The nonce-tcp transport is unusable with dbus-daemon configured to run as a s...2023-02-10T12:40:33ZmartyoneThe nonce-tcp transport is unusable with dbus-daemon configured to run as a specific user## To reproduce
Steps to reproduce the behavior:
1. Ensure the nonce-tcp transport is enabled for system bus
2. Ensure the system bus runs as a specific user (usually "messagebus")
3. Try to connect to the bus over the nonce-tcp transpo...## To reproduce
Steps to reproduce the behavior:
1. Ensure the nonce-tcp transport is enabled for system bus
2. Ensure the system bus runs as a specific user (usually "messagebus")
3. Try to connect to the bus over the nonce-tcp transport
## Expected result
Connection succeeds.
## Actual result
Connection hangs, dbus-daemon CPU utilization keeps on 100%.
## Additional context
The nonce file is created before _dbus_change_to_daemon_user is called and so it is not readable to the daemon itself at the time a connection attempt occurs.https://gitlab.freedesktop.org/dbus/dbus/-/issues/447fatal: detected dubious ownership in repository at '/builds/*/dbus'2023-03-08T19:44:39ZSimon McVittiefatal: detected dubious ownership in repository at '/builds/*/dbus'As @rhabacker points out, many of our CI jobs are failing as described in https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/485.
I think the solution to this is to stop swapping between uid 0 and `user`. We originally did ...As @rhabacker points out, many of our CI jobs are failing as described in https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/485.
I think the solution to this is to stop swapping between uid 0 and `user`. We originally did this as part of our Travis-CI integration, which runs the build as an ordinary user with the ability to `sudo` to root; but Gitlab-CI starts our container as uid 0, so we might as well use uid 0 for the whole build, similar to dbus/dbus-python@27e1cbc158bdd29ad0ca81a9377caeafed9d6dad.
To stop the CI runners from reusing cached `dbus/` directories with the wrong ownership, we will also need the equivalent of dbus/dbus-python@5c2282807922181461c90b30a04b376de73fb31b.
While we're there, we might as well also do the equivalent of dbus/dbus-python@4dcd5d38c4d9dc169234e308049a3bebcf01c0de.Simon McVittieSimon McVittiehttps://gitlab.freedesktop.org/dbus/dbus/-/issues/446Data race in DBusCounter when accessing DBus api functions from different thr...2023-01-26T16:02:52ZRalf HabackerData race in DBusCounter when accessing DBus api functions from different threadsThe problems with the use of threads recorded with https://gitlab.freedesktop.org/dbus/dbus/-/issues/426 also include problems with data races, which are recorded or documented here.
Detailed call stacks are available at https://bugrep...The problems with the use of threads recorded with https://gitlab.freedesktop.org/dbus/dbus/-/issues/426 also include problems with data races, which are recorded or documented here.
Detailed call stacks are available at https://bugreports.qt.io/browse/QTBUG-108784, two of which are included here as examples.
<details>
<summary>Detailed call stack for data race related to _dbus_counter_adjust_size()</summary>
<pre>
WARNING: ThreadSanitizer: data race (pid=2392)
Write of size 8 at 0x7b18000039c8 by main thread (mutexes: write M180842226518074512):
#0 _dbus_counter_adjust_size ../dbus/dbus/dbus-resources.c:176 (libdbus-1.so.3+0x4d808)
#1 free_counter ../dbus/dbus/dbus-message.c:635 (libdbus-1.so.3+0x3eb32)
#2 _dbus_list_foreach ../dbus/dbus/dbus-list.c:798 (libdbus-1.so.3+0x64efb)
#3 dbus_message_cache_or_finalize ../dbus/dbus/dbus-message.c:662 (libdbus-1.so.3+0x3ebd4)
#4 dbus_message_unref ../dbus/dbus/dbus-message.c:1750 (libdbus-1.so.3+0x41c2e)
#5 q_dbus_message_unref /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbus_symbols_p.h:377 (libQt6DBus.so.6+0xc081d)
#6 QDBusMessagePrivate::~QDBusMessagePrivate() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusmessage.cpp:49 (libQt6DBus.so.6+0xc081d)
#7 QDBusMessage::~QDBusMessage() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusmessage.cpp:541 (libQt6DBus.so.6+0xc07dc)
#8 QDBusConnectionPrivate::getNameOwnerNoCache(QString const&) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusintegrator.cpp:2546 (libQt6DBus.so.6+0x883d0)
#9 QDBusConnectionPrivate::getNameOwner(QString const&) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusintegrator.cpp:2520 (libQt6DBus.so.6+0x8991e)
#10 QDBusAbstractInterfacePrivate::initOwnerTracking() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusabstractinterface.cpp:102 (libQt6DBus.so.6+0x3086c)
#11 QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const*, QDBusConnection const&, QObject*) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusabstractinterface.cpp:308 (libQt6DBus.so.6+0x31943)
#12 QIBusProxy::QIBusProxy(QString const&, QString const&, QDBusConnection const&, QObject*) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusproxy.cpp:23 (libibusplatforminputcontextplugin.so+0x29ade)
#13 QIBusPlatformInputContextPrivate::createBusProxy() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:637 (libibusplatforminputcontextplugin.so+0x1d2c4)
#14 QIBusPlatformInputContextPrivate::initBus() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:614 (libibusplatforminputcontextplugin.so+0x20b3b)
#15 QIBusPlatformInputContextPrivate::QIBusPlatformInputContextPrivate() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:602 (libibusplatforminputcontextplugin.so+0x21b95)
#16 QIBusPlatformInputContext::QIBusPlatformInputContext() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:82 (libibusplatforminputcontextplugin.so+0x21d18)
#17 QIbusPlatformInputContextPlugin::create(QString const&, QList<QString> const&) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/main.cpp:31 (libibusplatforminputcontextplugin.so+0xc4ea)
#18 QPlatformInputContext* qLoadPlugin<QPlatformInputContext, QPlatformInputContextPlugin, QList<QString>&>(QFactoryLoader const*, QString const&, QList<QString>&) /home/linux/qt6_dev/qt6-build/include/QtCore/6.5.0/QtCore/private/../../../../../../qt6/qtbase/src/corelib/plugin/qfactoryloader_p.h:99 (libQt6Gui.so.6+0x295235)
#19 QPlatformInputContextFactory::create(QString const&) /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qplatforminputcontextfactory.cpp:45 (libQt6Gui.so.6+0x294388)
#20 QXcbIntegration::initialize() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:343 (libQt6XcbQpa.so.6+0x9b16b)
#21 QGuiApplicationPrivate::eventDispatcherReady() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1503 (libQt6Gui.so.6+0x224c56)
#22 QCoreApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:824 (libQt6Core.so.6+0x1b07c5)
#23 QGuiApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1514 (libQt6Gui.so.6+0x22ad1f)
#24 QApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:466 (libQt6Widgets.so.6+0x194506)
#25 QApplication::QApplication(int&, char**, int) /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:454 (libQt6Widgets.so.6+0x194613)
#26 main /home/linux/qt6_dev/qt_tsan_tests_dev/qt_tsan_tests/main.cpp:8 (qt_tsan_tests+0x31c4)
Previous read of size 8 at 0x7b18000039c8 by thread T1 (mutexes: write M181123701494785360):
#0 _dbus_counter_get_size_value ../dbus/dbus/dbus-resources.c:276 (libdbus-1.so.3+0x4dcca)
#1 _dbus_transport_get_dispatch_status ../dbus/dbus/dbus-transport.c:1127 (libdbus-1.so.3+0x5cdf2)
#2 _dbus_transport_queue_messages ../dbus/dbus/dbus-transport.c:1173 (libdbus-1.so.3+0x5d0d3)
#3 _dbus_connection_get_dispatch_status_unlocked ../dbus/dbus/dbus-connection.c:4256 (libdbus-1.so.3+0x2ad9f)
#4 dbus_connection_dispatch ../dbus/dbus/dbus-connection.c:4589 (libdbus-1.so.3+0x2b5cd)
#5 q_dbus_connection_dispatch /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbus_symbols_p.h:176 (libQt6DBus.so.6+0x85c11)
#6 QDBusConnectionPrivate::doDispatch() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusintegrator.cpp:1171 (libQt6DBus.so.6+0x85c11)
#7 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (QDBusConnectionPrivate::*)()>::call(void (QDBusConnectionPrivate::*)(), QDBusConnectionPrivate*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:135 (libQt6DBus.so.6+0x8f187)
#8 void QtPrivate::FunctionPointer<void (QDBusConnectionPrivate::*)()>::call<QtPrivate::List<>, void>(void (QDBusConnectionPrivate::*)(), QDBusConnectionPrivate*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:172 (libQt6DBus.so.6+0x8f187)
#9 QtPrivate::QSlotObject<void (QDBusConnectionPrivate::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:383 (libQt6DBus.so.6+0x8f187)
#10 QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:363 (libQt6Core.so.6+0x23d247)
#11 QMetaCallEvent::placeMetaCall(QObject*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:608 (libQt6Core.so.6+0x23d247)
#12 QObject::event(QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:1378 (libQt6Core.so.6+0x24562a)
#13 QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1197 (libQt6Core.so.6+0x1a341e)
#14 doNotify /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1126 (libQt6Core.so.6+0x1a6843)
#15 QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1029 (libQt6Core.so.6+0x1a6a71)
#16 QCoreApplication::sendEvent(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1448 (libQt6Core.so.6+0x1a6b93)
#17 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1810 (libQt6Core.so.6+0x1abdc4)
#18 QCoreApplication::sendPostedEvents(QObject*, int) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1669 (libQt6Core.so.6+0x1abff7)
#19 postEventSourceDispatch /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:243 (libQt6Core.so.6+0x685bbe)
#20 g_main_dispatch ../glib/glib/gmain.c:3417 (libglib-2.0.so.0+0x8523f)
#21 g_main_context_dispatch ../glib/glib/gmain.c:4135 (libglib-2.0.so.0+0x8706a)
#22 g_main_context_iterate ../glib/glib/gmain.c:4211 (libglib-2.0.so.0+0x87354)
#23 g_main_context_iteration ../glib/glib/gmain.c:4276 (libglib-2.0.so.0+0x87464)
#24 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:393 (libQt6Core.so.6+0x684d34)
#25 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:100 (libQt6Core.so.6+0x1bd103)
#26 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:182 (libQt6Core.so.6+0x1bdff6)
#27 QThread::exec() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread.cpp:578 (libQt6Core.so.6+0x3beebb)
#28 QDBusConnectionManager::run() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:123 (libQt6DBus.so.6+0x4bd52)
#29 operator() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:321 (libQt6Core.so.6+0x4930fc)
#30 terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:257 (libQt6Core.so.6+0x493190)
#31 QThreadPrivate::start(void*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:280 (libQt6Core.so.6+0x4939f6)
Location is heap block of size 88 at 0x7b18000039c0 allocated by thread T1:
#0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:672 (libtsan.so.0+0x31edc)
#1 dbus_malloc0 ../dbus/dbus/dbus-memory.c:563 (libdbus-1.so.3+0x67423)
#2 _dbus_counter_new ../dbus/dbus/dbus-resources.c:93 (libdbus-1.so.3+0x4d58c)
#3 _dbus_transport_init_base ../dbus/dbus/dbus-transport.c:127 (libdbus-1.so.3+0x5b11b)
#4 _dbus_transport_new_for_socket ../dbus/dbus/dbus-transport-socket.c:1328 (libdbus-1.so.3+0x5a58e)
#5 _dbus_transport_new_for_domain_socket ../dbus/dbus/dbus-transport-socket.c:1555 (libdbus-1.so.3+0x5ad2c)
#6 _dbus_transport_open_unix_socket ../dbus/dbus/dbus-transport-socket.c:1623 (libdbus-1.so.3+0x5af3b)
#7 _dbus_transport_open ../dbus/dbus/dbus-transport.c:397 (libdbus-1.so.3+0x5bb9a)
#8 connection_try_from_address_entry ../dbus/dbus/dbus-connection.c:1818 (libdbus-1.so.3+0x26a41)
#9 _dbus_connection_open_internal ../dbus/dbus/dbus-connection.c:1887 (libdbus-1.so.3+0x26ca2)
#10 dbus_connection_open_private ../dbus/dbus/dbus-connection.c:2670 (libdbus-1.so.3+0x280f9)
#11 q_dbus_connection_open_private /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbus_symbols_p.h:184 (libQt6DBus.so.6+0x52a70)
#12 QDBusConnectionManager::executeConnectionRequest(QDBusConnectionManager::ConnectionRequestData*) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:217 (libQt6DBus.so.6+0x52a70)
#13 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QDBusConnectionManager::ConnectionRequestData*>, void, void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*)>::call(void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*), QDBusConnectionManager*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:135 (libQt6DBus.so.6+0x554fe)
#14 void QtPrivate::FunctionPointer<void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*)>::call<QtPrivate::List<QDBusConnectionManager::ConnectionRequestData*>, void>(void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*), QDBusConnectionManager*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:172 (libQt6DBus.so.6+0x554fe)
#15 QtPrivate::QSlotObject<void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*), QtPrivate::List<QDBusConnectionManager::ConnectionRequestData*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:383 (libQt6DBus.so.6+0x554fe)
#16 QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:363 (libQt6Core.so.6+0x23d247)
#17 QMetaCallEvent::placeMetaCall(QObject*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:608 (libQt6Core.so.6+0x23d247)
#18 QObject::event(QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:1378 (libQt6Core.so.6+0x24562a)
#19 QThread::event(QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread.cpp:1105 (libQt6Core.so.6+0x3bf12c)
#20 QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1197 (libQt6Core.so.6+0x1a341e)
#21 doNotify /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1126 (libQt6Core.so.6+0x1a6843)
#22 QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1029 (libQt6Core.so.6+0x1a6a71)
#23 QCoreApplication::sendEvent(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1448 (libQt6Core.so.6+0x1a6b93)
#24 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1810 (libQt6Core.so.6+0x1abdc4)
#25 QCoreApplication::sendPostedEvents(QObject*, int) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1669 (libQt6Core.so.6+0x1abff7)
#26 postEventSourceDispatch /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:243 (libQt6Core.so.6+0x685bbe)
#27 g_main_dispatch ../glib/glib/gmain.c:3417 (libglib-2.0.so.0+0x8523f)
#28 g_main_context_dispatch ../glib/glib/gmain.c:4135 (libglib-2.0.so.0+0x8706a)
#29 g_main_context_iterate ../glib/glib/gmain.c:4211 (libglib-2.0.so.0+0x87354)
#30 g_main_context_iteration ../glib/glib/gmain.c:4276 (libglib-2.0.so.0+0x87464)
#31 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:393 (libQt6Core.so.6+0x684d34)
#32 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:100 (libQt6Core.so.6+0x1bd103)
#33 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:182 (libQt6Core.so.6+0x1bdff6)
#34 QThread::exec() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread.cpp:578 (libQt6Core.so.6+0x3beebb)
#35 QDBusConnectionManager::run() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:123 (libQt6DBus.so.6+0x4bd52)
#36 operator() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:321 (libQt6Core.so.6+0x4930fc)
#37 terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:257 (libQt6Core.so.6+0x493190)
#38 QThreadPrivate::start(void*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:280 (libQt6Core.so.6+0x4939f6)
Mutex M180842226518074512 is already destroyed.
Mutex M181123701494785360 is already destroyed.
Thread T1 'QDBusConnection' (tid=2394, running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:969 (libtsan.so.0+0x605b8)
#1 QThread::start(QThread::Priority) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:707 (libQt6Core.so.6+0x491f6b)
#2 QDBusConnectionManager::QDBusConnectionManager() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:96 (libQt6DBus.so.6+0x4c931)
#3 innerFunction /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:40 (libQt6DBus.so.6+0x4f632)
#4 Holder /home/linux/qt6_dev/qt6/qtbase/src/corelib/global/qglobalstatic.h:37 (libQt6DBus.so.6+0x4f632)
#5 instance /home/linux/qt6_dev/qt6/qtbase/src/corelib/global/qglobalstatic.h:91 (libQt6DBus.so.6+0x4f632)
#6 operator() /home/linux/qt6_dev/qt6/qtbase/src/corelib/global/qglobalstatic.h:73 (libQt6DBus.so.6+0x4f632)
#7 QDBusConnection::sessionBus() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:1133 (libQt6DBus.so.6+0x4f632)
#8 QGenericUnixServices::QGenericUnixServices() /home/linux/qt6_dev/qt6/qtbase/src/gui/platform/unix/qgenericunixservices.cpp:359 (libQt6Gui.so.6+0xb0a4cd)
#9 QXcbIntegration::QXcbIntegration(QList<QString> const&, int&, char**) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:99 (libQt6XcbQpa.so.6+0x9d6e9)
#10 QXcbIntegrationPlugin::create(QString const&, QList<QString> const&, int&, char**) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforms/xcb/qxcbmain.cpp:22 (libqxcb.so+0x2490)
#11 QPlatformIntegration* qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin, QList<QString> const&, int&, char**&>(QFactoryLoader const*, QString const&, QList<QString> const&, int&, char**&) /home/linux/qt6_dev/qt6-build/include/QtCore/6.5.0/QtCore/private/../../../../../../qt6/qtbase/src/corelib/plugin/qfactoryloader_p.h:99 (libQt6Gui.so.6+0x2967d5)
#12 QPlatformIntegrationFactory::create(QString const&, QList<QString> const&, int&, char**, QString const&) /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qplatformintegrationfactory.cpp:23 (libQt6Gui.so.6+0x296513)
#13 init_platform /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1191 (libQt6Gui.so.6+0x220b92)
#14 QGuiApplicationPrivate::createPlatformIntegration() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1471 (libQt6Gui.so.6+0x224585)
#15 QGuiApplicationPrivate::createEventDispatcher() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1490 (libQt6Gui.so.6+0x224bdf)
#16 QApplicationPrivate::createEventDispatcher() /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:140 (libQt6Widgets.so.6+0x1926ef)
#17 QCoreApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:815 (libQt6Core.so.6+0x1b07fc)
#18 QGuiApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1514 (libQt6Gui.so.6+0x22ad1f)
#19 QApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:466 (libQt6Widgets.so.6+0x194506)
#20 QApplication::QApplication(int&, char**, int) /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:454 (libQt6Widgets.so.6+0x194613)
#21 main /home/linux/qt6_dev/qt_tsan_tests_dev/qt_tsan_tests/main.cpp:8 (qt_tsan_tests+0x31c4)
SUMMARY: ThreadSanitizer: data race ../dbus/dbus/dbus-resources.c:176 in _dbus_counter_adjust_size
</pre>
</details>
<details>
<summary>Detailed call stack for data race related to _dbus_counter_adjust_unix_fd()</summary>
WARNING: ThreadSanitizer: data race (pid=2392)
Write of size 8 at 0x7b18000039d0 by main thread (mutexes: write M180842226518074512):
#0 _dbus_counter_adjust_unix_fd ../dbus/dbus/dbus-resources.c:245 (libdbus-1.so.3+0x4db1f)
#1 free_counter ../dbus/dbus/dbus-message.c:637 (libdbus-1.so.3+0x3eb64)
#2 _dbus_list_foreach ../dbus/dbus/dbus-list.c:798 (libdbus-1.so.3+0x64efb)
#3 dbus_message_cache_or_finalize ../dbus/dbus/dbus-message.c:662 (libdbus-1.so.3+0x3ebd4)
#4 dbus_message_unref ../dbus/dbus/dbus-message.c:1750 (libdbus-1.so.3+0x41c2e)
#5 q_dbus_message_unref /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbus_symbols_p.h:377 (libQt6DBus.so.6+0xc081d)
#6 QDBusMessagePrivate::~QDBusMessagePrivate() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusmessage.cpp:49 (libQt6DBus.so.6+0xc081d)
#7 QDBusMessage::~QDBusMessage() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusmessage.cpp:541 (libQt6DBus.so.6+0xc07dc)
#8 QDBusConnectionPrivate::getNameOwnerNoCache(QString const&) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusintegrator.cpp:2546 (libQt6DBus.so.6+0x883d0)
#9 QDBusConnectionPrivate::getNameOwner(QString const&) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusintegrator.cpp:2520 (libQt6DBus.so.6+0x8991e)
#10 QDBusAbstractInterfacePrivate::initOwnerTracking() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusabstractinterface.cpp:102 (libQt6DBus.so.6+0x3086c)
#11 QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const*, QDBusConnection const&, QObject*) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusabstractinterface.cpp:308 (libQt6DBus.so.6+0x31943)
#12 QIBusProxy::QIBusProxy(QString const&, QString const&, QDBusConnection const&, QObject*) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusproxy.cpp:23 (libibusplatforminputcontextplugin.so+0x29ade)
#13 QIBusPlatformInputContextPrivate::createBusProxy() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:637 (libibusplatforminputcontextplugin.so+0x1d2c4)
#14 QIBusPlatformInputContextPrivate::initBus() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:614 (libibusplatforminputcontextplugin.so+0x20b3b)
#15 QIBusPlatformInputContextPrivate::QIBusPlatformInputContextPrivate() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:602 (libibusplatforminputcontextplugin.so+0x21b95)
#16 QIBusPlatformInputContext::QIBusPlatformInputContext() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:82 (libibusplatforminputcontextplugin.so+0x21d18)
#17 QIbusPlatformInputContextPlugin::create(QString const&, QList<QString> const&) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforminputcontexts/ibus/main.cpp:31 (libibusplatforminputcontextplugin.so+0xc4ea)
#18 QPlatformInputContext* qLoadPlugin<QPlatformInputContext, QPlatformInputContextPlugin, QList<QString>&>(QFactoryLoader const*, QString const&, QList<QString>&) /home/linux/qt6_dev/qt6-build/include/QtCore/6.5.0/QtCore/private/../../../../../../qt6/qtbase/src/corelib/plugin/qfactoryloader_p.h:99 (libQt6Gui.so.6+0x295235)
#19 QPlatformInputContextFactory::create(QString const&) /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qplatforminputcontextfactory.cpp:45 (libQt6Gui.so.6+0x294388)
#20 QXcbIntegration::initialize() /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:343 (libQt6XcbQpa.so.6+0x9b16b)
#21 QGuiApplicationPrivate::eventDispatcherReady() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1503 (libQt6Gui.so.6+0x224c56)
#22 QCoreApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:824 (libQt6Core.so.6+0x1b07c5)
#23 QGuiApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1514 (libQt6Gui.so.6+0x22ad1f)
#24 QApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:466 (libQt6Widgets.so.6+0x194506)
#25 QApplication::QApplication(int&, char**, int) /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:454 (libQt6Widgets.so.6+0x194613)
#26 main /home/linux/qt6_dev/qt_tsan_tests_dev/qt_tsan_tests/main.cpp:8 (qt_tsan_tests+0x31c4)
Previous read of size 8 at 0x7b18000039d0 by thread T1 (mutexes: write M181123701494785360):
#0 _dbus_counter_get_unix_fd_value ../dbus/dbus/dbus-resources.c:288 (libdbus-1.so.3+0x4dd0d)
#1 _dbus_transport_get_dispatch_status ../dbus/dbus/dbus-transport.c:1128 (libdbus-1.so.3+0x5ce32)
#2 _dbus_transport_queue_messages ../dbus/dbus/dbus-transport.c:1173 (libdbus-1.so.3+0x5d0d3)
#3 _dbus_connection_get_dispatch_status_unlocked ../dbus/dbus/dbus-connection.c:4256 (libdbus-1.so.3+0x2ad9f)
#4 dbus_connection_dispatch ../dbus/dbus/dbus-connection.c:4589 (libdbus-1.so.3+0x2b5cd)
#5 q_dbus_connection_dispatch /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbus_symbols_p.h:176 (libQt6DBus.so.6+0x85c11)
#6 QDBusConnectionPrivate::doDispatch() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusintegrator.cpp:1171 (libQt6DBus.so.6+0x85c11)
#7 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (QDBusConnectionPrivate::*)()>::call(void (QDBusConnectionPrivate::*)(), QDBusConnectionPrivate*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:135 (libQt6DBus.so.6+0x8f187)
#8 void QtPrivate::FunctionPointer<void (QDBusConnectionPrivate::*)()>::call<QtPrivate::List<>, void>(void (QDBusConnectionPrivate::*)(), QDBusConnectionPrivate*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:172 (libQt6DBus.so.6+0x8f187)
#9 QtPrivate::QSlotObject<void (QDBusConnectionPrivate::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:383 (libQt6DBus.so.6+0x8f187)
#10 QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:363 (libQt6Core.so.6+0x23d247)
#11 QMetaCallEvent::placeMetaCall(QObject*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:608 (libQt6Core.so.6+0x23d247)
#12 QObject::event(QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:1378 (libQt6Core.so.6+0x24562a)
#13 QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1197 (libQt6Core.so.6+0x1a341e)
#14 doNotify /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1126 (libQt6Core.so.6+0x1a6843)
#15 QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1029 (libQt6Core.so.6+0x1a6a71)
#16 QCoreApplication::sendEvent(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1448 (libQt6Core.so.6+0x1a6b93)
#17 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1810 (libQt6Core.so.6+0x1abdc4)
#18 QCoreApplication::sendPostedEvents(QObject*, int) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1669 (libQt6Core.so.6+0x1abff7)
#19 postEventSourceDispatch /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:243 (libQt6Core.so.6+0x685bbe)
#20 g_main_dispatch ../glib/glib/gmain.c:3417 (libglib-2.0.so.0+0x8523f)
#21 g_main_context_dispatch ../glib/glib/gmain.c:4135 (libglib-2.0.so.0+0x8706a)
#22 g_main_context_iterate ../glib/glib/gmain.c:4211 (libglib-2.0.so.0+0x87354)
#23 g_main_context_iteration ../glib/glib/gmain.c:4276 (libglib-2.0.so.0+0x87464)
#24 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:393 (libQt6Core.so.6+0x684d34)
#25 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:100 (libQt6Core.so.6+0x1bd103)
#26 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:182 (libQt6Core.so.6+0x1bdff6)
#27 QThread::exec() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread.cpp:578 (libQt6Core.so.6+0x3beebb)
#28 QDBusConnectionManager::run() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:123 (libQt6DBus.so.6+0x4bd52)
#29 operator() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:321 (libQt6Core.so.6+0x4930fc)
#30 terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:257 (libQt6Core.so.6+0x493190)
#31 QThreadPrivate::start(void*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:280 (libQt6Core.so.6+0x4939f6)
Location is heap block of size 88 at 0x7b18000039c0 allocated by thread T1:
#0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:672 (libtsan.so.0+0x31edc)
#1 dbus_malloc0 ../dbus/dbus/dbus-memory.c:563 (libdbus-1.so.3+0x67423)
#2 _dbus_counter_new ../dbus/dbus/dbus-resources.c:93 (libdbus-1.so.3+0x4d58c)
#3 _dbus_transport_init_base ../dbus/dbus/dbus-transport.c:127 (libdbus-1.so.3+0x5b11b)
#4 _dbus_transport_new_for_socket ../dbus/dbus/dbus-transport-socket.c:1328 (libdbus-1.so.3+0x5a58e)
#5 _dbus_transport_new_for_domain_socket ../dbus/dbus/dbus-transport-socket.c:1555 (libdbus-1.so.3+0x5ad2c)
#6 _dbus_transport_open_unix_socket ../dbus/dbus/dbus-transport-socket.c:1623 (libdbus-1.so.3+0x5af3b)
#7 _dbus_transport_open ../dbus/dbus/dbus-transport.c:397 (libdbus-1.so.3+0x5bb9a)
#8 connection_try_from_address_entry ../dbus/dbus/dbus-connection.c:1818 (libdbus-1.so.3+0x26a41)
#9 _dbus_connection_open_internal ../dbus/dbus/dbus-connection.c:1887 (libdbus-1.so.3+0x26ca2)
#10 dbus_connection_open_private ../dbus/dbus/dbus-connection.c:2670 (libdbus-1.so.3+0x280f9)
#11 q_dbus_connection_open_private /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbus_symbols_p.h:184 (libQt6DBus.so.6+0x52a70)
#12 QDBusConnectionManager::executeConnectionRequest(QDBusConnectionManager::ConnectionRequestData*) /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:217 (libQt6DBus.so.6+0x52a70)
#13 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QDBusConnectionManager::ConnectionRequestData*>, void, void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*)>::call(void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*), QDBusConnectionManager*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:135 (libQt6DBus.so.6+0x554fe)
#14 void QtPrivate::FunctionPointer<void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*)>::call<QtPrivate::List<QDBusConnectionManager::ConnectionRequestData*>, void>(void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*), QDBusConnectionManager*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:172 (libQt6DBus.so.6+0x554fe)
#15 QtPrivate::QSlotObject<void (QDBusConnectionManager::*)(QDBusConnectionManager::ConnectionRequestData*), QtPrivate::List<QDBusConnectionManager::ConnectionRequestData*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:383 (libQt6DBus.so.6+0x554fe)
#16 QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:363 (libQt6Core.so.6+0x23d247)
#17 QMetaCallEvent::placeMetaCall(QObject*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:608 (libQt6Core.so.6+0x23d247)
#18 QObject::event(QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qobject.cpp:1378 (libQt6Core.so.6+0x24562a)
#19 QThread::event(QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread.cpp:1105 (libQt6Core.so.6+0x3bf12c)
#20 QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1197 (libQt6Core.so.6+0x1a341e)
#21 doNotify /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1126 (libQt6Core.so.6+0x1a6843)
#22 QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1029 (libQt6Core.so.6+0x1a6a71)
#23 QCoreApplication::sendEvent(QObject*, QEvent*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1448 (libQt6Core.so.6+0x1a6b93)
#24 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1810 (libQt6Core.so.6+0x1abdc4)
#25 QCoreApplication::sendPostedEvents(QObject*, int) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1669 (libQt6Core.so.6+0x1abff7)
#26 postEventSourceDispatch /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:243 (libQt6Core.so.6+0x685bbe)
#27 g_main_dispatch ../glib/glib/gmain.c:3417 (libglib-2.0.so.0+0x8523f)
#28 g_main_context_dispatch ../glib/glib/gmain.c:4135 (libglib-2.0.so.0+0x8706a)
#29 g_main_context_iterate ../glib/glib/gmain.c:4211 (libglib-2.0.so.0+0x87354)
#30 g_main_context_iteration ../glib/glib/gmain.c:4276 (libglib-2.0.so.0+0x87464)
#31 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:393 (libQt6Core.so.6+0x684d34)
#32 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:100 (libQt6Core.so.6+0x1bd103)
#33 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qeventloop.cpp:182 (libQt6Core.so.6+0x1bdff6)
#34 QThread::exec() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread.cpp:578 (libQt6Core.so.6+0x3beebb)
#35 QDBusConnectionManager::run() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:123 (libQt6DBus.so.6+0x4bd52)
#36 operator() /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:321 (libQt6Core.so.6+0x4930fc)
#37 terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:257 (libQt6Core.so.6+0x493190)
#38 QThreadPrivate::start(void*) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:280 (libQt6Core.so.6+0x4939f6)
Mutex M180842226518074512 is already destroyed.
Mutex M181123701494785360 is already destroyed.
Thread T1 'QDBusConnection' (tid=2394, running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:969 (libtsan.so.0+0x605b8)
#1 QThread::start(QThread::Priority) /home/linux/qt6_dev/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:707 (libQt6Core.so.6+0x491f6b)
#2 QDBusConnectionManager::QDBusConnectionManager() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:96 (libQt6DBus.so.6+0x4c931)
#3 innerFunction /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:40 (libQt6DBus.so.6+0x4f632)
#4 Holder /home/linux/qt6_dev/qt6/qtbase/src/corelib/global/qglobalstatic.h:37 (libQt6DBus.so.6+0x4f632)
#5 instance /home/linux/qt6_dev/qt6/qtbase/src/corelib/global/qglobalstatic.h:91 (libQt6DBus.so.6+0x4f632)
#6 operator() /home/linux/qt6_dev/qt6/qtbase/src/corelib/global/qglobalstatic.h:73 (libQt6DBus.so.6+0x4f632)
#7 QDBusConnection::sessionBus() /home/linux/qt6_dev/qt6/qtbase/src/dbus/qdbusconnection.cpp:1133 (libQt6DBus.so.6+0x4f632)
#8 QGenericUnixServices::QGenericUnixServices() /home/linux/qt6_dev/qt6/qtbase/src/gui/platform/unix/qgenericunixservices.cpp:359 (libQt6Gui.so.6+0xb0a4cd)
#9 QXcbIntegration::QXcbIntegration(QList<QString> const&, int&, char**) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:99 (libQt6XcbQpa.so.6+0x9d6e9)
#10 QXcbIntegrationPlugin::create(QString const&, QList<QString> const&, int&, char**) /home/linux/qt6_dev/qt6/qtbase/src/plugins/platforms/xcb/qxcbmain.cpp:22 (libqxcb.so+0x2490)
#11 QPlatformIntegration* qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin, QList<QString> const&, int&, char**&>(QFactoryLoader const*, QString const&, QList<QString> const&, int&, char**&) /home/linux/qt6_dev/qt6-build/include/QtCore/6.5.0/QtCore/private/../../../../../../qt6/qtbase/src/corelib/plugin/qfactoryloader_p.h:99 (libQt6Gui.so.6+0x2967d5)
#12 QPlatformIntegrationFactory::create(QString const&, QList<QString> const&, int&, char**, QString const&) /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qplatformintegrationfactory.cpp:23 (libQt6Gui.so.6+0x296513)
#13 init_platform /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1191 (libQt6Gui.so.6+0x220b92)
#14 QGuiApplicationPrivate::createPlatformIntegration() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1471 (libQt6Gui.so.6+0x224585)
#15 QGuiApplicationPrivate::createEventDispatcher() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1490 (libQt6Gui.so.6+0x224bdf)
#16 QApplicationPrivate::createEventDispatcher() /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:140 (libQt6Widgets.so.6+0x1926ef)
#17 QCoreApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:815 (libQt6Core.so.6+0x1b07fc)
#18 QGuiApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1514 (libQt6Gui.so.6+0x22ad1f)
#19 QApplicationPrivate::init() /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:466 (libQt6Widgets.so.6+0x194506)
#20 QApplication::QApplication(int&, char**, int) /home/linux/qt6_dev/qt6/qtbase/src/widgets/kernel/qapplication.cpp:454 (libQt6Widgets.so.6+0x194613)
#21 main /home/linux/qt6_dev/qt_tsan_tests_dev/qt_tsan_tests/main.cpp:8 (qt_tsan_tests+0x31c4)
SUMMARY: ThreadSanitizer: data race ../dbus/dbus/dbus-resources.c:245 in _dbus_counter_adjust_unix_fd
</pre>
</details>
In summary, the problems occur when one thread runs a loop to process dbus messages, while another thread destroys instances of the DBusMessage structure, removing them from the internal message cache. Both threads access the same variables of an instance of the DBusCounter structure contained in DBus, whereby the write access is protected by a mutex, but the read access is not.https://gitlab.freedesktop.org/dbus/dbus/-/issues/445CI build failure with meson build system on openSUSE - "getgrnam(): name not ...2023-03-08T19:44:40ZRalf HabackerCI build failure with meson build system on openSUSE - "getgrnam(): name not found: 'messagebus'"Building dbus with meson on openSUSE Leap 15.4 fails with the mentioned failure.
## To reproduce
To reproduce the issue run the following command on the mentioned linux distribution:
git clone https://gitlab.freedesktop.org/dbus/d...Building dbus with meson on openSUSE Leap 15.4 fails with the mentioned failure.
## To reproduce
To reproduce the issue run the following command on the mentioned linux distribution:
git clone https://gitlab.freedesktop.org/dbus/dbus.git
cd dbus
sudo docker run --network host -v $PWD:/mnt -it opensuse/leap:15.4 /bin/bash
builddir=../build-meson ci_buildsys=meson tools/ci-install.sh
builddir=../build-meson ci_buildsys=meson tools/ci-build.sh
## Actual result
```sh
Running custom install script '/usr/bin/python3 /mnt/doc/meson_post_install.py /build-meson/doc share/doc/dbus /build-meson/doc/api/qch/dbus-1.15.3.qch share/doc/dbus doc/api'
Running custom install script '/mnt/meson_post_install.py false'
--- stdout ---
--- stderr ---
Traceback (most recent call last):
File "/mnt/meson_post_install.py", line 105, in <module>
post_install_exe()
File "/mnt/meson_post_install.py", line 94, in post_install_exe
os.chown(exe_path, 0, grp.getgrnam(dbus_user).gr_gid)
KeyError: "getgrnam(): name not found: 'messagebus'"
FAILED: install script '/mnt/meson_post_install.py false' exit code 1, stopped
```
## Expected result
building should succeed without this error.https://gitlab.freedesktop.org/dbus/dbus/-/issues/444some .dtd urls of dbus have been expired2023-02-28T07:59:22ZXin Shisome .dtd urls of dbus have been expiredThere are some .dtd urls of dbus have been expired:
+ http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd ==> It is a little different from https://dbus.freedesktop.org/doc/introspect.dtd, and I'm changing it now.
+ http://www...There are some .dtd urls of dbus have been expired:
+ http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd ==> It is a little different from https://dbus.freedesktop.org/doc/introspect.dtd, and I'm changing it now.
+ http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd ==> 404 NOT FOUND, and I'm changing it to https://dbus.freedesktop.org/doc/busconfig.dtd now.
+ http://www.freedesktop.org/dbus/1.0/doc.dtd ==> 404 NOT FOUND, however, I can't find it in https://dbus.freedesktop.org/doc/. Please tell me which url to change it to.https://gitlab.freedesktop.org/dbus/dbus/-/issues/443Remove autotools build support2023-09-01T16:06:11ZRalf HabackerRemove autotools build supportWith the introduction of the Meson build system, the Autotools build system should be removed to reduce the number of build system and CI jobs to be maintained.With the introduction of the Meson build system, the Autotools build system should be removed to reduce the number of build system and CI jobs to be maintained.