[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ProFTP 1.2.0pre4 patch in CVS tree (terminates on signal 11)



Unless you really need a feature provided by ProFTPD that isn't provided by
OpenBSD's ftpd (see the ftpd man page for a list of these), you are better
off going with the OpenBSD ftpd, as it has been audited for security!  The
recent problems with ProFTPD show that it has not received any such auditing.

Anyways, this sig11 may be because of ProFTPD's bad handling of setproctitle

There is a patch floating around for it...

--- src/main.c.orig     Sun Aug 22 13:30:08 1999
+++ src/main.c  Sun Aug 22 13:30:20 1999
@@ -359,7 +359,7 @@
   vsnprintf(statbuf, sizeof(statbuf) - 1, fmt, msg);
 
 #ifdef HAVE_SETPROCTITLE
-  setproctitle(fmt,msg);
+  setproctitle(statbuf);
 #endif /* HAVE_SETPROCTITLE */
 
   va_end(msg);

On Thu, 2 Sep 1999, Tor Houghton wrote:

 | 
 | I have problems with the ProFTPD update from the ports tree. Has anyone
 | else experienced segfaults?
 | 
 | Authentication works fine, but it segfaults when you try to issue a
 | command, e.g.
 | 
 | telnet ftp.bogus.net 21
 | Trying 193.214.208.178...
 | Connected to redlance.bogus.net.
 | Escape character is '^]'.
 | 220 ProFTPD 1.2.0pre4 Server (ftp.bogus.net) [redlance]
 | user ftp
 | 331 Anonymous login ok, send your complete e-mail address as password.
 | pass foo@bar.com
 | 230 Anonymous access granted, restrictions apply.
 | list
 | Connection closed by foreign host.
 | 
 | 
 | At this point, it crashes:
 | 
 | Sep  2 12:16:46 redlance proftpd[3991]: ProFTPD terminating (signal 11) 
 | Sep  2 12:16:46 redlance proftpd[3991]: ProFTPD terminating (signal 11) 
 | 
 | I'd include some ktrace output, but it's a) full of messy tab's and b)
 | somewhat long.
 | 
 | I am running it on a 2.3 (x86) machine.
 | 
 | Any help appreciated.
 | 
 | Tor.
 | 
 | 

---
I dress like a pimp
I walk with a limp
I see the Browns for free in
My low-rider blimp.