From owner-freebsd-hackers Fri Mar 30 13: 3:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 1E4D237B718 for ; Fri, 30 Mar 2001 13:03:38 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f2UL3av23784; Fri, 30 Mar 2001 13:03:36 -0800 (PST) Date: Fri, 30 Mar 2001 13:03:36 -0800 From: Alfred Perlstein To: Chris Ptacek Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Page Fault problem with my KLD Message-ID: <20010330130336.B9431@fw.wintelcom.net> References: <001301c0b940$3d48ca80$cafba8c0@sitaranetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001301c0b940$3d48ca80$cafba8c0@sitaranetworks.com>; from chris@ptacek.net on Fri, Mar 30, 2001 at 09:38:31AM -0800 X-all-your-base: are belong to us. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Chris Ptacek [010330 09:45] wrote: > I am developing a KLD and I am having problems getting a page fault. I am > using a set "library" (basically a set of third party object files I build > and then link in). This libarary requires its own chunk of memory that it > manages and needs to be passed a pointer to that memory (and the size) when > it is initialized. So during my load phase I malloc the memory (14M), at > this point I can traverse the memory just fine using a for loop writing and > reading from it as a test. However once I pass this memory into the > "library" to use, I get a page fault error. Is there something I am missing > here? What would be the possible causes of the page fault? Page faults are caused by referencing memory that you shouldn't. See: http://www.freebsd.org/handbook/kerneldebug.html > Any and all help would be appreciated and if you could CC this account I > would appreciate it (my FreeBSD mailing list subscriptions are from another > account). Next time offer a test snippet of code that demonstrates the problem. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message