FS#30055 - [xfce4-power-manager] Segmentation faults when inserting/removing charger

Attached to Project: Arch Linux
Opened by John Meikle (meikj) - Monday, 28 May 2012, 23:56 GMT
Last edited by Evangelos Foutras (foutrelis) - Friday, 01 June 2012, 06:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When inserting or removing the laptop charger xfce4-power-manager seg faults. Interestingly, the problem doesn't seem to exist when the battery is fully charged. This leads me to believe the problem is down to how the charger is handled.

A similar bug report was submitted on the 5th of April 2012 (https://bugs.archlinux.org/task/29294) and according to this bug report the bug was fixed in 1.0.11-2. Apparently this bug was caused by the French and Russian locales.

However, I'm using version 1.2.0-2, and I'm also using the en_GB locale.

Another thing worth mentioning is that the seg faults seem to be random. What I mean by this is that when inserting/removing the charger there is a chance that it wont seg fault.


Additional info:

* Using xfce4-power-manager 1.2.0-2
* Linux arch 3.3.7-1-ARCH #1 SMP PREEMPT Mon May 21 22:39:59 UTC 2012 i686 GNU/Linux
* eMachines eM350
* My battery was ~90% charged and had the laptop charger in. I ran xfce4-power-manager with the --debug argument. See attached file for terminal output.


Steps to reproduce:

When battery is not fully charged either insert or remove the charger.
   output (5.8 KiB)
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Friday, 01 June 2012, 06:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in xfce4-power-manager 1.2.0-3.
Comment by John Meikle (meikj) - Tuesday, 29 May 2012, 00:01 GMT
I'd like to expand on when I ran 'xfce4-power-manager --debug'. I had the charger in and it was reporting ~90% charged, I then removed my charger and as a result the program seg faulted.
Comment by Darren Davison (davison) - Wednesday, 30 May 2012, 10:55 GMT
for me, it's related to whether an icon is displayed in the panel. Set to "Never show icon" and it stops segfaulting. https://bugzilla.xfce.org/show_bug.cgi?id=8669 <-- upstream
Comment by John Meikle (meikj) - Wednesday, 30 May 2012, 16:03 GMT
It is indeed down to the icon. Switching it off, as you said, stops the segfaulting.
Comment by Evangelos Foutras (foutrelis) - Thursday, 31 May 2012, 17:40 GMT
I have tried to correct the en_GB translation in xfce4-power-manager 1.2.0-3.

Give it a try.
Comment by Darren Davison (davison) - Thursday, 31 May 2012, 21:19 GMT
yes, seems to work fine. I've just unplugged and replugged power several times with the icon set to "Always Show" and it remains running. Thanks for the fix.

Loading...