From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 28 04:00:39 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6060216A4CE for ; Wed, 28 Jan 2004 04:00:39 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBB9043D48 for ; Wed, 28 Jan 2004 04:00:34 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0SC0YFR065220 for ; Wed, 28 Jan 2004 04:00:34 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0SC0YUX065215; Wed, 28 Jan 2004 04:00:34 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 28 Jan 2004 04:00:34 -0800 (PST) Resent-Message-Id: <200401281200.i0SC0YUX065215@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Elof Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5FDD16A4CE for ; Wed, 28 Jan 2004 03:58:10 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1A3043D46 for ; Wed, 28 Jan 2004 03:58:09 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i0SBw9dL052539 for ; Wed, 28 Jan 2004 03:58:09 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i0SBw9eb052538; Wed, 28 Jan 2004 03:58:09 -0800 (PST) (envelope-from nobody) Message-Id: <200401281158.i0SBw9eb052538@www.freebsd.org> Date: Wed, 28 Jan 2004 03:58:09 -0800 (PST) From: Elof To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: misc/62026: COM-ports disabled in BIOS = FreeBSD Freeze X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 12:00:39 -0000 >Number: 62026 >Category: misc >Synopsis: COM-ports disabled in BIOS = FreeBSD Freeze >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 28 04:00:34 PST 2004 >Closed-Date: >Last-Modified: >Originator: Elof >Release: 4.9-STABLE >Organization: BTL >Environment: FreeBSD foo.bar.se 4.9-STABLE FreeBSD 4.9-STABLE #0: Tue Jan 27 16:00:26 CET 2004 root@foo.bar.se:/usr/obj/usr/src/sys/FOO-KERNEL-4-9 i386 Run on a Dell Optiplex machine with a PIII 600MHz. >Description: (I'm running on a cvsup:ed RELENG_4 world) I have enabled a login on a serial port via /etc/ttys: ttyd0 "/usr/libexec/getty std.9600" vt100 on secure Yesterday I added some NICs and got some PnP configuration errors in BIOS. While troubleshooting this, I disabled everything I didn't use; all serial (COM) ports, the parallell port, the builtin NIC, etc. When I finally got a working config I forgot to enable the stuff I had disabled. I started FreeBSD and it booted fine. Everything looked as it should on the screen. The last line was the login-prompt. The problem was that the machine had freezed. No response to keystrokes and no network traffic, not even responses to ARP-requests. Nothing on the screen indicates what's wrong. I rebooted the machine and booted on a LiveCD, ran fsck on my /var partition, only to see that nothing revealing was logged to /var/log. Suddenly I remembered my dialin line in /etc/ttys. I disabled it and now there were no freeze. >How-To-Repeat: Disable all COM-ports in BIOS. Enable a dialin getty in /etc/ttys that use a (nonexistent) serial port. >Fix: This is a problem that is manually introduced. My hopes are that you could add some funtions that test wether any serial port exist before trying to use it. Then you could avoid the freeze and print/log a warning. >Release-Note: >Audit-Trail: >Unformatted: