Summary: | 0.99.4 regression: upowerd crashed with SIGSEGV in g_variant_is_trusted() | ||
---|---|---|---|
Product: | upower | Reporter: | Martin Pitt <martin.pitt> |
Component: | general | Assignee: | Martin Pitt <martin.pitt> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815590 | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Martin Pitt
2016-02-23 07:52:58 UTC
up-daemon-generated.c has this code: 1158 g_variant_new ("(o)", 1159 device)); (gdb) p device $1 = (const gchar *) 0x555555588af2 "PowerOff" which is indeed not a valid object path. This should certainly not crash with a segfault but trigger an assertion, so there's a glib bug as well. Ah, this is a copy&paste error in src/up-daemon.c: static gboolean up_daemon_get_critical_action (UpExportedDaemon *skeleton, GDBusMethodInvocation *invocation, UpDaemon *daemon) { up_exported_daemon_complete_get_display_device (skeleton, invocation, up_backend_get_critical_action (daemon->priv->backend)); |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.