Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
To: None <tsutsui@NetBSD.org, gnats-admin@netbsd.org,>
From: Christoph Franzen <ChristophFranzen@gmx.net>
List: netbsd-bugs
Date: 07/22/2007 18:05:03
The following reply was made to PR port-alpha/36628; it has been noted by GNATS.

From: "Christoph Franzen" <ChristophFranzen@gmx.net>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
Date: Sun, 22 Jul 2007 20:01:54 +0200

 Hello.
 
 > > > Could you get ddb(4) prompt by sending break via serial console at
 > > > the point?
 > > 
 > > Yes, the ddb unfortunately gives no further information> 
 > Maybe INSTALL kernel in cdhdtape doesn't have symbol table
 > so trace command doesn't work properly.
 > I've put cdhdtape image which contains GENERIC with some printfs
 
 This time "trace" works.
 
 There seems to be something wrong however. The ECU configuration 
 shows the SCSI adapter at IRQ 11 while Netbsd shows EISA IRQ 12. The 
 host adapter is revision E.
 
 --------
 NetBSD 4.0_BETA2 (GENERIC) #3: Mon Jul 23 00:13:17 JST 2007
 	tsutsui@mirage:/r/work/src-4.0/src/sys/arch/alpha/compile/GENERIC
 DEC2000 model 300, 150MHz, s/n 
 8192 byte page size, 1 processor.
 total memory = 32768 KB
 (2048 KB reserved for PROM, 30720 KB used by NetBSD)
 avail memory = 20200 KB
 mainbus0 (root)
 cpu0 at mainbus0: ID 0 (primary), 21064-0
 jensenio0 at mainbus0
 pckbc0 at jensenio0 port 0x60
 pms0 at pckbc0 (aux slot)
 pckbc0: aux slot interrupting at vector 0x990
 wsmouse0 at pms0 mux 0
 com0 at jensenio0 port 0x3f8: ns8250 or ns16450, no fifo
 com0: console
 com0: interrupting at vector 0x900
 com1 at jensenio0 port 0x2f8: ns8250 or ns16450, no fifo
 com1: interrupting at vector 0x920
 lpt0 at jensenio0 port 0x3bc
 lpt0: interrupting at eisa irq 1
 mcclock0 at jensenio0 port 0x170: mc146818 or compatible
 eisa0 at jensenio0
 ahb0 at eisa0 slot 2: Adaptec AHA-1742A SCSI
 ahb0: interrupting at eisa irq 12
 scsibus0 at ahb0: 8 targets, 8 luns per target
 Compaq NetFlex-2 ENET-TR at eisa0 slot 3 not configured
 isa0 at jensenio0
 depca: address not found
 attimer0 at isa0 port 0x40-0x43: AT Timer
 we1 at isa0 port 0x300-0x31f iomem 0xcc000-0xcffff irq 10
 we1: WD8013EPC Ethernet (16-bit)
 we1: Ethernet address 00:00:c0:db:6c:2e
 vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
 wsdisplay0 at vga0 kbdmux 1
 wsmux1: connecting to wsdisplay0
 pcppi0 at isa0 port 0x61
 pcppi0: children must have an explicit unit
 midi0 at pcppi0: PC speaker (CPU-intensive output)
 spkr0 at pcppi0
 isabeep0 at pcppi0
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 pcppi0: attached to attimer0
 enabling interrupts
 Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:        ret   
   zero,(ra
 )
 db> trace
 cpu_Debugger() at netbsd:cpu_Debugger+0x4
 comintr() at netbsd:comintr+0x920
 com_jensenio_intr() at netbsd:com_jensenio_intr+0x24
 interrupt() at netbsd:interrupt+0x1f4
 XentInt() at netbsd:XentInt+0x1c
 --- interrupt (from ipl 0) ---
 spl0() at netbsd:spl0+0x30
 cpu_configure() at netbsd:cpu_configure+0x70
 configure() at netbsd:configure+0x44
 main() at netbsd:main+0x1bc
 locorestart() at netbsd:locorestart+0x64
 --- root of call graph ---
 db> ps/w
  PID          COMMAND     EMUL  PRI UTIME STIME WAIT-MSG    WAIT-
 CHANNEL
 >0            swapper   netbsd    0   0.0   0.0
 db> show event
 evcnt type 0: uvmmap ukh_alloc = 2
 evcnt type 0: uvmmap uke_free = 10
 evcnt type 0: uvmmap uke_alloc = 65
 evcnt type 0: uvmmap mlk_hint = 1
 evcnt type 0: uvmmap mlk_call = 6
 evcnt type 0: uvmmap map_call = 60
 evcnt type 0: uvmmap knomerge = 12
 evcnt type 0: uvmmap kbackmerge = 48
 evcnt type 1: cpu0 device = 6390298
 evcnt type 1: eisa irq 12 = 6390297
 evcnt type 1: vector 0x900 = 1
 db> show uvmexp
 Current UVM status:
   pagesize=8192 (0x2000), pagemask=0x1fff, pageshift=13
   2547 VM pages: 0 active, 0 inactive, 0 wired, 2418 free
   pages  0 anon, 0 file, 0 exec
   freemin=0, free-target=0, wired-max=0
   faults=0, traps=1, intrs=6390298, ctxswitch=0
   softint=0, syscalls=0, swapins=0, swapouts=0
   fault counts:
     noram=0, noanon=0, pgwait=0, pgrele=0
     ok relocks(total)=0(0), anget(retrys)=0(0), amapcopy=0
     neighbor anon/obj pg=0/0, gets(lock/unlock)=0/0
     cases: anon=0, anoncow=0, obj=0, prcopy=0, przero=0
   daemon and swap counts:
     woke=0, revs=0, scans=0, obscans=0, anscans=0
     busy=0, freed=0, reactivate=0, deactivate=0
     pageouts=0, pending=0, nswget=0
     nswapdev=0, swpgavail=0
     swpages=0, swpginuse=0, swpgonly=0, paging=0
 db> show vnode
 
 CPU 0: fatal kernel trap:
 
 CPU 0    trap entry = 0x4 (unaligned access fault)
 CPU 0    a0         = 0xfffffc00008d571c
 CPU 0    a1         = 0x29
 CPU 0    a2         = 0x13
 CPU 0    pc         = 0xfffffc000063cb60
 CPU 0    ra         = 0xfffffc000070377c
 CPU 0    pv         = 0xfffffc000063cb30
 CPU 0    curlwp    = 0xfffffc0000bdd528
 CPU 0        pid = 0, comm = swapper
 
 Caught exception in ddb.
 panic: longjmp botch from 0xfffffc0000412320
 Stopped in pid 0.1 (swapper) at 0x20:
 CPU 0: fatal kernel trap:
 [...] repeatedly, so I interrupted that.
 ------------