From owner-freebsd-hackers Wed Mar 3 15: 1:45 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id B1DBE157B2 for ; Wed, 3 Mar 1999 15:01:04 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id WAA19551; Wed, 3 Mar 1999 22:06:20 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA00637; Wed, 3 Mar 1999 08:15:07 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199903030815.IAA00637@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Jim Durham Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: natd core dumps in packetBuf In-reply-to: Your message of "Tue, 02 Mar 1999 23:31:05 EST." <199903030431.XAA08604@w2xo.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 03 Mar 1999 08:15:06 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hmm, that's a pretty strange trace ! > On a 3.0-RELEASE system, I've had problems with > natd core dumping. I compiled it with -g and > was able to run gdb with symbols in the last > dump. > > Here's what I see... > > GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc. > Core was generated by `natd'. > Program terminated with signal 11, Segmentation fault. > #0 0x280aca00 in ?? () > (gdb) file natd > Reading symbols from natd...done. > (gdb) where > #0 0x280aca00 in ?? () > #1 0x804c6c9 in packetBuf () > #2 0x280570fd in ?? () > #3 0x2805722d in ?? () > #4 0x28056298 in ?? () > #5 0x280569ee in ?? () > #6 0x804977a in DoAliasing (fd=3) at natd.c:492 > #7 0x8049503 in main (argc=3, argv=0xefbfd7c4) at natd.c:348 > #8 0x8048ea5 in _start () $ fgrep packetBuf /usr/src/usr.sbin/natd/*.c | head -1 /usr/src/usr.sbin/natd/natd.c:static char packetBuf[IP_MAXPACKET]; Try removing the core and building libalias with symbols too. It may produce interesting results - packetBuf is passed into the alias routines, so it's not impossible that it *is* trying to execute it :-/ > Any ideas? > > regards, > Jim Durham -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message