9 Oct 08:30
pppd sometimes hangs on close
Andrew Gaylard <ag <at> computer.org>
2008-10-09 06:30:34 GMT
2008-10-09 06:30:34 GMT
We are using pppd-2.4.4 (built from source, with debugging) to terminate multiple incoming GRE-like tunnels on a server (Ubuntu Linux 2.6.24-19-server). Occasionally (perhaps once in 1000 times) we get the following problem: - the parent process (the process that does the GRE marshalling) hangs on a write() to the pty master. This hang keeps the CPU at 100%. - at the same time, the child process (pppd) hangs in tty_disestablish_ppp trying to set the previous line discipline on the pty slave (sys-linux.c:560). If I attach to the parent process with gdb, display a backtrace, and detach, this appears to break the deadlock, and both of them exit cleanly like nothing was wrong. The same happens if I use "strace -p" on the parent process. So this looks like a race condition somewhere. My pppd options look like this: ms-dns 41.204.40.19 ms-dns 41.204.40.9 novj asyncmap 0 noauth local lock hide-password -ac -pc +pap mtu 1468 mru 1468(Continue reading)
There is a common but false belief that a remote IP address for the link
needs to be known.
RSS Feed