From owner-freebsd-questions@FreeBSD.ORG Fri Sep 12 13:13:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F07131065676 for ; Fri, 12 Sep 2008 13:13:35 +0000 (UTC) (envelope-from riaank@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id 921198FC22 for ; Fri, 12 Sep 2008 13:13:35 +0000 (UTC) (envelope-from riaank@gmail.com) Received: by gxk10 with SMTP id 10so18750740gxk.19 for ; Fri, 12 Sep 2008 06:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=CdkRV+qTDGiMCRQ1Jtgse0EkJt0z7tFASsVVpSiZN0o=; b=ZS+BjmcxuwfidFRnS57uZz1nLct58XAfmbVzzpuFGHO0VULZmB62HfPqvZRlrWH1nq J/6Ucb2wU8L9gUp/eD52KLMlIfPeYnEmUAmr1zZPN2T4Ul/Dw2zNKXGcA6I9ZBdHWY+w D2KamzRESYuQGEx/m1hTW0onVRDkBHdVBMXFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=iKNoKQ1MeXSA8Z/m8p293rwSFE+P+dLKGNowYbv33EuTHrkD7l2BSbnQSEns4EF7cx EgKfYuBWAhYjBXVTlA0xSwjm5Pmr71/bJpGTsfEeCowoFj3beCJZh6aTcE2fKW1EuCGh fPBteeZWTDifiwDW9DqTKOhANEPRGZO6rqIFI= Received: by 10.187.240.1 with SMTP id s1mr583467far.61.1221225207387; Fri, 12 Sep 2008 06:13:27 -0700 (PDT) Received: by 10.187.221.16 with HTTP; Fri, 12 Sep 2008 06:13:27 -0700 (PDT) Message-ID: <85c4b1850809120613g7e8dcdfet56980dbe12dcb548@mail.gmail.com> Date: Fri, 12 Sep 2008 15:13:27 +0200 From: "Riaan Kruger" To: "=?ISO-8859-1?Q?Patrick_Lamaizi=E8re?=" In-Reply-To: <20080912132332.4f9e9056@baby-jane-lamaiziere-net.local> MIME-Version: 1.0 References: <85c4b1850809110259w56f3439cua37359b3dc39f909@mail.gmail.com> <20080912132332.4f9e9056@baby-jane-lamaiziere-net.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: Driver debugging help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 13:13:36 -0000 On Fri, Sep 12, 2008 at 1:23 PM, Patrick Lamaizi=E8re wrote: > Le Thu, 11 Sep 2008 11:59:05 +0200, > "Riaan Kruger" a =E9crit : > > > I am looking for hints to debug a driver I am working on. I get a > > page fault when running the driver intensively. The stack trace from > > the kernel dump only goes up to a free command which I suspect is > > being called from my driver. No matter what I do I cannot get a more > > "complete" stack trace. kgdb says something about the stack being > > corrupt when I do a backtrace/stack trace. > > > > Is there anything else I could use to help me pinpoint where I am > > going wrong? > > > > I have tried memguard but it has given me no information. Maybe I am > > using it incorrectly. > > Did you try redzone(9)? If the stack is corrupted it could be a buffer > overflow. > > You can ask on freebsd-hackers or freebsd-drivers mailing lists. And > may be show us the code? > > Regards. Thanx for the reply I realize, reading your question and my response, that I was pretty vague. Sorry for that. I will try redzone next and then get back with more specifi= c questions. PS. I am always uncertain when to ask freebsd-questions or freebsd-drivers/freebsd-hackers. regards