From owner-freebsd-current@FreeBSD.ORG Wed Sep 28 08:39:11 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BC7A106566C; Wed, 28 Sep 2011 08:39:11 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 16E9A8FC13; Wed, 28 Sep 2011 08:39:10 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1R8pfa-0006On-16; Wed, 28 Sep 2011 09:39:10 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1R8pfZ-0004ik-Rj; Wed, 28 Sep 2011 09:39:09 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id p8S8d9Hv052505; Wed, 28 Sep 2011 09:39:09 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id p8S8d9p4052504; Wed, 28 Sep 2011 09:39:09 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 28 Sep 2011 09:39:09 +0100 From: Anton Shterenlikht To: freebsd-current@freebsd.org, freebsd-ia64@freebsd.org Message-ID: <20110928083909.GA52495@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: freebsd-current@freebsd.org, freebsd-ia64@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: ia64 r225789 panic during "make installworld": Bad buffer logic, remain = 0 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: Wed, 28 Sep 2011 08:39:11 -0000 This is in single user mode. ===> usr.sbin/amd (install) ===> usr.sbin/amd/include (install) ===> usr.sbin/amd/libamu (install) ===> usr.sbin/amd/amd (install) install -s -o root -g wheel -m 555 amd /usr/sbin lock order reversal: 1st 0xe0000000141cdcb8 ufs (ufs) @ /usr/src/sys/kern/vfs_vnops.c:618 2nd 0xa00000005ed59c38 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:1911 3rd 0xe0000000141ce098 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2134 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe0000000141ce0c8) locked @ /usr/src/sys/kern/vfs_subr.c:2132 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe0000000141ce0c8) locked @ /usr/src/sys/kern/vfs_subr.c:2132 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe0000000141ce0c8) locked @ /usr/src/sys/kern/vfs_subr.c:2132 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe0000000141ce0c8) locked @ /usr/src/sys/kern/vfs_subr.c:2132 KDB: stack backtrace: getenv with the following non-sleepable locks held: panic: Bad buffer logic, remain = 0 cpuid = 1 KDB: enter: panic [ thread pid 20507 tid 100097 ] Stopped at kdb_enter+0x92: [I2] addl r14=0xffffffffffe211d8,gp ;; db> db> show proc Process 20507 (install) at 0xe000000012dca000: state: NORMAL uid: 0 gids: 0 parent: pid 20506 at 0xe000000012cd2d50 ABI: FreeBSD ELF64 arguments: install threads: 1 100097 Run CPU 1 install db> db> show thread Thread 100097 at 0xe000000012dce450: proc (pid 20507): 0xe000000012dca000 name: install stack: 0xa000000096cf6000-0xa000000096cfdfff flags: 0x4 pflags: 0x40 state: RUNNING (CPU 1) priority: 152 container lock: sched lock 1 (0x9ffc000000a73b00) db> db> thread 100097 [ thread pid 20507 tid 100097 ] kdb_enter+0x92: [I2] addl r14=0xffffffffffe211d8,gp ;; db> db> bt Tracing pid 20507 tid 100097 td 0xe000000012dce450 kdb_enter(0x9ffc00000095f418, 0x9ffc00000095f418, 0x9ffc0000003756d0, 0x793) at kdb_enter+0x92 panic(0x9ffc0000009649c8, 0x0, 0x1, 0x9ffc0000003ecec0, 0x38c) at panic+0x2e0 putbuf(0xa, 0xa000000096cf7c70) at putbuf+0x4d0 putchar(0xa, 0xa000000096cf7c70, 0x5, 0x9ffc0000003eaa30, 0xda0) at putchar+0x110 kvprintf(0x9ffc00000095f1d1, 0x9ffc0000009a98c0, 0xa000000096cf7c70, 0xa, 0xa000000096cf7d38) at kvprintf+0xf0 vprintf(0x9ffc00000095f1d0, 0xa000000096cf7d38) at vprintf+0xa0 printf(0x9ffc00000095f1d0, 0x0, 0xa00000008de2ede8, 0xa00000008de2edf0) at printf+0x80 printtrap(0x18, 0xa000000096cf8800, 0x1, 0x0) at printtrap+0x20 trap_panic(0x9ffc000000c276b0, 0x0, 0x9ffc00000081fdb0, 0x716, 0x9ffc000000a27500) at trap_panic+0x50 trap(0x18, 0xa000000096cf8800) at trap+0xb60 ivt_General_Exception() at ivt_General_Exception+0x30 --- trapframe at 0xa000000096cf8800 spinlock_exit() at spinlock_exit+0x71 uart_quicc_class(0xa000000096cf813e, 0x0, 0x1, 0x9ffc0000003ecec0, 0x38c, 0x16a5a41, 0xe000000000011fb8, 0xffffffff) at 0x18 db> I rebooted, run "make installworld" again, no panic this time, but on reboot: KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 KDB: stack backtrace: getenv with the following non-sleepable locks held: exclusive sleep mutex vnode interlock (vnode interlock) r = 0 (0xe000000011950488) locked @ /usr/src/sys/fs/devfs/devfs_vnops.c:406 etc. until a hang, requiring cold reset via MP. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423