From owner-freebsd-alpha Sun Mar 18 7:24:19 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 23B6237B719; Sun, 18 Mar 2001 07:24:17 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA02470; Sun, 18 Mar 2001 10:24:16 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id f2IFNk188229; Sun, 18 Mar 2001 10:23:46 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15028.54018.584762.460700@grasshopper.cs.duke.edu> Date: Sun, 18 Mar 2001 10:23:46 -0500 (EST) To: Doug Rabson Cc: , Subject: Re: user process faulting on kernel address In-Reply-To: References: <15026.37378.477855.889651@grasshopper.cs.duke.edu> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Doug Rabson writes: > On Fri, 16 Mar 2001, Andrew Gallatin wrote: > > > > > When running a linuxthreads app which basically sits in a loop > > doing a pthread_create()/pthread_join() of a thread which just > > exits, I'll occasionally see a very interesting thing -- > > the app dies on an instruction fault on a kernel address. > > Could you put up a binary (static linked if possible) so that I can have a > go at reproducing the problem? Thanks in advance... http://www.cs.duke.edu/~gallatin/ex6.gz Enable the debugging printfs in trap.c. You'll notice that it gets "stuck" in the kernel because it SEGV's just as soon as switches back to user mode. It is the parent which is faulting, not a child. I tried duplicating it with a native program that vfork()s and wait()s, but I had no success. I'm inclined to think it has something to do with signal delivery. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message