Subject: BSDI, beta 11, and #define VIRTUAL

From: Jeremie Miller <[email-masked]>
Date: Thu, 25 Apr 1996 11:08:26 -0500

OK, after a long day yesterday, I at least found a temporary solution.  
The problem is as follows.

We have BSDI 2.0 and I tried installing the wu-ftpd beta 11 for some of 
our virtual web customers to do virtual anonymous ftp also.  Everything 
goes great during the compile(except for having to rename ver.o to ver.c 
in the Makefile) and everything seems to start/operate fine.  Then I try 
hitting a virtual ftp site with mozilla, and it pukes, network error.  
So I turn on the debugging, and see that mozilla is passing "mozilla@" 
as the password.  I then try that anonymous password with my standard 
UNIX ftp client, and TADA, death.  The log says "exiting on signal 
11"(SIGSEGV).  So I try logging in with _my_ email address as the 
password, [email-masked], and it works GREAT!.  After experimenting 
with passwords, only ones with 11 or fewer characters will cause death, 
*very* strange, just wait, it gets better!  Then I try logging into the 
main server(non-virtual) anonymously, and it works with _any_ password, 
hmmmm.  I try pointing the virtual root to the same dir as ~ftp, and 
then the virtual sites work great.  So I make an EXACT duplicate of 
~ftp, and point the virtual root at that, and death happens.  After 
playing with the virtual roots for some time, I found out it was _also_ 
dependant on the # of characters in the pathname. So, with no Idea what 
wha happening, I start throwing debugging stuff into the source, and I 
tracked it down to as far as I can take it with my limited C ability.  
If I stick in a "return;" into the top of the functions "show_message" 
and "show_readme" in extensions.c, it is fixed.  So something is 
happening in those 2 functions that causes a memory violation(SIGSEGV) 
on BSDI, and it is dependant on the length of the anonymous users 
password and the path for the virtual root.  I can't find it, so if 
anyone else does, help would be great!

Whewh...*wipes brow*

Sorry bout the rambling on, but it is hard to explain.

Thanks!

Jeremie Miller
[email-masked]