Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: LOCKDEBUG panic on x68k



In article <080429202458.M0122559%mirage.ceres.dti.ne.jp@localhost>
I wrote:

> I see the similar panic on news68k.
> 
> 20080427 kernel (updated around 3:00am UTC) with pmap_motorola.c
> fixes works with LOCKDEBUG, so some preemption changes after that
> might cause this problem.

Ah, no, a kernel with LOCKDEBUG + DIAGNOSTIC boots upto mountroot()
but a kernel with LOCKDEBUG without DIAGNOSTIC gets the panic.
There is some #ifdef botch around LOCKDEBUG initialization?

---
NEWS> bo /2
NetBSD/news68k Primary Boot
NetBSD/news68k Secondary Boot, Revision 1.6
(tsutsui@mirage, Sat Dec 22 08:58:25 JST 2007)
Booting hd(0,0,0)
1705440+40644+324864 [147792+141761]=0x242834

panic: lockdebug_lookup: uninitialized lock (lock=0x15d5e10)
Stopped in pid 0.1 (system) at  netbsd:cpu_Debugger+0x6:        unlk    a6
db> tr
cpu_Debugger(29e2704,1a86c0,0,246e64,246e78) + 6
panic(190d15,15d5e10,29ed000,19ed000,1a86c0) + 178
lockdebug_wantlock(15d5e10,b20bc,0) + 124
mutex_vector_enter(15d5e10,1df540,246ed0,246ee0,b5e22) + 170
uvm_map_reference(15d5e00,29ed000,41727,0,15d5e00) + 12
uvm_map_submap(1df540,19ed000,29ed000,15d5e00,15d5e00,19ed000,29ed000,0) + 100
uvm_km_suballoc(1df540,246f50,246f4c,1000000,0) + 94
uvm_pager_init(1482000,ffc00000,246f7c,246f78,1eb7ec) + 24
uvm_init(243000,3e8000,ffc000,ffeffffc,0) + 68
uvm_fault(0x1df540, 0x1450000, 0x1) -> 0xe
  type 8, code [mmu,,ssw]: 402074d
trap type 8, code = 0x402074d, v = 0x1450ffa
kernel program counter = 0x1589e4
kernel: MMU fault trap
Caught exception in ddb.
main() + 1e
db> show lock 0x15d5e10
lock address : 0x00000000015d5e10 type     :     sleep/adaptive
shared holds :                  0 exclusive:                  0
shares wanted:                  0 exclusive:                  0
current cpu  :                  0 last held:                  0
current lwp  : 0x00000000001a86c0 last held: 000000000000000000
last locked  : 000000000000000000 unlocked : 000000000000000000
initialized  : 0x00000000000b21b6
owner field  : 000000000000000000 wait/spin:                0/0

Turnstile chain at 0x1ee100.
=> No active turnstile for this lock.
db>
---

Note 0x000b21b6 is in uvm_map_setup() so it's initialized properly.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index