NetBSD Problem Report #45963

From tsutsui@ceres.dti.ne.jp  Fri Feb 10 06:55:01 2012
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id D8B9163DE95
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Feb 2012 06:55:00 +0000 (UTC)
Message-Id: <201202100654.q1A6svHL024273@mirage.localdomain>
Date: Fri, 10 Feb 2012 15:54:57 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: sun3x random hang in m68k_compat_13_sigreturn13_stub()
X-Send-Pr-Version: 3.95

>Number:         45963
>Category:       port-sun3
>Synopsis:       sun3x random hang in m68k_compat_13_sigreturn13_stub()
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    port-sun3-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 10 07:00:00 +0000 2012
>Closed-Date:    Sat Aug 11 14:07:26 +0000 2012
>Last-Modified:  Sat Aug 11 14:07:26 +0000 2012
>Originator:     Izumi Tsutsui
>Release:        NetBSD 5.99.64 updated around 201202100600Z
>Organization:
>Environment:
System: NetBSD sun3 5.99.64 sun3/80 68030 64MB RAM
Architecture: m68k
Machine: sun3
>Description:
NetBSD/sun3 GENERIC3X kernel boots, but it sometimes hang at random place:

---
EEPROM boot device... sd(0,0,0) 
Boot: sd(0,0,0) 
>> NetBSD/sun3 ufsboot [1.13]
ufsboot: trying netbsd
1821196+114676 [174512+160311]=0x22a914
starting program at 0x4000
console is ttya
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.64 (GENERIC3X) #105: Fri Feb 10 15:07:22 JST 2012
        tsutsui@mirage:/usr/src/sys/arch/sun3/compile/GENERIC3X
Model: sun3x 80
fpu: mc68882
total memory = 65536 KB
avail memory = 62136 KB
mainbus0 (root)
obio0 at mainbus0
iommu0 at obio0 addr 0x60000000
memerr0 at obio0 addr 0x61001000 ipl 7: (Parity memory)
intreg0 at obio0 addr 0x61001400
zsc0 at obio0 addr 0x62000000 ipl 6: (softpri 3)
kbd0 at zsc0 channel 0: baud rate 1200
ms0 at zsc0 channel 1: baud rate 1200
zsc1 at obio0 addr 0x62002000 ipl 6: (softpri 3)
zstty0 at zsc1 channel 0 (console i/o)
zstty1 at zsc1 channel 1
eeprom0 at obio0 addr 0x64000000
clock0 at obio0 addr 0x640007f8 ipl 5: mk48t02
le0 at obio0 addr 0x65002000 ipl 3: address 08:00:20:07:c4:e6
le0: 8 receive buffers, 2 transmit buffers
dma0 at obio0 addr 0x66001000 ipl 2: rev 0
esp0 at obio0 addr 0x66000000 ipl 2: ESP100, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
fdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
obmem0 at mainbus0
bwtwo0 at obmem0 addr 0x50300000 (1152x900)
enabling interrupts
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <FUJITSU, M1606S-512, 6237> disk fixed
sd0: 1041 MB, 3457 cyl, 6 head, 102 sec, 512 bytes/sect x 2131992 sectors
sd0: async, 8-bit transfers, tagged queueing
boot device: sd0a
root on sd0a dumps on sd0b
root file system type: ffs
Tue Feb  7 13:59:42 GMT 2012
Starting root file system check:
/dev/rsd0a: file system is clean; not checking
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
/dev/rsd0g: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
kern.no_sa_support: 1 -> 1
ddb.onpanic: 1 -> 0
kern.module.verbose: 0 -> 1
Starting network.
Hostname: chariot
NIS domainname: mydomain
IPv6 mode: host
Configuring network interfaces: le0.
Adding interface aliases:.
Building databases: dev, utmp, utmpx done
Starting syslogd.
Starting rpcbind.
Starting ypbind.
Mounting all filesystems...
Clearing temporary files.
Starting amd.
Updating fontconfig cache: done
Creating a.out runtime link editor directory cache.
^C [no responce here (while responds to ping), send BREAK]
Stopped in pid 0.7 (system) at  netbsd:cpu_Debugger+0x6:        unlk    a6
db> tr
cpu_Debugger(?)
zs_abort(0) + 6
zstty_stint(f8415dcc,0) + 8a
zsc_intr_hard(f8415dc0) + a8
zshard(f8415dc0) + c
isr_autovec(0,f8404860,0,f83cedc0,2004f808) + 6e
m68k_compat_13_sigreturn13_stub(f81d7c50,f81be2c0) + 66
xc_thread(f83cedc0) + 60
lwp_trampoline() + e
db> c

---

Sometimes it hangs right after mountroot.

At least 5.99.56 kernel (around 20111115) works fine.

>How-To-Repeat:
Boot -current GENERIC3X kernel on 3/80 to multi user.

>Fix:
Unknown.
Wrong spl values/operations around softint(9)?

---

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 11 Aug 2012 23:07:26 +0900
State-Changed-Why:
No longer reproducible on both HEAD and netbsd-6, assume fixed.


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