Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 03:10:02 +0200
From:      Thomas Moestl <tmoestl@gmx.net>
To:        Jens Haeusser <jens@zoology.ubc.ca>
Cc:        freebsd-sparc@FreeBSD.ORG
Subject:   Re: Panic when running samba
Message-ID:  <20020916011001.GA8400@crow.dom2ip.de>
In-Reply-To: <a05111707b9aabf9cf061@[10.112.119.100]>
References:  <a05111704b9a8345baeed@[10.112.119.100]> <20020913213740.E38788@locore.ca> <a05111707b9aabf9cf061@[10.112.119.100]>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <tmoestl@gmx.net>	http://www.tu-bs.de/~y0015675/
              <tmm@FreeBSD.org>	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020916011001.GA8400>