From owner-freebsd-current@FreeBSD.ORG Sun Nov 30 14:09:02 2008 Return-Path: <owner-freebsd-current@FreeBSD.ORG> Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27BD01065670 for <freebsd-current@freebsd.org>; Sun, 30 Nov 2008 14:09:02 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 911CF8FC13 for <freebsd-current@freebsd.org>; Sun, 30 Nov 2008 14:09:01 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl144-35.kln.forthnet.gr [195.74.243.35]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mAUE8pLp029096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 30 Nov 2008 16:08:56 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mAUE8pRP002231; Sun, 30 Nov 2008 16:08:51 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mAUE8ni0002230; Sun, 30 Nov 2008 16:08:49 +0200 (EET) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas <keramida@freebsd.org> To: "Peter Wemm" <peter@wemm.org>, "Garrett Cooper" <yanefbsd@gmail.com> References: <87wseo731o.fsf@kobe.laptop> <87fxlcba7p.fsf@kobe.laptop> <87myfjma0k.fsf@kobe.laptop> <e7db6d980811282047o5a7ed4cerc466db6d51e616a4@mail.gmail.com> Date: Sun, 30 Nov 2008 16:08:49 +0200 In-Reply-To: <e7db6d980811282047o5a7ed4cerc466db6d51e616a4@mail.gmail.com> (Peter Wemm's message of "Fri, 28 Nov 2008 20:47:00 -0800") Message-ID: <873ah9l30u.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mAUE8pLp029096 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.271, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.13, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: freebsd-current@freebsd.org Subject: Re: tty problems in recent head? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current <freebsd-current.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sun, 30 Nov 2008 14:09:02 -0000 On Fri, 28 Nov 2008 20:47:00 -0800, "Peter Wemm" <peter@wemm.org> wrote: >> The xterm processes that get stuck seem to be spinning near line 1854 of >> sched_ule.c. Running `info threads' on a live kernel after xterm starts >> spinning on a CPU shows: After a bit of help from kib@ and ed@ this seems to be wrong. The xterm processes were spinning in userspace, calling ioctl(fd, FIONREAD, ...). On Sat, 29 Nov 2008 16:02:03 -0800, "Garrett Cooper" <yanefbsd@gmail.com> wrote: > Might be another compiler issue. There's an issue with > -fstrict-aliasing (at least) on all versions of g++ up to 4.2.3: > <http://lists.copyleft.no/pipermail/pyrex/2007-November/003071.html>. > Are there some compiler warnings when compiling kernel / screen? > Also, have you tried with just COPTFLAGS disabled? Today I managed to reproduce this with a kernel that doesn't use optimizations at all, so fortunately this is not a compiler bug :) I'm testing a patch by Ed Schouten to see if it fixes this, and I will post more details after a day or so of running with the patch.