From owner-freebsd-hackers Thu Oct 10 22:34:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F2437B404 for ; Thu, 10 Oct 2002 22:34:31 -0700 (PDT) Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8576643EAC for ; Thu, 10 Oct 2002 22:34:30 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0520.cvx40-bradley.dialup.earthlink.net ([216.244.44.10] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17zsRR-0003x9-00; Thu, 10 Oct 2002 22:34:29 -0700 Message-ID: <3DA6629E.E51A869D@mindspring.com> Date: Thu, 10 Oct 2002 22:33:18 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: abe Cc: hackers@freebsd.org Subject: Re: fatal trap 12 kernel panic 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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