From owner-freebsd-current@FreeBSD.ORG Tue Jun 19 11:49:47 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04FB4106566C; Tue, 19 Jun 2012 11:49:47 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id BE7658FC08; Tue, 19 Jun 2012 11:49:44 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id 439D1D48131; Tue, 19 Jun 2012 13:49:38 +0200 (CEST) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 219A9877; Tue, 19 Jun 2012 13:49:37 +0200 (CEST) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id F2236EB82; Tue, 19 Jun 2012 11:49:36 +0000 (UTC) Date: Tue, 19 Jun 2012 13:49:36 +0200 From: Jeremie Le Hen To: freebsd-current@freebsd.org, freebsd-ia64@freebsd.org Message-ID: <20120619114936.GB70668@felucia.tataz.chchile.org> Mail-Followup-To: freebsd-current@freebsd.org, freebsd-ia64@freebsd.org References: <20120614105738.GA35741@mech-cluster241.men.bris.ac.uk> <20120614111505.GA36160@mech-cluster241.men.bris.ac.uk> <20120618085544.GA12592@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120618085544.GA12592@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: csup ends up in sigwai after "Shutting down connection to server", never exits X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2012 11:49:47 -0000 Anton, On Mon, Jun 18, 2012 at 09:55:44AM +0100, Anton Shterenlikht wrote: > On Thu, Jun 14, 2012 at 12:15:05PM +0100, Anton Shterenlikht wrote: > > On Thu, Jun 14, 2012 at 11:57:38AM +0100, Anton Shterenlikht wrote: > > > On ia64 r235474 and r235163 I get: > > > > > > # csup -L2 /root/ports-supfile > > > Parsing supfile "/root/ports-supfile" > > > Connecting to cvsup.uk.FreeBSD.org > > > Connected to 131.111.8.41 > > > Server software version: SNAP_16_1h > > > MD5 authentication started > > > MD5 authentication successful > > > Negotiating file attribute support > > > Exchanging collection information > > > Establishing multiplexed-mode data connection > > > Running > > > Updating collection ports-all/cvs > > > Shutting down connection to server > > > > > > csup never exits. > > > > > > >From top: > > > > > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > > > 33822 root 2 20 0 37496K 23352K sigwai 1 0:32 0.00% csup > > > > > > > > > On amd64 r236740M I don't see this problem. > > > > Just to update - I don't see this problem on ia64 r231193M. > > It seems the only relevant change in usr.bin/csup since then was: > > > > Index: usr.bin/csup/auth.c > > =================================================================== > > --- usr.bin/csup/auth.c (revision 231193) > > +++ usr.bin/csup/auth.c (working copy) > > @@ -293,7 +293,7 @@ > > gettimeofday(&tv, NULL); > > pid = getpid(); > > ppid = getppid(); > > - srand(tv.tv_usec ^ tv.tv_sec ^ pid); > > + srandom(tv.tv_usec ^ tv.tv_sec ^ pid); > > addrlen = sizeof(laddr); > > error = getsockname(config->socket, (struct sockaddr *)&laddr, &addrlen); > > if (error < 0) { > > I was thinking of doing a binary search for this, > but realised that I'd have to build/install world, > not just kernel, right? This will take a *long* time. I think recompiling the kernel and the libraries csup depends on will be enough. -- Jeremie Le Hen Men are born free and equal. Later on, they're on their own. Jean Yanne