bus1 / dbus-broker

Linux D-Bus Message Broker
https://github.com/bus1/dbus-broker/wiki
Apache License 2.0
677 stars 79 forks source link

dbus-broker-launch crashes on stop when configured with nonexisting user #290

Closed nolange closed 2 years ago

nolange commented 2 years ago

This crash appears with v30, when configure a non-existing user.

May 16 15:38:55 systemd[1]: Starting D-Bus System Message Bus...
May 16 15:38:55 dbus-broker-launch[617]: Looking up NSS user entry for 'dbus'...
May 16 15:38:55 dbus-broker-launch[617]: NSS returned no entry for 'dbus'
May 16 15:38:55 dbus-broker-launch[617]: Invalid user-name in /usr/share/dbus-1/system.conf +12: <user>dbus</user>
May 16 15:38:55 systemd[1]: Started D-Bus System Message Bus.
May 16 15:38:55 dbus-broker-lau[617]: Ready
May 16 15:41:19 dbus-broker-launch[620]: dbus-broker: ../src/util/user.c:195: user_free: Assertion `c_assert_result && "c_rbtree_is_empty(&user->usage_tree)"' failed.
May 16 15:41:19 systemd[1]: Stopping D-Bus System Message Bus...
dvdhrm commented 2 years ago

Hi, yeah, this is fixed in 608b259e25ef1348b9e4a8e022c35b5c68d3df98. I just released v31 for this reason yesterday (a pure bugfix release).

dvdhrm commented 2 years ago

Most distributions already picked up this fix. Did you compile dbus-broker yourself?

nolange commented 2 years ago

Most distributions already picked up this fix. Did you compile dbus-broker yourself?

Yep. closing this as its already fixed. Thanks