NetBSD Problem Report #40734
From www@NetBSD.org Tue Feb 24 12:28:18 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 6337863C1C0
for <gnats-bugs@gnats.netbsd.org>; Tue, 24 Feb 2009 12:28:18 +0000 (UTC)
Message-Id: <20090224122640.5C58C63C1C0@www.NetBSD.org>
Date: Tue, 24 Feb 2009 12:26:40 +0000 (UTC)
From: Christoph_Egger@gmx.de
Reply-To: Christoph_Egger@gmx.de
To: gnats-bugs@NetBSD.org
Subject: crash in comintr()
X-Send-Pr-Version: www-1.0
>Number: 40734
>Category: kern
>Synopsis: crash in comintr()
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 24 12:30:00 +0000 2009
>Last-Modified: Wed May 06 07:30:03 +0000 2009
>Originator: Christoph Egger
>Release: 5.99.7
>Organization:
>Environment:
NetBSD/amd64 5.99.7
>Description:
Run NetBSD/amd64 with serial console.
<dmesg snippet>
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
</dmesg snippet>
Very rarely a sudden crash happens in sys/dev/ic/com.c:comintr()
in this line:
iir = CSR_READ_1(regsp, COM_REG_IIR);
regsp is a NULL pointer when the crash happens.
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip 0xffffffff802380d5 cs 8 rflags 202 cr2 ffff80004e810000 cpl 8 rsp ffff80004ba75ad8
db> bt
breakpoint+0x5
comintr+0x53a
Xintr_ioapic_edge10+0xef
--- interrupt ---
x86_stihlt+0x6
idle_loop+0x198
db> machine cpu 1
Using cpu 1
db> bt
acpitimer_read_safe+0x18
binuptime+0x3b
mi_switch+0x4a
idle_loop+0xda
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: Christoph Egger <cegger@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40734 CVS commit: src/sys/dev/ic
Date: Wed, 6 May 2009 07:27:43 +0000
Module Name: src
Committed By: cegger
Date: Wed May 6 07:27:43 UTC 2009
Modified Files:
src/sys/dev/ic: com.c
Log Message:
add KASSERT to identify when PR kern/40734 happens again.
It happened to me twice and to Emmanuel Dreyfus (reported on port-amd64 ML)
To generate a diff of this commit:
cvs rdiff -u -r1.287 -r1.288 src/sys/dev/ic/com.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.