Upon certain operations the program crashes. I suppose it's an upstream bug, but other distros (i.e. ARCHLinux) seem to relate these to their packaging.
Created attachment 314461 [details] GDB stachtrace Added stacktrace
Created attachment 314463 [details] emerge --info
The crash appears on various power-management related events, like closing the lid of the notebook, and sometimes when plugging in or out the power chord.
Report this also to http://bugzilla.xfce.org/ with the trace and add a link here to the "See also: " field.
(In reply to comment #0) > Upon certain operations the program crashes. I suppose it's an upstream bug, > but other distros (i.e. ARCHLinux) seem to relate these to their packaging. What do you mean by 'these'? There is a patch for this specific issue somewhere?
(In reply to comment #5) > What do you mean by 'these'? There is a patch for this specific issue > somewhere? I mean googling for crashes in xfce4-power-manager revealed such problems seem to occur from the packaging. This hinted me to post the problem to the distro rather than the developers.
(In reply to comment #4) > Report this also to http://bugzilla.xfce.org/ with the trace and add a link > here to the "See also: " field. Is this addressed at me? Or to someone in the gentoo organization?
(In reply to comment #6) > (In reply to comment #5) > > What do you mean by 'these'? There is a patch for this specific issue > > somewhere? > > I mean googling for crashes in xfce4-power-manager revealed such problems > seem to occur from the packaging. This hinted me to post the problem to the > distro rather than the developers. We don't do anything special to xfce4-power-manager, it's pretty much "./configure; make; make install" from the ebuild. And sure, we will patch this soon as possible.(In reply to comment #7) > (In reply to comment #4) > > Report this also to http://bugzilla.xfce.org/ with the trace and add a link > > here to the "See also: " field. > > Is this addressed at me? Or to someone in the gentoo organization? You :-) It's best if you report the bug to upstream bug tracking system, so when they ask for extra information, you'll be available to provide it...
(In reply to comment #8) > You :-) > It's best if you report the bug to upstream bug tracking system, so when > they ask for extra information, you'll be available to provide it... OK! I will!
I might be experiencing the same issue. Every time I unplug or plug in AC, or when I resume from suspend, xfce4-power-manager segfaults and dmesg states: [ 118.611049] xfce4-power-man[2334]: segfault at 56 ip 00007f509871570e sp 00007fff38c62450 error 4 in libc-2.15.so[7f50986ce000+1a1000] Google only hints at some translation errors (https://bugs.archlinux.org/task/29592).
Created attachment 316985 [details] gdb stacktrace Added stacktrace from plugging in AC (it's identical to unplugging AC). I actually went and tested if it's language related - I changed system locale to en_US.UTF-8 and xfce4-power-manager no longer crashes! The trace is from running with en_GB.UTF-8.
I assume this is an upstream issue, so I updated Ciprian's original Xfce bug: https://bugzilla.xfce.org/show_bug.cgi?id=8992 As a workaround (to let me use whatever locale I prefer), I've now disabled the default power manager autostart entry and just start it from a shell script: #!/bin/bash export LANG="en_US.UTF-8" xfce4-power-manager
I've added a patch to the upstream bug that fixes the issue for en_GB, ie. for me :) if other locales still have problems the fix should be similar. Assuming the patch is ok, I'm not sure when it will be make it into a release so might be worth locally patching until it does?
Created attachment 324610 [details] ebuild applying en_gb_crash_fix.patch
Created attachment 324658 [details, diff] en_gb_crash_fix.patch Fixed the original patch submitted by Scott Thomson. Thanks for the pointer to where the problem was; however your patch missed a "(%i%%)" and on my en_GB machine it still crashed.
I've encountered this too on en_GB.UTF-8, be great if the patch works (will try it out over the coming days).
For me LANG=en_GB.UTF-8. I haven't experienced any crashes since I've been using my ebuild. (In reply to comment #16) > I've encountered this too on en_GB.UTF-8, be great if the patch works (will > try it out over the coming days).
Imported the patch to Portage as 1.2.0-r1. Thanks for the patch.
Appears to have sorted things here, will report back if I encounter any more related problems. Thanks for the patch and ebuild update.
Didn't you used to get added to cc: automatically when commenting/adding stuff to a bug? Anyway, thanks Ciprian++ for sorting out the patch and to Samuli++ for getting it promptly into the tree, for the record no more crashes for me \o/
*** Bug 440120 has been marked as a duplicate of this bug. ***
stabilization is happening at bug 429484 so no need for filing new bugs about this same issue, like done in bug 440120