From owner-freebsd-current@FreeBSD.ORG Sun Jun 24 14:32:04 2007 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7685716A400 for ; Sun, 24 Jun 2007 14:32:04 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 0242213C448 for ; Sun, 24 Jun 2007 14:32:03 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.1/8.14.1) with ESMTP id l5OEKSSR044018 for ; Sun, 24 Jun 2007 18:20:28 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 24 Jun 2007 18:20:28 +0400 (MSD) From: Dmitry Morozovsky To: current@FreeBSD.org Message-ID: <20070624180338.J30415@woozle.rinet.ru> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (woozle.rinet.ru [0.0.0.0]); Sun, 24 Jun 2007 18:20:28 +0400 (MSD) Cc: Subject: endlesst loop/panic while attaching SATA disk on the fly X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2007 14:32:04 -0000 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 at ata4-master SATA300 ad8: detached ad8: 152627MB at ata4-master SATA300 ad8: detached ad8: 152627MB at ata4-master SATA300 ad8: detached ad8: 152627MB 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 *** ------------------------------------------------------------------------