Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2003 16:53:40 -0700
From:      Hiten Pandya <hmp@nxad.com>
To:        Paolo Pisati <p.pisati@oltrelinux.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Netgraph node, first steps in kernel land and a bloody crash dump
Message-ID:  <20030803235340.GA93205@perrin.int.nxad.com>
In-Reply-To: <20030731211452.GA210@newluxor.skynet.org>
References:  <20030731211452.GA210@newluxor.skynet.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



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