You are not logged in.

#1 2010-03-30 19:37:26

Möller
Member
Registered: 2009-11-19
Posts: 16

Updated grep broke pm-utils?

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

#2 2010-03-30 19:50:09

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Updated grep broke pm-utils?

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

#3 2010-03-30 22:24:16

ccc1
Member
Registered: 2009-04-16
Posts: 111

Re: Updated grep broke pm-utils?

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

#4 2010-03-30 22:54:37

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Updated grep broke pm-utils?

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

#5 2010-03-30 23:05:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,540
Website

Re: Updated grep broke pm-utils?

Are you sure you had grep-2.6.2?

Offline

#6 2010-03-30 23:09:07

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: Updated grep broke pm-utils?

here, grep 2.6.2-1 don't break pm-utils

Offline

#7 2010-03-30 23:15:45

ccc1
Member
Registered: 2009-04-16
Posts: 111

Re: Updated grep broke pm-utils?

takedown wrote:

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

#8 2010-04-03 10:04:00

JoelHough
Member
Registered: 2010-04-03
Posts: 4

Re: Updated grep broke pm-utils?

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

#9 2010-04-05 09:14:28

ccc1
Member
Registered: 2009-04-16
Posts: 111

Re: Updated grep broke pm-utils?

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=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

#10 2010-04-06 18:00:02

JoelHough
Member
Registered: 2010-04-03
Posts: 4

Re: Updated grep broke pm-utils?

ccc1 wrote:
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=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

It looks like grep 2.6.3 fixed everything and works as expected with -x, so yeah, no need to patch anything.

Offline

Board footer

Powered by FluxBB