SRU justification for input-remapper 2.2.1-1ubuntu0.26.10.1 (stonking). This is the corrected stonking candidate (previous attachment used 2.2.1-1ubuntu1, which is devel-series versioning). The debdiff attached to the earlier comment is otherwise unchanged: it backports upstream PR #1396.
[Impact] * stonking has input-remapper 2.2.1-1, which uses dasbus. dasbus connects to the system bus lazily, so the first proxy access raises GLib.Error from Gio when /run/dbus/system_bus_socket is absent. Daemon.connect() only catches DBusError, so when udev runs input-remapper-control during coldplug before dbus.socket exists, the exception is unhandled and Apport records a crash report on every boot. This is the dasbus signature reported in https://errors.ubuntu.com/problem/165ff090f9c22633dd94f3ecc086ba49ca9b86b5 * The fix catches (DBusError, GLib.Error) in both the initial connection and the fallback retry loop, and logs the reason at warning level on the fallback path. With the bus unavailable the helper logs the error and exits 5 instead of raising. This matches upstream PR #1396. [Test Case] * With the system bus unavailable: DBUS_SYSTEM_BUS_ADDRESS=unix:path=/nonexistent \ input-remapper-control --command autoload --device /dev/input/event0 - stock 2.2.1-1: unhandled gi.repository.GLib.GError traceback, exit 1 (exact dasbus connection traceback reported in the bug) - patched: "Service not running, or system bus not available? ..." and "Daemon missing", exit 5, no traceback and no Apport report Verified against the published stonking source in a clean tree. * Regression check: input-remapper-daemon starts normally and remapping autoloads at login and on hotplug; input-remapper-gtk starts normally. [Regression Potential] * Low. The success path is unchanged; only the caught exception types and the initial SystemBus/proxy access placement change. A missing bus now produces a logged error and exit 5 instead of an unhandled exception, and the fallback path still retries and exits 8 if the bus remains unavailable. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2174519 Title: input-remapper-control crashed with gi.repository.GLib.GError in bus_get() during udev autoload To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/input-remapper/+bug/2174519/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
