Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2002 22:33:18 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        abe <abe@informationwave.net>
Cc:        hackers@freebsd.org
Subject:   Re: fatal trap 12 kernel panic
Message-ID:  <3DA6629E.E51A869D@mindspring.com>
References:  <20021010212954.GA67855@dipole.informationwave.net> <3DA5F3BC.CD0154CF@mindspring.com> <20021010214518.GB71656@dipole.informationwave.net> <3DA5FCD2.B23CD912@mindspring.com> <20021010222545.GA82461@dipole.informationwave.net> <3DA60447.4C66C85@mindspring.com> <20021010232416.GA97757@dipole.informationwave.net> <3DA6332C.CDC30B95@mindspring.com> <20021011021945.GA46517@dipole.informationwave.net>

next in thread | previous in thread | raw e-mail | index | archive | help
abe wrote:
> > > >       gdb -k kernel.debug
> > > >       list *add_dyn_rule+0x172
> > >
> > > (kgdb) list *add_dyn_rule+0x172
> > > No source file for address 0xc021e5d6
> > > (kgdb)
> >
> > Not to be emphatic, or anything, but IPFW has to be static.
> 
> I thought it was "static" considering I compiled the kernel with support
> for it as opposed to loading the module?

You didn't; or you would have got GDB output that looked like:

------------------------------------------------------------------------
gdb -k kernel.debug
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(kgdb) list *add_dyn_rule+0x172
0xc0262e6a is in lookup_dyn_parent (../../netinet/ip_fw2.c:928).
923             ipfw_dyn_rule *q;
924             int i;
925
926             if (ipfw_dyn_v) {
927                     i = hash_packet( pkt );
928                     for (q = ipfw_dyn_v[i] ; q != NULL ; q=q->next)
929                             if (q->dyn_type == O_LIMIT_PARENT &&
930                                 rule== q->rule &&
931                                 pkt->proto == q->id.proto &&
932                                 pkt->src_ip == q->id.src_ip &&
(kgdb) 
------------------------------------------------------------------------

Note: this is for my code; for your code, the code the offset
may end up on a different source line.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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