Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419973 - =xfce-extra/xfce4-power-manager-1.2.0: crash with SIGSEGV
Summary: =xfce-extra/xfce4-power-manager-1.2.0: crash with SIGSEGV
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
: 440120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-06 19:11 UTC by Ciprian Ciubotariu
Modified: 2012-10-29 13:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
GDB stachtrace (stacktrace.txt,51.06 KB, text/plain)
2012-06-06 19:14 UTC, Ciprian Ciubotariu
Details
emerge --info (emerge.info,6.35 KB, text/plain)
2012-06-06 19:15 UTC, Ciprian Ciubotariu
Details
gdb stacktrace (gdb-stacktrace,8.30 KB, text/plain)
2012-07-02 15:41 UTC, Mikko Mensonen
Details
ebuild applying en_gb_crash_fix.patch (xfce4-power-manager-1.2.0-r1.ebuild,1.72 KB, text/plain)
2012-09-22 11:36 UTC, Ciprian Ciubotariu
Details
en_gb_crash_fix.patch (en_gb_crash_fix.patch,601 bytes, patch)
2012-09-22 20:28 UTC, Ciprian Ciubotariu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ciprian Ciubotariu 2012-06-06 19:11:40 UTC
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.
Comment 1 Ciprian Ciubotariu 2012-06-06 19:14:55 UTC
Created attachment 314461 [details]
GDB stachtrace

Added stacktrace
Comment 2 Ciprian Ciubotariu 2012-06-06 19:15:17 UTC
Created attachment 314463 [details]
emerge --info
Comment 3 Ciprian Ciubotariu 2012-06-06 19:16:29 UTC
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.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-06-06 19:18:30 UTC
Report this also to http://bugzilla.xfce.org/ with the trace and add a link here to the "See also: " field.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-06-06 19:19:15 UTC
(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?
Comment 6 Ciprian Ciubotariu 2012-06-06 19:38:23 UTC
(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.
Comment 7 Ciprian Ciubotariu 2012-06-06 19:39:21 UTC
(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?
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-06-06 20:00:11 UTC
(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...
Comment 9 Ciprian Ciubotariu 2012-06-06 20:19:28 UTC
(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!
Comment 10 Mikko Mensonen 2012-07-01 20:07:49 UTC
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).
Comment 11 Mikko Mensonen 2012-07-02 15:41:03 UTC
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.
Comment 12 Mikko Mensonen 2012-07-02 16:08:30 UTC
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
Comment 13 Scott Thomson 2012-09-21 11:47:53 UTC
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?
Comment 14 Ciprian Ciubotariu 2012-09-22 11:36:37 UTC
Created attachment 324610 [details]
ebuild applying en_gb_crash_fix.patch
Comment 15 Ciprian Ciubotariu 2012-09-22 20:28:52 UTC
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.
Comment 16 Neil 2012-09-25 14:41:11 UTC
I've encountered this too on en_GB.UTF-8, be great if the patch works (will try it out over the coming days).
Comment 17 Ciprian Ciubotariu 2012-09-25 15:18:35 UTC
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).
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2012-09-25 15:25:44 UTC
Imported the patch to Portage as 1.2.0-r1.    Thanks for the patch.
Comment 19 Neil 2012-09-25 23:56:44 UTC
Appears to have sorted things here, will report back if I encounter any more related problems.

Thanks for the patch and ebuild update.
Comment 20 Scott Thomson 2012-09-27 12:46:41 UTC
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/
Comment 21 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-29 12:56:48 UTC
*** Bug 440120 has been marked as a duplicate of this bug. ***
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2012-10-29 13:06:58 UTC
stabilization is happening at bug 429484 so no need for filing new bugs about this same issue, like done in bug 440120