ftpd in debug mode crashes in vsyslog
joerg at nlanr.net
Wed May 12 20:57:38 PDT 2004
This might be a variation on the va_list_q problem discussed earlier,
but I am not sure.
I am runnning a dual Opteron 244 on Tyan 2882 with 4GB PC3200.
ftpd is started as ./ftpd -d -ll -S -A -D, or ./ftpd -d -ll -S -A
If you connect from a client, you get the welcome prompt, as soon
as you provide your user name, the server dies. gdb log on ftpd.core
#0 0x0000000000410f16 in __vfprintf (fp=0x200e94ea0, fmt0=0x4130d9 "%s FTP server (%s) ready.", ap=0x7fffffffe080)
#1 0x000000000040fb7e in vfprintf (fp=0x200e94ea0, fmt0=0x4130d9 "%s FTP server (%s) ready.", ap=0x7fffffffe080)
#2 0x000000000040f494 in vsyslog (pri=95, fmt=0x4130d9 "%s FTP server (%s) ready.", ap=0x7fffffffe080)
#3 0x00000000004085a2 in reply (n=220, fmt=0x4130d9 "%s FTP server (%s) ready.") at ftpd.c:2382
#4 0x00000000004054fe in main (argc=0, argv=0x7fffffffeb28, envp=0x7fffffffe0c0) at ftpd.c:626
If you leave out -d from the ftpd command line, reply() won't call
vsyslog, and subsequently the server runs stable. I have spent some
time looking into the problem and studying the code, but I can't find
anything obviously wrong.
Please Cc joerg at nlanr.net on reply, as I am not presently subscribed to
More information about the freebsd-amd64