! 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 !
xfce4-power-manager-1.2.0 crashes with SIGSEGV
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Ciprian Ciubotariu 2012-06-06 23:52:47 CEST
Created attachment 4495 
GDB stachtrace

Various power events cause xfce4-power-manager to sometimes crash - sometimes closing the lid of the notebook, sometimes the plugging in/out the power chord.
Comment 1 Ciprian Ciubotariu 2012-06-07 11:38:39 CEST
One interesting thing to note is that I've set the profiles to "When laptop lid is closed" to "Lock screen". The crashes seem to start only after I close the laptop lid and open it again.

I didn't experience this behavior when the profile was set to hibernate/standby when closing the laptop lid.
Comment 2 Mikko Mensonen 2012-07-02 18:05:22 CEST
Created attachment 4539 
gdb stacktrace with en_GB.UTF-8

I can confirm this bug, with a nearly identical stack trace. 

In my case, xfce4-power-manager crashed every single time I suspended or resumed, or plugged or unplugged AC, with this in dmesg:

[  118.611049] xfce4-power-man[2334]: segfault at 56 ip 00007f509871570e sp 00007fff38c62450 error 4 in libc-2.15.so[7f50986ce000+1a1000]

I googled around a bit and found some hints that it might be translation related, such as this Arch Linux bug report: https://bugs.archlinux.org/task/29592

So I tried switching my system locale from en_GB.UTF-8 to en_US.UTF-8 and the crashes have stopped completely since then. As a workaround I now start xfce4-power-manager from a shell script on session start, which first exports LANG="en_US.UTF-8" before starting the power manager.
Comment 3 smoothhound 2012-09-21 13:40:47 CEST
Created attachment 4638 
Fix en_GB po file to stop crashes on certain notification events

Inspired by a similar patch to the French translations [1][2] this patch fixes the notification event crashes seen when locale is en_GB

[1] http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=634c5c016d3b6e152e20173263790a3bfbbe0640
[2] https://bugs.archlinux.org/task/29294
Comment 4 Ciprian Ciubotariu 2012-09-22 22:29:59 CEST
Created attachment 4639 
Same patch, fixed

Found a problem in the patch submitted by smoothhound@gmail.com. Corrected.
Comment 5 Lionel Le Folgoc 2012-10-21 23:09:22 CEST
FWIW, po/te.po and po/tr.po have similar issues in 1.2.0.
Comment 6 Mike Massonnet editbugs 2012-10-22 02:18:19 CEST
(In reply to comment #3)
> Created attachment 4638 
> Fix en_GB po file to stop crashes on certain notification events

Applied in git master 964cba9..4a487de
Comment 7 Mike Massonnet editbugs 2012-10-22 02:23:02 CEST
(In reply to comment #4)
> Created attachment 4639 
> Same patch, fixed

Applied in git xfce-4.10 964cba9..4a487de
Comment 8 Mike Massonnet editbugs 2012-10-22 02:33:09 CEST
(In reply to comment #5)
> FWIW, po/te.po and po/tr.po have similar issues in 1.2.0.

Fixed for both languages in xfce-4.10 branch
te.po dd1aa28..ef5c024
tr.po df31407..519e06c (on string marked as fuzzy)

Bug #8992

Reported by:
Ciprian Ciubotariu
Reported on: 2012-06-06
Last modified on: 2013-01-21

People

Assignee:
Ali Abdallah
CC List:
4 users

Version

Attachments

GDB stachtrace (51.06 KB, text/plain)
2012-06-06 23:52 CEST , Ciprian Ciubotariu
no flags
gdb stacktrace with en_GB.UTF-8 (8.30 KB, text/plain)
2012-07-02 18:05 CEST , Mikko Mensonen
no flags
Fix en_GB po file to stop crashes on certain notification events (534 bytes, patch)
2012-09-21 13:40 CEST , smoothhound
no flags
Same patch, fixed (601 bytes, patch)
2012-09-22 22:29 CEST , Ciprian Ciubotariu
no flags

Additional information