MATE power statistics crashed
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Upower |
Fix Released
|
Medium
|
||
| | mate-power-manager (Ubuntu) |
Medium
|
Unassigned | ||
| | upower (Debian) |
Fix Released
|
Unknown
|
||
| | upower (Ubuntu) |
High
|
Martin Pitt | ||
Bug Description
MATE Power Statistics will crash. Just click between a few tabs and power sources and it will soon die :(
ProblemType: Crash
DistroRelease: Ubuntu 15.04
Package: mate-power-manager 1.8.1+dfsg1-3
ProcVersionSign
Uname: Linux 3.19.0-7-generic x86_64
ApportVersion: 2.16.2-0ubuntu1
Architecture: amd64
CurrentDesktop: MATE
Date: Wed Mar 4 21:26:28 2015
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2015-03-04 (0 days ago)
InstallationMedia: Ubuntu-MATE 15.04 "Vivid Vervet" - Alpha amd64 (20150304)
ProcCmdline: /usr/bin/
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_GB.UTF-8
SHELL=/bin/bash
SegvAnalysis: Skipped: missing required field "Disassembly"
Signal: 11
SourcePackage: mate-power-manager
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
| Apport retracing service (apport) wrote : | #2 |
| Changed in mate-power-manager (Ubuntu): | |
| importance: | Undecided → Medium |
| tags: | removed: need-amd64-retrace |
| Martin Wimpress (flexiondotorg) wrote : | #6 |
The following snippet is the patch confirmed by Fedora as fixing this issue.
| Changed in ubuntu-mate: | |
| status: | New → Triaged |
| Martin Wimpress (flexiondotorg) wrote : | #7 |
The bug is actually in upower.
| Changed in mate-power-manager (Ubuntu): | |
| status: | New → Invalid |
| Changed in gnome-power-manager (Debian): | |
| status: | Unknown → Incomplete |
| Changed in gnome-power-manager (Debian): | |
| status: | Incomplete → New |
Created attachment 114095
Patch to fix issue
If the command `upower -d` is run while a device with no history is attached, the command can crash with a segfault.
Relevant backtrace when compiled from the master branch (f3706d7) with debugging:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff76d8444 in g_variant_unref () from /usr/lib/
(gdb) bt
#0 0x00007ffff76d8444 in g_variant_unref () from /usr/lib/
#1 0x00007ffff7bc27b2 in up_device_
type=
error=0x0) at up-device.c:484
#2 0x00007ffff7bc192d in up_device_
string=
#3 0x00007ffff7bc2391 in up_device_to_text (device=
at up-device.c:375
#4 0x0000000000401d14 in main (argc=1, argv=0x7fffffff
(gdb)
This appears to be caused by the fact that if the call to 'up_device_
A patch which initializes 'gva' to NULL is attached and resolves the issue for me. A similar fix may also be needed for the 'up_device_
|
|
#10 |
*** Bug 89514 has been marked as a duplicate of this bug. ***
| affects: | gnome-power-manager (Debian) → upower (Debian) |
| Changed in upower: | |
| importance: | Undecided → Unknown |
| status: | New → Unknown |
|
|
#11 |
I came here from a downstream report/patch, so I didn't take your patch, sorry.
Fixed in master now:
http://
Thanks!
| Martin Pitt (pitti) wrote : | #8 |
Fixed upstream now, will upload to Debian and sync ASAP.
| affects: | ubuntu-mate → upower (Ubuntu) |
| Changed in upower (Ubuntu): | |
| assignee: | nobody → Martin Pitt (pitti) |
| importance: | Undecided → High |
| status: | Triaged → Fix Committed |
| Changed in upower: | |
| importance: | Unknown → Medium |
| status: | Unknown → Fix Released |
| Changed in upower (Debian): | |
| status: | New → Confirmed |
| Launchpad Janitor (janitor) wrote : | #12 |
This bug was fixed in the package upower - 0.99.2-2
---------------
upower (0.99.2-2) experimental; urgency=medium
* libupower: Fix crash due to uninitialized GVariant. (Closes: #774546,
LP: #1428337)
-- Martin Pitt <email address hidden> Fri, 13 Mar 2015 15:59:59 +0100
| Changed in upower (Ubuntu): | |
| status: | Fix Committed → Fix Released |
| Changed in upower (Debian): | |
| status: | Confirmed → Fix Released |


StacktraceTop: buildd/ glib2.0- 2.43.90/ ./glib/ gvariant- core.c: 625 get_statistics_ sync (device= 0x7f7734017770, type=0x40e146 "discharging", cancellable= 0x7f7743fa12f9 <up_device_ get_statistics_ sync+313> , cancellable@ entry=0x0, error=0x0) at up-device.c:560 update_ info_page_ stats (device= 0x7f7734017770) at gpm-statistics. c:708 update_ info_data_ page (device= device@ entry=0x7f77340 17770, page=<optimized out>) at gpm-statistics. c:759 update_ info_data (device= device@ entry=0x7f77340 17770) at gpm-statistics. c:806
g_variant_unref (value=0x3) at /build/
up_device_
gpm_stats_
gpm_stats_
gpm_stats_