cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Autobuild test error Tru64

From: Tor Arntsen <tor_at_spacetec.no>
Date: Thu, 12 Jul 2007 20:31:33 +0200

On 7/12/07, Tor Arntsen <tor_at_spacetec.no> wrote:
> This test:
> ./runtests.pl 225 ; ps -ef | grep sockfilt ; ./runtests.pl 226
>
> shows it running, sure enough..
> tor 41299 1 10.4 12:02:17 pts/0 0:00.99
> ./server/sockfilt --port 8992 --logfile log/sockctrl.log --pidfile
> .sockfilt.pid
>
> I'll have a closer look at this later, but it looks like the proper
> fix would be in the termination handling (in this particular case it
> looks like ftpserver.pl is not waiting for sockfilt to terminate).

Ok, analysis revised. There _is_ an apparent timing problem, but that
is relevant only when running the two tests as follows:

./runtests.pl 225; ./runtests.pl 226

In this case the sockfilt program hasn't properly terminated before
the next incarnation starts (on Tru64 at least). This can be fixed
with:

Index: ftpserver.pl
===================================================================
RCS file: /cvsroot/curl/curl/tests/ftpserver.pl,v
retrieving revision 1.81
diff -u -r1.81 ftpserver.pl
--- ftpserver.pl 24 Apr 2007 21:30:39 -0000 1.81
+++ ftpserver.pl 12 Jul 2007 18:05:59 -0000
@@ -119,6 +119,7 @@
 }
 $SIG{INT} = \&catch_zap;
 $SIG{KILL} = \&catch_zap;
+$SIG{TERM} = \&catch_zap;

 my $sfpid;

However, the problem seen with ./runtests.pl 225 226
is a different one (and the one showing up in the autobuilds,
naturally). I haven't found the cause yet, but there's something fishy
going on: Here's the ftpd.log
20:28:32 ====> Client connect
20:28:32 > "220- _ _ ____ _ "
20:28:32 > "220- ___| | | | _ \| | "
20:28:32 > "220- / __| | | | |_) | | "
20:28:32 > "220- | (__| |_| | _ <| |___ "
20:28:32 > "220 \___|\___/|_| \_\_____|"
20:28:32 < "USER anonymous"
20:28:32 > "331 We are happy you popped in!"
20:28:32 < "PASS ftp_at_example.com"

And it just quits there.
Received on 2007-07-12