! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Get segfault when plug out ac
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Antoine 2012-04-10 20:11:06 CEST
Hi everyone !

This bug comes when I update to xfce4-power-manager 1.0.11

When I plug out ac, xfce4-power-manager crash.

From "xfce4-power-manager --debug" :

TRACE[xfpm-battery.c:148] xfpm_battery_refresh_visible(): visible=TRUE: ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-disks.c:147] xfpm_disks_set_spin_timeouts(): On Battery=0 spin_down_enabled=0 timeout=800

TRACE[xfpm-dpms.c:74] xfpm_dpms_set_timeouts(): Settings dpms: standby=120 suspend=0 off=300

TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
Erreur de segmentation

uname -a : Linux archbook 3.4.0-rc2-antoineve #1 SMP PREEMPT Sun Apr 8 17:12:45 CEST 2012 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux
Comment 1 Lionel Le Folgoc 2012-04-26 14:22:17 CEST
Hi,

Are you using a French or Russian locale? There's a bug in some translations with 1.0.11 that will cause segfaults.
Comment 2 AntoineVe 2012-05-02 11:13:17 CEST
I use french translation, but everything seems good since 1.2.0 :)
Comment 3 Darren Davison 2012-05-30 12:33:06 CEST
I can confirm that this still happens in 1.2.0 (I use a UK locale, so nothing to do with that I think).

Further detail not in the original report...

If you have an icon set to display in the panel, xfce4-power-manager will segfault with 100% reliability at every plug or unplug of power.  If the settings are changed to never show an icon, it doesn't crash (see output below).

I think this should be gifixedven high priority because if the daemon crashes without warning and the user closes a laptop lid expecting it to suspend based on power-manager settings, it won't.  There's a risk of damaged hardware due to heat build up (been caught with this several times myself before realising what was happening).

Cheers,
Darren.


Output from --debug from the point of pulling/placing the cable to demonstrate:


TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_CHARGING_DISCHARGING)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_CHARGING_DISCHARGING)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_CHARGING_DISCHARGING)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
Segmentation fault


(and with icon display off..)
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-polkit.c:238] xfpm_polkit_free_data(): Destroying Polkit data
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
Comment 4 Evangelos Foutras 2012-05-31 19:45:54 CEST
Created attachment 4479 
Sync en_GB translation file

The patch I'm attaching fixes the reported crashes in my testing.
Comment 5 Darren Davison 2012-05-31 23:24:20 CEST
The patch from Evangelos (via downstream Arch Linux) worked for me.
Comment 6 Lionel Le Folgoc 2012-11-01 18:21:11 CET
The crash because of en_GB was a new problem with the translation in 1.2.0. There was another bug report for that and it has been fixed in git master already, but I can't recall the bug number, sorry.
Comment 7 Lionel Le Folgoc 2012-11-03 21:18:04 CET
*** Bug 9404 has been marked as a duplicate of this bug. ***

Bug #8669

Reported by:
Antoine
Reported on: 2012-04-10
Last modified on: 2012-11-03
Duplicates (1):
  • 9404 Power manager crashes upon cable disconnection or reconnection

People

Assignee:
Ali Abdallah
CC List:
5 users

Version

Version:
1.0.11

Attachments

Sync en_GB translation file (1.13 KB, patch)
2012-05-31 19:45 CEST , Evangelos Foutras
no flags

Additional information