Subject: pkg/12550: pkg_add does not detect ftp timeout
To: None <gnats-bugs@gnats.netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 04/04/2001 18:25:10
>Number:         12550
>Category:       pkg
>Synopsis:       pkg_add does not detect ftp timeout
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 04 15:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kimmo Suominen
>Release:        1.5 w/ pkg_* from 2001-03-25
>Organization:
>Environment:
System: NetBSD chronologie.gw.com 1.5 NetBSD 1.5 (GENERIC) #1: Sun Nov 19 15:44:10 PST 2000 matt@cheetah.local:/u1/kobj/GENERIC vax

pkg_add from 2001-03-25

>Description:
pkg_add does not detect that the connection to the ftp server has timed
out and will end up in an infinite loop.
>How-To-Repeat:
Try to install something huge like perl on a really slow machine like
a Vaxstation 2000.

# pkg_add -v ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/vax/All/perl-5.6.0.tgz
[...]

Reusing FDs 4/5 for communication to FTP coprocess

ftp> nlist p5-Data-Dumper*.t[bg]z /var/tmp/pkg.04074b
ftp: No control connection for command.
pkg_add: expect: select() timeout
Signal 2 received, cleaning up.
pkg_add: <ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/vax/All/roller-1.5.tgz> (2) add of dependency `cpogm-*' failed!
Package `roller-1.5' depends on `logtime-*'.
Reusing FDs 4/5 for communication to FTP coprocess

ftp> nlist logtime-*.t[bg]z /var/tmp/pkg.04045f
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

ftp> cd .
pkg_add: expect: select() timeout

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: