dbus issueshttps://gitlab.freedesktop.org/dbus/dbus/-/issues2024-01-16T09:35:08Zhttps://gitlab.freedesktop.org/dbus/dbus/-/issues/496dbus-1.14.10 built Dbus demon showing version number has D-Bus Message Bus Da...2024-01-16T09:35:08ZRanjith Kumar D Sdbus-1.14.10 built Dbus demon showing version number has D-Bus Message Bus Daemon 1.12.16Build the dbus-1.14.10.tar verion for the linux target. After building the dbus source code the dbus deamon showing the version number has 1.12.16 is this correct?
**/home/ubuntu# dbus-daemon --version
D-Bus Message Bus Daemon 1.12.16
...Build the dbus-1.14.10.tar verion for the linux target. After building the dbus source code the dbus deamon showing the version number has 1.12.16 is this correct?
**/home/ubuntu# dbus-daemon --version
D-Bus Message Bus Daemon 1.12.16
Copyright (C) 2002, 2003 Red Hat, Inc., CodeFactory AB, and others
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.**
## Expected result
Dbus Daemon should show the version number has 1.14.10
## Actual result
Dbus Daemon should show the version number has 1.12.16
## Additional context
Is this right behavior ?https://gitlab.freedesktop.org/dbus/dbus/-/issues/433Can't get match rules for my user's session bus2022-12-14T20:16:43Zjamie campbellCan't get match rules for my user's session busTo reproduce:
call GetAllMatchRules.py as a regular user.
Expected result:
Match rule information
Actual result:
GetConnectionMatchRules failed: did you enable the Stats interface?
Additional context:
I modified GetAllMatchRules.p...To reproduce:
call GetAllMatchRules.py as a regular user.
Expected result:
Match rule information
Actual result:
GetConnectionMatchRules failed: did you enable the Stats interface?
Additional context:
I modified GetAllMatchRules.py to provide additional information at which point I get
GetConnectionMatchRules failed: did you enable the Stats interface?: org.freedesktop.DBus.Error.AccessDenied: The caller does not have the necessary privileged to call this method
I also tried calling it as root, and it does provide information, so it's not a problem of it not having been enabled at all.
bus/example-session-disable-stats.conf.in claims that " If the Stats interface was enabled at compile-time, users can use it on the session bus by default. Systems providing isolation of processes with LSMs might want to restrict this. This can be achieved by copying this file in @EXPANDED_SYSCONFDIR@/dbus-1/session.d/ ". However, no such explicit disabling has occurred.
I even tried getting silly and commenting out all denies, for everything, and doing a reload, but the same problem occurs.https://gitlab.freedesktop.org/dbus/dbus/-/issues/336private connection seems always cause a memory leak2021-11-18T15:04:48ZPlan Cprivate connection seems always cause a memory leak
run this demo:
```c
#include <stdio.h>
#include <unistd.h>
#include <dbus/dbus.h>
void test()
{
DBusConnection *dbus_conn = dbus_bus_get_private(DBUS_BUS_SESSION, NULL);
dbus_connection_close(dbus_conn);
dbus_connection_unr...
run this demo:
```c
#include <stdio.h>
#include <unistd.h>
#include <dbus/dbus.h>
void test()
{
DBusConnection *dbus_conn = dbus_bus_get_private(DBUS_BUS_SESSION, NULL);
dbus_connection_close(dbus_conn);
dbus_connection_unref(dbus_conn);
}
int main()
{
int nIndex = 0;
while(TRUE)
{
printf("Test %d times\n", ++nIndex);
test();
usleep(100);
}
return 0;
}
```
see the top:
```
top - 16:27:40 up 2:04, 1 user, load average: 1.72, 3.41, 3.39
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 6.5 us, 0.0 sy, 0.0 ni, 93.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3856.0 total, 153.3 free, 2783.6 used, 919.0 buff/cache
MiB Swap: 8192.0 total, 5774.2 free, 2417.8 used. 449.3 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4421 planc 20 0 409464 257764 2008 S 0.0 6.5 9:50.96 dbus-daemon
```
`RES` of `dbus-daemon` will increase continuously, then exit the demo, the `RES` will not reduce.https://gitlab.freedesktop.org/dbus/dbus/-/issues/273unable to filter messages2019-09-07T21:18:45Zduhovasurunable to filter messagesThe following command worked for me in Fedora 28, but since upgrading to Fedora 30, it doesn't show applicable dbus messages:
dbus-monitor --session "type='method_call',interface='org.freedesktop.Notifications',member='Notify'"
```
dbus...The following command worked for me in Fedora 28, but since upgrading to Fedora 30, it doesn't show applicable dbus messages:
dbus-monitor --session "type='method_call',interface='org.freedesktop.Notifications',member='Notify'"
```
dbus-monitor: unable to enable new-style monitoring: org.freedesktop.DBus.Error.MatchRuleInvalid: "Invalid match rule". Falling back to eavesdropping.
signal time=1563470082.399756 sender=org.freedesktop.DBus -> destination=:1.166595 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.166595"
```
However, running without the filter does catch the message I'm looking for (along with a zillion others):
dbus-monitor --session
```
[...]
method call time=1563468713.173238 sender=:1.164239 -> destination=:1.164091 serial=14 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "mate-screensaver-dialog"
uint32 0
string ""
string "12:51:53 P.M."
string "testtest"
array [
]
array [
]
int32 0
[...]
```
What's going wrong? The format of my filter matches the example in the man page...?https://gitlab.freedesktop.org/dbus/dbus/-/issues/261Cross compiling dbus 1.12.10 fails with "Unexpanded AX_ macro found"2019-03-16T08:48:52ZRalf HabackerCross compiling dbus 1.12.10 fails with "Unexpanded AX_ macro found"While trying to update cross compiled dbus to 1.12.10 at https://build.opensuse.org/package/show/home:rhabacker:branches:windows:mingw:win32/mingw32-dbus-1 the following error occurs.
```
[ 131s] configure:18929: error: Unexpanded AX_ m...While trying to update cross compiled dbus to 1.12.10 at https://build.opensuse.org/package/show/home:rhabacker:branches:windows:mingw:win32/mingw32-dbus-1 the following error occurs.
```
[ 131s] configure:18929: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
[ 131s] If this token and others are legitimate, please use m4_pattern_allow.
[ 131s] See the Autoconf documentation.
[ 131s] autoconf failed - version 2.5x is probably required
```
Installed versions are
autoconf-archive-2019.01.06
autoconf-2.69
[_log.txt](/uploads/d001b76acc5830480c1478cae82f7741/_log.txt)https://gitlab.freedesktop.org/dbus/dbus/-/issues/8dbus autolaunch fails on OS X 10.5 because of '/' characters in $DISPLAY2023-05-27T07:19:05ZBugzilla Migration Userdbus autolaunch fails on OS X 10.5 because of '/' characters in $DISPLAY## Submitted by dpj..@..nt.com
Assigned to **D-Bus Maintainers**
**[Link to original bug (#18013)](https://bugs.freedesktop.org/show_bug.cgi?id=18013)**
## Description
Created attachment 19585
Patches dbus-launch-x11.c to replace ...## Submitted by dpj..@..nt.com
Assigned to **D-Bus Maintainers**
**[Link to original bug (#18013)](https://bugs.freedesktop.org/show_bug.cgi?id=18013)**
## Description
Created attachment 19585
Patches dbus-launch-x11.c to replace '/' characters with '_' in the session filename.
dbus autolaunch fails on OS X 10.5 Leopard because the DISPLAY environment variable contains '/' forward slash characters.
dbus-launch fails when it tries to write the session file, the name of which contains '/' characters, so the fopen() call fails as it tries to create directories.
I've made a patch for dbus-launch-x11.c which changes all '/' characters to '_' characters.
**Patch 19585**, "Patches dbus-launch-x11.c to replace '/' characters with '_' in the session filename.":
[dbus-launch-x11.c.patch](/uploads/100a91964717f04b15c39853005a3efd/dbus-launch-x11.c.patch)
Version: 1.5