lkml.org 
[lkml]   [2004]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: waitid breaks telnet
On Wed, Dec 01, 2004 at 03:58:46PM -0800, Roland McGrath wrote:
> Since I can only manage so far to see this once in a blue moon, and you can
> produce it frequently, it would be helpful if you can diagnose the problem
> some. That is, figure out exactly what wrong results from a wait* call is
> at fault.

Hi Roland,
I've been playing with this most of the morning, finally got strace attached
to the telnet daemon, but it did me no good .. everything works when straced.

My technique was to replace /usr/sbin/in.telnetd with a script that invokes
the original binary under strace:

# cd /usr/sbin
# mv in.telnetd in.telnet.d.orig
# cat <<EOF >in.telnetd
/usr/bin/strace -ff -o /tmp/telnet.log.$$ /usr/sbin/in.telnetd.orig "$@"
EOF
# chmod 755 in.telnetd

Earlier this morning I systematically repeated my earlier, haphazard
experiments. I built three kernels from two sources: the first source
was the pure 2.6.7-rc1-bk7 tree, the second the same tree with the suspect
waitid patch applied. From these I built various kernels with and without
SMP and PREEMPT and ran at least seven 'telnet' tests on each. The results:

kernel smp preempt | 1 2 3 4 5 6 7 8 9
======================================================
bk7 Y Y | g g g g g g g
bk7+waitid Y Y | F F F F F F F
bk7+waitid N N | F g F F g g g F g

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.052 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site