Re: csup ends up in sigwai after "Shutting down connection to server", never exits

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Thu, 14 Jun 2012 12:15:05 +0100
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)
_at__at_ -293,7 +293,7 _at__at_
        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) {


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
Received on Thu Jun 14 2012 - 09:15:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:28 UTC