From owner-freebsd-current Mon Aug 12 5:23:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20EC937B400; Mon, 12 Aug 2002 05:23:10 -0700 (PDT) Received: from pump3.york.ac.uk (pump3.york.ac.uk [144.32.128.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id C42EB43E91; Mon, 12 Aug 2002 05:23:08 -0700 (PDT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from ury.york.ac.uk (ury.york.ac.uk [144.32.108.81]) by pump3.york.ac.uk (8.10.2/8.10.2) with ESMTP id g7CCN7726401; Mon, 12 Aug 2002 13:23:07 +0100 (BST) Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.12.3/8.12.3) with ESMTP id g7CCN6v6063936; Mon, 12 Aug 2002 13:23:06 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.12.3/8.12.3/Submit) with ESMTP id g7CCN62e063933; Mon, 12 Aug 2002 13:23:06 +0100 (BST) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Mon, 12 Aug 2002 13:23:06 +0100 (BST) From: Gavin Atkinson X-X-Sender: To: Cc: Subject: 100% reproducable hang: serial related Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, [bde cc'd - it seems to be sio related] I have an i386 toshiba laptop, running FreeBSD 5.0-CURRENT #4: Sat Aug 10 13:27:55 BST 2002. I can get a 100% reproducible hang by doing the following: - Connect a serial cable between my laptop and a PC - run "tip -9600 com1" (where com1 in /etc/remote is the default: "com1:dv=/dev/cuaa0:br#9600:pa=none:") - power down the PC. My laptop hangs solid, and DDB cannot be entered from the keyboard. Note that if I close tip before powering down the PC, i don't get a hang. I am not using ACPI. Interestingly, if I type something and then power up the PC again, that character will echo on the screen before locking up again. By power-cycling the PC frequently, i could actually carry on using my laptop. Power cycling the PC (either on->off or off->on) seems to unlock the laptop for a fraction of a second. I can also hold ctrl-alt-escape on my laptop, and power up or down the PC, which will drop my laptop into DDB. From that point on, ddb works fine, continuing back to userspace works fine, and my laptop is no longer hung. Note however that often, from this point on until I quit tip, all characters I send seem to be sent as uppercase. Is it possible that the serial driver is getting confused, and the entry into DDB is causing the hardware and/or some lock to be reset? Can I get any other information to help diagnose this problem? while in DDB during the hang, a show locks gives: exclusive sleep mutex Giant r=0 (0xc0389d60) locked @ /usr/src/sys/kern/kern_intr.c:535 though I guess this is due to the keyboard event interrupt. As this is 100% reproducible, i am able to test anything people want testing. Thanks, Gavin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message