From nobody@FreeBSD.org  Wed Jan 28 03:58:10 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C5FDD16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <elofu17@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: COM-ports disabled in BIOS = FreeBSD Freeze
X-Send-Pr-Version: www-2.0

>Number:         62026
>Category:       misc
>Synopsis:       COM-ports disabled in BIOS = FreeBSD Freeze
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 28 04:00:34 PST 2004
>Closed-Date:    Sat Apr 24 00:54:27 PDT 2004
>Last-Modified:  Sat Apr 24 00:54:27 PDT 2004
>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:

From: Bruce Evans <bde@zeta.org.au>
To: Elof <elofu17@hotmail.com>
Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: misc/62026: COM-ports disabled in BIOS = FreeBSD Freeze
Date: Fri, 30 Jan 2004 01:46:58 +1100 (EST)

 On Wed, 28 Jan 2004, Elof wrote:
 
 > >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.
 
 There are already lots of existence checks.  Some BIOSes apparently "disable"
 com ports in such away that the existence checks pass.  Please include
 boot (-v) messages (just the sio parts) so that this can be debugged.
 
 Bruce
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Apr 24 00:54:13 PDT 2004 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62026 
>Unformatted:
