Current-Users archive

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

Re: ftpd problems (probably kernel's fault)

On Tue, Apr 29, 2008 at 3:17 PM, Andrew Doran <> wrote:
> On Tue, Apr 29, 2008 at 02:46:03PM +0200, Julio M. Merino Vidal wrote:
>  >
>  > With your change, the message:
>  >
>  >     ftp: Can't send abort message: No buffer space available
>  >
>  > is gone, but connections to the local ftpd still get stalled.
>  Can you see what ftpd is stalled on? Could you please get a backtrace from
>  it, and any other threads hanging in tstile or anything else that is
>  interesting?
>  You can get a kernel backtrace using ddb, or gdb. For gdb run the following
>         ps -axs -o pid,lid,wchan,laddr,comm | grep -i whatever

portal:~> ps -axs -o pid,lid,wchan,laddr,comm | grep -i ftpd
17278    1 netio    ffff80004b661420 ftpd: localhost: anonymous/: RETR

>  Pick an interesting value of laddr.. Then
>  gdb /mykernel
>  target kvm /dev/mem
>  kvm proc $laddr
>  bt

Wow, that's neat.  Here is it:

#0  0xffffffff802cc21d in mi_switch (l=0xffff80004b661420) at
#1  0xffffffff802c7f6a in sleepq_block (timo=0, catch=true) at
#2  0xffffffff802a69a9 in cv_timedwait_sig (cv=0xffff8000045fe0f0,
mtx=0xffff8000479e6f80, timo=0) at
#3  0xffffffff80317b52 in sbwait (sb=0xffff8000045fe0b0) at
#4  0xffffffff80314742 in sosend (so=0xffff8000045fe020, addr=0x0,
uio=0xffff80004af6db90, top=0x0, control=0x0, flags=<value optimized
    l=0xffff80004b661420) at /usr/src/sys/kern/uipc_socket.c:897
#5  0xffffffff802fdacd in soo_write (fp=<value optimized out>,
offset=<value optimized out>, uio=0x0, cred=<value optimized out>,
    flags=<value optimized out>) at /usr/src/sys/kern/sys_socket.c:107
#6  0xffffffff802f2eae in dofilewrite (fd=8, fp=0x0,
buf=0x7f7ffd439000, nbyte=16384, offset=0x0, flags=0,
    at /usr/src/sys/kern/sys_generic.c:355
#7  0xffffffff802f2fe2 in sys_write (l=<value optimized out>,
uap=0xffff80004af6dc80, retval=0xffff80004af6dc30)
    at /usr/src/sys/kern/sys_generic.c:323
#8  0xffffffff80373f3a in syscall (frame=0xffff80004af6dc80) at
#9  0xffffffff801005e8 in Xsyscall ()


Julio M. Merino Vidal <>

Home | Main Index | Thread Index | Old Index