From owner-freebsd-net@FreeBSD.ORG Sun Aug 3 16:53:41 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7558337B401 for ; Sun, 3 Aug 2003 16:53:41 -0700 (PDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12F9A43FBD for ; Sun, 3 Aug 2003 16:53:41 -0700 (PDT) (envelope-from hmp@nxad.com) Received: by perrin.int.nxad.com (Postfix, from userid 1072) id 683B120F00; Sun, 3 Aug 2003 16:53:40 -0700 (PDT) Date: Sun, 3 Aug 2003 16:53:40 -0700 From: Hiten Pandya To: Paolo Pisati Message-ID: <20030803235340.GA93205@perrin.int.nxad.com> References: <20030731211452.GA210@newluxor.skynet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030731211452.GA210@newluxor.skynet.org> X-Operating-System: FreeBSD FreeBSD 4.7-STABLE User-Agent: Mutt/1.5.4i cc: freebsd-net@freebsd.org Subject: Re: Netgraph node, first steps in kernel land and a bloody crash dump X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2003 23:53:41 -0000 On Thu, Jul 31, 2003 at 11:14:52PM +0200, Paolo Pisati wrote: > #5 0xc0204f63 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, > tf_edi = -856166976, tf_esi = 0, tf_ebp = -856167184, > tf_isp = -856167216, tf_ebx = 69, tf_edx = 0, tf_ecx = 0, > tf_eax = -6422529, tf_trapno = 12, tf_err = 0, tf_eip = 784, tf_cs = 8, > tf_eflags = 66118, tf_esp = -1071208512, tf_ss = 1861}) > at /usr/src/sys/i386/i386/trap.c:466 > #6 0x310 in ?? () > > Ok, i'm not a guru, but it looks like the culprit is printf in kernel > land, or at least, a bad use of it from myself... (see #9). The culprit is most definitely frame #6. > > I would like to fill the missing ?? in this dump, but i couldn't > find how to load the symbols from my node (and yes, i've > tried what's written in the handbook about the modules and > it didn't work). Well, you are going to panic one way or the other; so I advise you to compile your Netgraph module in the kernel itself. It will save you *A LOT* of hassle that one has to go through debugging KLDs (kmods). Also, in order to study the problem, the source code is the key, and without that, not much can be done. > [flag@newluxor flag]$ man 9 printf > No entry for printf in section 9 of the manual > [flag@newluxor flag]$ > > what's happened to the man page? The manual page has not been added to 4.x series. Cheers. > -- Hiten M. Pandya hmp@FreeBSD.ORG, hmp@nxad.com http://hmp.serverninjas.com/