Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-23 Thread Adrian Wontroba
On Sat, Oct 15, 2011 at 10:45:18PM +0300, Mikolaj Golub wrote: On Sat, 15 Oct 2011 11:50:22 +0200 Stefan Bethke wrote: SB Seems to do the trick, thanks! Thanks for testing! Committed. I am going to MFC it soon. Gentlemen, thank you! I can confirm that at $JOB with a RELENG_8 system post the

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-23 Thread Chris Rees
On 14 Oct 2011 21:50, Stefan Bethke s...@lassitu.de wrote: Am 14.10.2011 um 14:03 schrieb Jilles Tjoelker: On Wed, Oct 12, 2011 at 11:25:35PM +0100, Adrian Wontroba wrote: On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: I won't be in a position to create a simpler test

Running portupgrade from cron (was: /usr/bin/script eating 100% cpu with portupgrade and xargs)

2011-10-23 Thread Stefan Bethke
Am 23.10.2011 um 08:47 schrieb Chris Rees: Worst of all, you're running portupgrade from cron without reading UPDATING, which is just asking for trouble. What specifically is your concern here? I've been running portupgrade from cron for six years on a multitude of systems with great

Re: Running portupgrade from cron (was: /usr/bin/script eating 100% cpu with portupgrade and xargs)

2011-10-23 Thread Ross
On Sun, Oct 23, 2011 at 2:14 PM, Stefan Bethke s...@lassitu.de wrote: Am 23.10.2011 um 13:11 schrieb Ross: On Sun, Oct 23, 2011 at 1:32 PM, Stefan Bethke s...@lassitu.de wrote: Am 23.10.2011 um 08:47 schrieb Chris Rees: Worst of all, you're running portupgrade from cron without reading

Re: Running portupgrade from cron (was: /usr/bin/script eating 100% cpu with portupgrade and xargs)

2011-10-23 Thread Kurt Jaeger
Hi! Worst of all, you're running portupgrade from cron without reading UPDATING, which is just asking for trouble. What specifically is your concern here? Yes, but updating correctly in first place is better than trying to understand what happened to software looking for libpng.so.N

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
On Wed, 12 Oct 2011 23:25:35 +0100 Adrian Wontroba wrote: AW On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: I won't be in a position to create a simpler test case, raise a PR or try patches till Tuesday evening (UK) at the earliest. AW So far I have been unable to

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
On Fri, 14 Oct 2011 14:03:37 +0200 Jilles Tjoelker wrote: JT On Wed, Oct 12, 2011 at 11:25:35PM +0100, Adrian Wontroba wrote: On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: I won't be in a position to create a simpler test case, raise a PR or try patches till Tuesday

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
On Fri, 14 Oct 2011 22:50:32 +0200 Stefan Bethke wrote: SB I finally figured out why my ports aren't updating anymore: when running portupgrade -a --batch from cron, stdin is /dev/null, and that produces the gobs of ^D in the output, as well as the script file that portupgrade creates.

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Stefan Bethke
Am 15.10.2011 um 09:36 schrieb Mikolaj Golub: On Fri, 14 Oct 2011 22:50:32 +0200 Stefan Bethke wrote: SB I finally figured out why my ports aren't updating anymore: when running portupgrade -a --batch from cron, stdin is /dev/null, and that produces the gobs of ^D in the output, as well

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
On Sat, 15 Oct 2011 11:50:22 +0200 Stefan Bethke wrote: SB Am 15.10.2011 um 09:36 schrieb Mikolaj Golub: On Fri, 14 Oct 2011 22:50:32 +0200 Stefan Bethke wrote: SB I finally figured out why my ports aren't updating anymore: when running portupgrade -a --batch from cron, stdin is

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-14 Thread Jilles Tjoelker
On Wed, Oct 12, 2011 at 11:25:35PM +0100, Adrian Wontroba wrote: On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: I won't be in a position to create a simpler test case, raise a PR or try patches till Tuesday evening (UK) at the earliest. So far I have been unable to

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-14 Thread Stefan Bethke
Am 14.10.2011 um 14:03 schrieb Jilles Tjoelker: On Wed, Oct 12, 2011 at 11:25:35PM +0100, Adrian Wontroba wrote: On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: I won't be in a position to create a simpler test case, raise a PR or try patches till Tuesday evening (UK) at the

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-12 Thread Adrian Wontroba
On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: I won't be in a position to create a simpler test case, raise a PR or try patches till Tuesday evening (UK) at the earliest. So far I have been unable to reproduce the problem with portupgrade (and will probably move to

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-07 Thread Adrian Wontroba
On Tue, Oct 04, 2011 at 02:15:24PM +0300, Mikolaj Golub wrote: For the record. The issue has been fixed in CURRENT and the fix has been merged to STABLE. At $JOB with a recent version of RELENG_8 and the new script (1.24.30.5 2011/10/04 11:08:31 trociny) I am getting hangs (system close to

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-06 Thread Mikolaj Golub
On Tue, 04 Oct 2011 18:34:07 +0200 Michiel Boland wrote: MB On 10/04/2011 13:15, Mikolaj Golub wrote: On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golubtroc...@freebsd.org wrote: MB [...] I believe the behaviour is after this commit:

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-04 Thread Mikolaj Golub
On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golub troc...@freebsd.org wrote: On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote:  RK On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick  RK free...@jdc.parodius.com wrote:   On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote:  

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-04 Thread Michiel Boland
On 10/04/2011 13:15, Mikolaj Golub wrote: On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golubtroc...@freebsd.org wrote: [...] I believe the behaviour is after this commit: http://svnweb.freebsd.org/base?view=revisionrevision=125848 I think we should skip select on STDIN after reading EOF from

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-04 Thread Ronald Klop
On Tue, 04 Oct 2011 13:15:24 +0200, Mikolaj Golub to.my.troc...@gmail.com wrote: On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golub troc...@freebsd.org wrote: On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote: RK On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick RK

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-19 Thread Chris Torek
On Sep 18, 2011 11:25 AM, Kostik Belousov kostik...@gmail.com wrote: Please note that interpreting the receiving of 0 bytes on the terminal as EOF is only a convention. If done absolutely properly, script shall not interpret zero-byte read as EOF. Might be, the reasonable thing to do would be

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Ronald Klop
On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick free...@jdc.parodius.com wrote: On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: Hi, I'm running portupgrade in screen to update all the ports for

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Jeremy Chadwick
On Sun, Sep 18, 2011 at 08:47:13AM +0200, Ronald Klop wrote: On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick free...@jdc.parodius.com wrote: On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: Hi, I'm

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Ronald Klop
On Sun, 18 Sep 2011 12:58:32 +0200, Mikolaj Golub troc...@freebsd.org wrote: On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote: RK On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick RK free...@jdc.parodius.com wrote: On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote:

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Mikolaj Golub
On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote: RK On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick RK free...@jdc.parodius.com wrote: On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: Hi, I'm

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Mikolaj Golub
On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: RK It is a while since I programmed C, but why will writing 0 bytes give RK the reader an end-of-file? Shouldn't the fd be closed to indicate RK end-of-file? AFAIR, this trick with writing 0 to emulate EOF because we can't close the fd --

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Kostik Belousov
On Sun, Sep 18, 2011 at 02:54:34PM +0300, Mikolaj Golub wrote: On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: RK It is a while since I programmed C, but why will writing 0 bytes give RK the reader an end-of-file? Shouldn't the fd be closed to indicate RK end-of-file? AFAIR,

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Mikolaj Golub
On Sun, 18 Sep 2011 20:24:23 +0300 Kostik Belousov wrote: KB On Sun, Sep 18, 2011 at 02:54:34PM +0300, Mikolaj Golub wrote: On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: RK It is a while since I programmed C, but why will writing 0 bytes give RK the reader an end-of-file?

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Kostik Belousov
On Sun, Sep 18, 2011 at 11:57:57PM +0300, Mikolaj Golub wrote: On Sun, 18 Sep 2011 20:24:23 +0300 Kostik Belousov wrote: KB On Sun, Sep 18, 2011 at 02:54:34PM +0300, Mikolaj Golub wrote: On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: RK It is a while since I programmed

/usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-17 Thread Ronald Klop
Hi, I'm running portupgrade in screen to update all the ports for 9-BETA2/9-CURRENT on amd64. While doing this script eats 100% cpu. Because portupgrade -fa crashed I'm running this command to update the remaining non-updates ports. find /var/db/pkg -name +DESC -mtime +2 |cut -d / -f 5 |

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-17 Thread Jeremy Chadwick
On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: Hi, I'm running portupgrade in screen to update all the ports for 9-BETA2/9-CURRENT on amd64. While doing this script eats 100% cpu. Because portupgrade -fa