Netgraph node, first steps in kernel land and a bloody crash dump

Hiten Pandya hmp at nxad.com
Sun Aug 3 16:53:41 PDT 2003


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 at newluxor flag]$ man 9 printf
> No entry for printf in section 9 of the manual
> [flag at 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 at FreeBSD.ORG, hmp at nxad.com
http://hmp.serverninjas.com/


More information about the freebsd-net mailing list