From owner-freebsd-current Sat Apr 4 01:17:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA20245 for freebsd-current-outgoing; Sat, 4 Apr 1998 01:17:55 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lsd.relcom.eu.net (ache@lsd.relcom.eu.net [193.125.27.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA20174; Sat, 4 Apr 1998 01:17:45 -0800 (PST) (envelope-from ache@lsd.relcom.eu.net) Received: (from ache@localhost) by lsd.relcom.eu.net (8.8.8/8.8.8) id NAA15630; Sat, 4 Apr 1998 13:15:48 +0400 (MSD) (envelope-from ache) Message-ID: <19980404131548.12530@nagual.pp.ru> Date: Sat, 4 Apr 1998 13:15:48 +0400 From: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= To: Peter Wemm Cc: phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Working patch *with* splhigh() (Was Re: More info RE: X slowdown in -current) Mail-Followup-To: Peter Wemm , phk@freebsd.org, current@freebsd.org References: <19980404003518.63228@nagual.pp.ru> <19980404013115.59864@nagual.pp.ru> <199804032316.HAA06402@spinner.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199804032316.HAA06402@spinner.netplex.com.au>; from peter@netplex.com.au on Sat, Apr 04, 1998 at 07:16:02AM +0800 Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Apr 04, 1998 at 07:16:02AM +0800, Peter Wemm wrote: > This looks like stack garbage.. atv will not be initialized if > uap->tv == NULL. > > Also, check if timo is < 0... That could have interesting side effects > if it's happening. > > Try printing > "timo %d uap->tv %08x uap %d %d", timo, uap->tv, atv.tv_sec, atv.tv_usec > if timo < 1. I run with this checks for select and poll if (timo < 1 || timo == 0 && uap->tv) { if (timo < 1 || timo == 0 && SCARG(uap, timeout) != INFTIM) { timo < 1 never happens But timo == 0 with uap->tv != 0 happens often for select (first 's' letter means select). Below is not stack garbadge but real atv values. Note that Netscape and xterm not present in output with this check but Window Manager itself present (proc 256), it explains why this bug not manifestate itself with remote X server. I see no diagnostics for poll. s proc 113 sleeping indefenitely timo 0 atv -266891643 -215441820 s proc 120 sleeping indefenitely timo 0 atv 246723 0 s proc 159 sleeping indefenitely timo 0 atv -215652224 -215564624 s proc 159 sleeping indefenitely timo 0 atv -266891643 -215564700 s proc 195 sleeping indefenitely timo 0 atv -266891595 -215343516 s proc 195 sleeping indefenitely timo 0 atv 1 0 s proc 200 sleeping indefenitely timo 0 atv -263650680 35954688 s proc 256 sleeping indefenitely timo 0 atv -263070080 -263070052 s proc 256 sleeping indefenitely timo 0 atv -263070080 -266478764 s proc 256 sleeping indefenitely timo 0 atv -263070208 -263070180 s proc 256 sleeping indefenitely timo 0 atv -263070592 -263070564 s proc 256 sleeping indefenitely timo 0 atv -263070720 -263070692 s proc 256 sleeping indefenitely timo 0 atv -263070848 -263070820 s proc 256 sleeping indefenitely timo 0 atv -263071232 -263071204 s proc 256 sleeping indefenitely timo 0 atv -263071360 -263071332 s proc 256 sleeping indefenitely timo 0 atv -263071616 -263071588 s proc 256 sleeping indefenitely timo 0 atv -263071872 -263071844 s proc 256 sleeping indefenitely timo 0 atv -263071872 -266478688 s proc 256 sleeping indefenitely timo 0 atv -263072000 -263071972 s proc 256 sleeping indefenitely timo 0 atv -263072128 -263072100 s proc 256 sleeping indefenitely timo 0 atv -263072384 -263072356 s proc 256 sleeping indefenitely timo 0 atv -263849944 20770816 s proc 256 sleeping indefenitely timo 0 atv -267203892 -259644804 s proc 256 sleeping indefenitely timo 0 atv 0 20713472 s proc 256 sleeping indefenitely timo 0 atv 19681280 -215643488 s proc 263 sleeping indefenitely timo 0 atv 0 0 s proc 266 sleeping indefenitely timo 0 atv -259581184 -266498320 s proc 266 sleeping indefenitely timo 0 atv 15581184 -215644256 s proc 271 sleeping indefenitely timo 0 atv -263792536 20914176 s proc 274 sleeping indefenitely timo 0 atv -263070336 -263070308 s proc 274 sleeping indefenitely timo 0 atv -263070464 -263070436 s proc 274 sleeping indefenitely timo 0 atv -263071488 -263071460 s proc 274 sleeping indefenitely timo 0 atv -267289162 -214860208 s proc 274 sleeping indefenitely timo 0 atv 0 0 s proc 274 sleeping indefenitely timo 0 atv 0 5644288 s proc 274 sleeping indefenitely timo 0 atv 0 5648384 s proc 80 sleeping indefenitely timo 0 atv -215653184 -215499088 s proc 80 sleeping indefenitely timo 0 atv -266891643 -215499164 s proc 80 sleeping indefenitely timo 0 atv -272646708 3 s proc 80 sleeping indefenitely timo 0 atv -272646808 62 s proc 80 sleeping indefenitely timo 0 atv -272646808 67 s proc 80 sleeping indefenitely timo 0 atv -272646808 68 s proc 80 sleeping indefenitely timo 0 atv -272646808 69 s proc 80 sleeping indefenitely timo 0 atv -272646808 80 s proc 80 sleeping indefenitely timo 0 atv -272646808 83 s proc 80 sleeping indefenitely timo 0 atv -272646808 84 s proc 80 sleeping indefenitely timo 0 atv -272646808 85 s proc 80 sleeping indefenitely timo 0 atv -272646808 87 s proc 80 sleeping indefenitely timo 0 atv -272646808 89 s proc 80 sleeping indefenitely timo 0 atv -272646808 91 s proc 80 sleeping indefenitely timo 0 atv -272646808 99 s proc 80 sleeping indefenitely timo 0 atv 5332 29908 s proc 80 sleeping indefenitely timo 0 atv 5390 29966 s proc 80 sleeping indefenitely timo 0 atv 5456 30032 s proc 80 sleeping indefenitely timo 0 atv 5774 46734 s proc 80 sleeping indefenitely timo 0 atv 7614 7614 s proc 92 sleeping indefenitely timo 0 atv -263662744 37101568 -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message