You are not logged in.
I did a -Syu today and one of the packages that were in need for update was grep-2.6.2-1. After this, I could not suspend my laptop using pm-utils. When checking htop, I saw that one particular process stod out 'grep yadayada pm-utils-something' was eating CPU, one of the cores were up to 100%.
Has anyone else experienced this? I have downgraded to previous version 2.6.1-1 and it now works as intended.
Edit: I should really read bugreports more frequently... Looks like the new version is known to be messed up?
/Yours truly, Mr Dumbass
Last edited by Möller (2010-03-30 19:40:40)
Offline
http://bugs.archlinux.org/task/18881
maybe you can help to debug this issue
Last edited by wonder (2010-03-30 19:50:26)
Give what you have. To someone, it may be better than you dare to think.
Offline
i found the problem (and posted it at the bug tracker):
"seems to be a bug in grep.
"grep -vxFf foo bar" should write all lines of bar to stdout, which do not occur in foo.
if the first line of foo is empty, the new version of grep hangs. the old version didn't show this behavior.
that's the reason why pm-suspend fails ...."
ccc1
Offline
Hmmm... I just suspended my laptop overnight with latest grep and pm-utils suspending... what should I test to see what the difference is in my system?
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Are you sure you had grep-2.6.2?
Offline
here, grep 2.6.2-1 don't break pm-utils
Offline
here, grep 2.6.2-1 don't break pm-utils
i can suspend fine sometimes as well. it depends on the content of two files created by pm-suspend.
as i wrote before, it's a bug in grep. just do the following:
$ echo -e "\n1" > foo
$ echo -e "1\n2" > bar
$ grep -vxFf foo bar
and you'll see that the new version of grep will hang ...
Offline
It looks like grep is changing the behavior for -Ff, so even when the hang is fixed, things still won't work. See http://lists.gnu.org/archive/html/bug-g … 00037.html or the aforementioned Arch bug comments.
I've filed an upstream pm-utils bug report that includes a patch.
https://bugs.freedesktop.org/show_bug.cgi?id=27437
Last edited by JoelHough (2010-04-03 10:07:07)
Offline
It looks like grep is changing the behavior for -Ff, so even when the hang is fixed, things still won't work. See http://lists.gnu.org/archive/html/bug-g … 00037.html or the aforementioned Arch bug comments.
I've filed an upstream pm-utils bug report that includes a patch.
https://bugs.freedesktop.org/show_bug.cgi?id=27437
no need to patch pm-utils.
grep -vxFf /var/run/pm-utils/pm-suspend/storage/parameters.rm /var/run/pm-utils/pm-suspend/storage/parameters
is behaving as it should, since it's using the -x switch.
ccc1
Offline
JoelHough wrote:It looks like grep is changing the behavior for -Ff, so even when the hang is fixed, things still won't work. See http://lists.gnu.org/archive/html/bug-g … 00037.html or the aforementioned Arch bug comments.
I've filed an upstream pm-utils bug report that includes a patch.
https://bugs.freedesktop.org/show_bug.cgi?id=27437no need to patch pm-utils.
grep -vxFf /var/run/pm-utils/pm-suspend/storage/parameters.rm /var/run/pm-utils/pm-suspend/storage/parameters
is behaving as it should, since it's using the -x switch.ccc1
It looks like grep 2.6.3 fixed everything and works as expected with -x, so yeah, no need to patch anything.
Offline