Re: panic at sched_add_internal

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Fri, 16 Jul 2004 08:30:05 +0900 (JST)
On Fri, 16 Jul 2004 08:03:00 +0900 (JST)
Norikatsu Shigemura <nork_at_freebsd.org> wrote:
> 	Oops, another panic has happend.

	Now, I'm using old(?) current kernel:-(.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[thread 100124]
Stopped at      turnstile_wait+0x17a:   movl    %eax,0x10(%edx)
db> trace
turnstile_wait(c301e340,c0877f40,c36e4420,c0877f40,f9) at turnstile_wait+0x17a
_mtx_lock_sleep(c0877f40,0,c07bd610,f9,0) at _mtx_lock_sleep+0x125
_mtx_lock_flags(c0877f40,0,c07bd610,f9,0) at _mtx_lock_flags+0x64
msleep(cf5d3c30,c08a8ae0,4c,c07c26af,0) at msleep+0x4a4
bwait(cf5d3c30,4c,c07c26af,e3e07b04,e3e07a6c) at bwait+0x70
bufwait(cf5d3c30,0,0,800,0) at bufwait+0x38
breadn(c3ac1d68,0,0,800,0) at breadn+0x314
bread(c3ac1d68,0,0,800,0) at bread+0x4c
ffs_read(e3e07b70,c088b880,0,c0883f48,e3e07b48) at ffs_read+0x38f
ufs_readdir(e3e07c98,e3e07c4c,c056a1ff,e3e07c98,c3d42948) at ufs_readdir+0xd8
ufs_vnoperate(e3e07c98,c3d42948,8,c07b86bd,e3e07c9c) at ufs_vnoperate+0x18
null_bypass(e3e07c98,20002,c34eb420,0,c3d42948) at null_bypass+0xdf
getdirentries(c34eb420,e3e07d14,c07dbeae,3df,4) at getdirentries+0x125
syscall(807002f,81b002f,bfad002f,8076500,8076500) at syscall+0x2a0
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (196, FreeBSD ELF32, getdirentries), eip = 0x6822e85f, esp = 0xbfadce94, ebp = 0xbfadceb0 ---
db> p %edx
c05d580a
db> reset
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	$ nm /boot/kernel/kernel.debug | grep turnstile_wait
	c05d5690 T turnstile_wait
	$ addr2line -e /boot/kernel/kernel.debug 0xc05d580a
	/usr/src/sys/kern/subr_turnstile.c:517

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void
turnstile_wait(struct turnstile *ts, struct lock_object *lock,
    struct thread *owner)
{
[...]
			TAILQ_INSERT_TAIL(&ts->ts_blocked, td, td_lockq);
		mtx_unlock_spin(&td_contested_lock);
		MPASS(td->td_turnstile != NULL);
-->		LIST_INSERT_HEAD(&ts->ts_free, td->td_turnstile, ts_hash);
		MPASS(owner == ts->ts_owner);
	}
	td->td_turnstile = NULL;
[...]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Received on Thu Jul 15 2004 - 21:30:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:01 UTC