From owner-freebsd-sparc Sun Sep 15 18: 9:15 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDFAB37B400 for ; Sun, 15 Sep 2002 18:09:13 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id A3C2A43E72 for ; Sun, 15 Sep 2002 18:09:12 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 1111 invoked by uid 0); 16 Sep 2002 01:09:10 -0000 Received: from p5086fb46.dip.t-dialin.net (HELO forge.local) (80.134.251.70) by mail.gmx.net (mp012-rz3) with SMTP; 16 Sep 2002 01:09:10 -0000 Received: from tmm by forge.local with local (Exim 4.10 #1) id 17qkOp-0002Mb-00; Mon, 16 Sep 2002 03:10:03 +0200 Date: Mon, 16 Sep 2002 03:10:02 +0200 From: Thomas Moestl To: Jens Haeusser Cc: freebsd-sparc@FreeBSD.ORG Subject: Re: Panic when running samba Message-ID: <20020916011001.GA8400@crow.dom2ip.de> Mail-Followup-To: Jens Haeusser , freebsd-sparc@FreeBSD.ORG References: <20020913213740.E38788@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 2002/09/15 at 16:10:26 -0700, Jens Haeusser wrote: > To recap, I installed the latest cvs version of current (world and > kernel), and samba-2.2.5 from source. I get an immediate panic when I > run samba. Here is the output of my ddb trace session: > > panic: trap: fast data access mmu miss > cpuid = 0; > Debugger("panic") > Stopped at Debugger+0x1c: ta %xcc, 1 > db> trace > panic() at panic+0x104 > trap() at trap+0x588 > -- fast data access mmu miss tar=0x7fdffffe000 %o7=0xc00e51c0 -- > kern_fcntl() at kern_fcntl+0x464 > fnctl() at fnctl+0x54 > syscall() at syscall+0x368 > -- syscall (92 FreeBSD ELF64, fnctl) %o7=0x205b60 -- I have just committed a patch that should fix this (it was a missing copyin(), which will not panic on i386 if the user passes correct arguments, while it is fatal on sparc64). For reference, I have also attached the diff in question. - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C Index: kern_descrip.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_descrip.c,v retrieving revision 1.160 diff -u -r1.160 kern_descrip.c --- kern_descrip.c 14 Sep 2002 09:02:26 -0000 1.160 +++ kern_descrip.c 15 Sep 2002 23:55:59 -0000 @@ -221,6 +221,7 @@ error = 0; switch (uap->cmd) { + case F_SETLKW: case F_SETLK: case F_GETLK: error = copyin((caddr_t)(intptr_t)uap->arg, &fl, sizeof(fl)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message