From owner-freebsd-current Wed Nov 20 23:59:32 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04E7A37B401 for ; Wed, 20 Nov 2002 23:59:31 -0800 (PST) Received: from smtp01.iprimus.net.au (smtp01.iprimus.net.au [210.50.30.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0138243E4A for ; Wed, 20 Nov 2002 23:59:30 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au ([210.50.203.117]) by smtp01.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Thu, 21 Nov 2002 18:59:24 +1100 Received: from dilbert.robbins.dropbear.id.au (eofgbpz25p5xcsv8@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id gAL7xIEi064713 for ; Thu, 21 Nov 2002 18:59:19 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id gAL7xBCp064712 for current@FreeBSD.ORG; Thu, 21 Nov 2002 18:59:12 +1100 (EST) (envelope-from tim) Date: Thu, 21 Nov 2002 18:59:11 +1100 From: Tim Robbins To: current@FreeBSD.ORG Subject: smbfs panic Message-ID: <20021121185911.A64261@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-OriginalArrivalTime: 21 Nov 2002 07:59:25.0118 (UTC) FILETIME=[E8942DE0:01C29133] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here's a backtrace of a smbfs panic. Looks like it does not correctly handle the smbfs_getpages error it is encountering and leaves garbage vnodes lying around. The panic probably comes from the VI_LOCK macro call on smbfs_node.c line 321. # cp blah.tar.gz ~tim cp: /home/tim/blah.tar.gz: Bad address in dmesg: smbfs_getpages: error 60 vm_fault: pager read error, pid 433 (cp) Upon trying to halt: syncing disks, buffers remaining... done Fatal trap 12: page fault while in kernel mode fault virtual address = 0xdeadc0de fault code = supervisor read, page not present instruction pointer = 0x8:0xc0171e23 stack pointer = 0x10:0xc5bd2a1c frame pointer = 0x10:0xc5bd2a3c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 process eflags = interrupt enabled, IOPL = 0 current process = halt kernel: type 12 trap, code=0 Stopped at _mtx_lock_flags+0x43: cmpl $0xc02afd80,0(%ebx) db> trace _mtx_lock_flags(deadc0de,0,c0f280b7,141,c0f05000) at _mtx_lock_flags+0x43 smbfs_reclaim(c5bd2a94,12,c0602540,c0602540,0) at smbfs_reclaim+0x11a vclean(c0f53a68,8,c0602540,6,c0f53a68) at vclean+0x229 vgonel(c0f53a68,c0602540,c02903f2,94a,0) at vgonel+0x5c smbfs_umount(c0ea8400,80000,c0602540,c0602540,0) at smbfs_umount+0x3c dounmount(c0ea8400,80000,c0602540,ffffffff,c216304c) at dounmount+0x204 vfs_unmountall(...) boot(...) reboot(...) syscall(...) Xint0x80_syscall(...) --- syscall (55, FreeBSD ELF32, reboot), eip = 0x8048e9f, esp = 0xbfbffb1c, ebp = 0xbfbffb60 --- Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message