This definitely looks like a kernel bug. I have been developing a network app recently, and ran into exactly the same problem: the program crashes leaving its listening socket open. lsof doesn't list the socket. netstat -tpl lists the socket but doesn't have a process listed for it (this is as root so there *should* be a process listed).
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:2345 *:* LISTEN - tcp 0 0 *:www *:* LISTEN 813/apache ... The problem is that now I have to reboot since all future attempts to bind on port 2345 fail. I run a pristine 2.6.8.1 kernel rather than a debian kernel (so this is obviously not a debian bug). Regards, Matt -- Matt Kern http://www.undue.org/