Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2007 18:20:28 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        current@FreeBSD.org
Subject:   endlesst loop/panic while attaching SATA disk on the fly
Message-ID:  <20070624180338.J30415@woozle.rinet.ru>

next in thread | raw e-mail | index | archive | help
Dear colleagues,

(HEAD/i386 from 22 June, WITNESS and INVARIANTS disabled)

attaching SATA disk to ASUS k8n-lr (SMP on Athlon64 X2) while system is running 
leads to endless attach-detach loop:

ad8: detached
ad8: 152627MB <Seagate ST3160811AS 3.AAE> at ata4-master SATA300
ad8: detached
ad8: 152627MB <Seagate ST3160811AS 3.AAE> at ata4-master SATA300
ad8: detached
ad8: 152627MB <Seagate ST3160811AS 3.AAE> at ata4-master SATA300
ad8: detached
ad8: 152627MB <Seagate ST3160811AS 3.AAE> at ata4-master SATA300
ad8: detached

system is hardly responsible, but issuing `atacontrol detach ata4' drops it 
into

kernel trap 12 with interrupts disabled

Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x188
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc04d4035
stack pointer           = 0x28:0xe34a7c60
frame pointer           = 0x28:0xe34a7c78
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 13 (swi4: clock sio)
[thread pid 13 tid 100001 ]
Stopped at      _mtx_lock_sleep+0x85:   movl    0x188(%esi),%eax
db> bt
Tracing pid 13 tid 100001 td 0xc48fbe00
_mtx_lock_sleep(c49b9cec,c48fbe00,0,0,0,...) at _mtx_lock_sleep+0x85
softclock(0,0,c066a1f4,46b,0,...) at softclock+0x277
ithread_loop(c48f9310,e34a7d38,b8dd,0,0,...) at ithread_loop+0x1ab
fork_exit(c04c3a30,c48f9310,e34a7d38) at fork_exit+0x97
fork_trampoline() at fork_trampoline+0x8
--- trap 0, eip = 0, esp = 0xe34a7d70, ebp = 0 ---
db> 

Will try to do the same with WITNESS+INVARIANTS...

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070624180338.J30415>