NetBSD Problem Report #36567

From martin@duskware.de  Wed Jun 27 16:22:26 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id F1C0663B882
	for <gnats-bugs@gnats.netbsd.org>; Wed, 27 Jun 2007 16:22:25 +0000 (UTC)
Message-Id: <20070627161309.394F363B882@narn.NetBSD.org>
Date: Wed, 27 Jun 2007 16:13:09 +0000 (UTC)
From: oshima-ya@yagoto-urayama.jp
Reply-To: oshima-ya@yagoto-urayama.jp
To: netbsd-bugs-owner@NetBSD.org
Subject: Panic when booting kernel after Jun 12 2007
X-Send-Pr-Version: www-1.0

>Number:         36567
>Category:       port-x68k
>Synopsis:       Panic when booting kernel after Jun 12 2007
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    mhitch
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 27 16:25:00 +0000 2007
>Closed-Date:    Mon Jul 09 20:05:57 +0000 2007
>Last-Modified:  Mon Jul 09 20:05:57 +0000 2007
>Originator:     Yasushi Oshima
>Release:        NetBSD 4.99.21
>Organization:
>Environment:
NetBSD x68030 4.99.21 NetBSD 4.99.21 (GENERIC) #1: Thu Jun 27 04:30:47 JST 2007
root@sweety:/usr/src/sys/arch/x68k/compile/GENERIC x68k

>Description:
After changing sys/arch/x68k/x68k/{trap.c,locore.s} with http://mail-index.netbsd.org/source-changes/2007/06/12/0000.html, 
kernel panic occurs when booting.

uvm_fault(0x1d4970, 0x206f0000, 0x1) -> 0xe
  type 8, code [mmu,,ssw]: 401076d
trap type 8, code = 0x401076d, v = 0x206f0086
kernel program counter = 0xd571a
kernel: MMU fault trap
pid = 2, lid = 1, pc = 000D571A, ps = 2100, sfc = 1, dfc = 1
Registers:
             0        1        2        3        4        5        6        7
dreg: 02465A80 00000000 02469C18 7FFFFFFF FFFFFFFF 02464F50 00000000 00000000
areg: 206F003C 007C5FF0 0014911E 001E5428 02469C08 00000000 02CFFE14 FFFFCFFC

Kernel stack (02CFFBF8):
CFFBF8: 0014C98C 02CFFC80 00000080 02469C18 7FFFFFFF FFFFFFFF 02464F50 00000000
CFFC18: 00000000 0014911E 001E5428 02469C08 00000000 00000001 001E5428 00000000
CFFC38: 00000001 00000000 00000000 00000000 00000001 00000000 00000000 00000008
CFFC58: 00000000 00000000 00000000 00000000 02CFFE14 00000054 02CFFC80 00000008
CFFC78: 0401076D 206F0086 02465A80 00000000 02469C18 7FFFFFFF FFFFFFFF 02464F50
CFFC98: 00000000 00000000 206F003C 007C5FF0 0014911E 001E5428 02469C08 00000000
CFFCB8: 02CFFE14 FFFFCFFC 00000000 2100000D 571AB008 16EA076D 6DC0082C 206F0086
CFFCD8: 206F0086 206F003C 4A68004A 000D5722 000D5720 000D571E 206FFFFF 004A0040
CFFCF8: 000FF6EC 206F003C 00000000 00000040 00000040 A0200000 206F0086 00000000
CFFD18: 02465A80 02CFFD18 02469C40 02469C20 00149138 0000000A 00000000 02465A80
CFFD38: 02469C08 000E21E4 00000000 00000000 00000000 00000000 00000000 00000000
CFFD58: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
CFFD78: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
CFFD98: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
CFFDB8: 00000000 00000000 00000000 00000000 00000000 00000000 02CFFDDC 000FA1C6
CFFDD8: 007C5F90 02CFFE20 000FB0F2 001E5ED0 001E5ED0 02CFFE3C 007C5F90 02465A80
panic: MMU fault
Stopped in pid 2.1 (scsibus0) at        netbsd:cpu_Debugger+0x6:        unlk    a6
db> bt
cpu_Debugger(206f2100,8,fcec2,2cffc04,2cffc68) + 6
panic(1ae302,2469c18,7fffffff,ffffffff,2464f50) + 118
trap(2cffc80,8,401076d,206f0086) + 258
coredump(2465a80,0,2469c20) + c0
sigexit(2465a80,a) + d4
postsig(a,80,2469c08,2465a80,2469c08) + d2
lwp_userret(2465a80) + e6
trap(9,0,0) + 34e
rei(?)
mutex_vector_exit(1e65a8) + 9c
lwp_startup(2465c00,2465a80) + 1e
lwp_trampoline() + 4
db> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
>2                0        0          0 2 0x20002    1         scsibus0
 1                0        0          0 2 0x20000    1             init initexe
 0               -1        0          0 2 0x20002    2           system       *
db> 

>How-To-Repeat:
Boot GENERIC kernel of NetBSD/x68k 4.99.21.

>Fix:
--- sys/arch/x68k/x68k/locore.s 12 Jun 2007 03:34:33 -0000      1.79
+++ sys/arch/x68k/x68k/locore.s 27 Jun 2007 15:41:55 -0000
@@ -721,8 +721,9 @@
        clrl    %sp@-                   | VA == none
        clrl    %sp@-                   | code == none
        movl    #T_SSIR,%sp@-           | type == software interrupt
+       pea     %sp@(12)                | fp = trap frame address
        jbsr    _C_LABEL(trap)          | go handle it
-       lea     %sp@(12),%sp            | pop value args
+       lea     %sp@(16),%sp            | pop value args
        movl    %sp@(FR_SP),%a0         | restore
        movl    %a0,%usp                |   user SP
        moveml  %sp@+,#0x7FFF           | and all remaining registers


And please pull-up this to netbsd-4.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-x68k-maintainer->mhitch
Responsible-Changed-By: mhitch@netbsd.org
Responsible-Changed-When: Wed, 27 Jun 2007 17:54:33 +0000
Responsible-Changed-Why:
My fault, I'll fix it.


From: "Michael L. Hitch" <mhitch@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36567 CVS commit: src/sys/arch/x68k/x68k
Date: Wed, 27 Jun 2007 17:55:51 +0000 (UTC)

 Module Name:	src
 Committed By:	mhitch
 Date:		Wed Jun 27 17:55:51 UTC 2007

 Modified Files:
 	src/sys/arch/x68k/x68k: locore.s

 Log Message:
 Ooops - I missed another call to trap.  Fixes PR#36567.


 To generate a diff of this commit:
 cvs rdiff -r1.79 -r1.80 src/sys/arch/x68k/x68k/locore.s

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36567 CVS commit: [netbsd-4] src/sys/arch/x68k/x68k
Date: Sun,  1 Jul 2007 17:14:35 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Sun Jul  1 17:14:35 UTC 2007

 Modified Files:
 	src/sys/arch/x68k/x68k [netbsd-4]: locore.s

 Log Message:
 Pull up following revision(s) (requested by mhitch in ticket #751):
 	sys/arch/x68k/x68k/locore.s: revision 1.80
 Ooops - I missed another call to trap.  Fixes PR#36567.


 To generate a diff of this commit:
 cvs rdiff -r1.76.24.1 -r1.76.24.2 src/sys/arch/x68k/x68k/locore.s

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: mhitch@netbsd.org
State-Changed-When: Mon, 09 Jul 2007 20:05:57 +0000
State-Changed-Why:
Fix was applied and has been pulled up to netbsd-4.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.