Subject: mput's dying, leaving users logged in, ftpwho says 'STOR xxx'

From: <[email-masked]>
Date: Mon, 22 Apr 1996 18:27:12 -0700 (PDT)

We're having some very difficult problems to duplicate on one of our ftp
servers.. it's running 2.4.2-beta-11..

the problem users are reporting (mostly users using some gui ftp client or
even the windows 95 command line one) is that when they do an 'mput'
(the gui users reporting when they try and transfer lots of files)
that after a random amount of files, the connection freezes and they have
to login again.. i've been trying to duplicate this for some time, and
just managed now to do so after doing an mput of 465 files (using ncftp)
it stopped just after it finished sending one of the files..
i hit ctrl-c and it asked if i wanted to continue with the mput, i said
yes, and it merrily went on its way and transered the other 500 files i
was uploaded to try and dupolicate the problem..

has anyone experienced this before? is there a fix?
the OS is sunos 4.1.4, the ftpd is 2.4.2-beta-11

---

From: Yanming PENG <[email-masked]>
Date: Tue, 23 Apr 96 10:32:42 METDST

> servers.. it's running 2.4.2-beta-11..
I have different, but similar problem on Linux 1.2.x with all wu-ftp
version I have tested.

The problem is if you mput many files, the ftpd will generate a SEGV
and die. It is repeatable on Linux. The server will die on the 58th
upload. I statically linke the ftpd and trace it, find out it blows
up on one of the reg* call from libc when checking the file names.
I tried different libc. Only one combination of kernel/libc may solve 
this problem (God knows if it will blow up at the 500th upload)..

> the OS is sunos 4.1.4, the ftpd is 2.4.2-beta-11

The workaround I used is to skip the file name check in ftpd.c. Another
way is to check only the first 57 files.
 
--
Dr. Yanming PENG | [email-masked] http://peng.mech.kuleuven.ac.be |
Tel.32-16-322516 | The trouble with doing something right the first time is |
Fax:32-16-322987 | that nobody appreciates how difficult it was.            |