Date: Wed, 03 Mar 1999 08:15:06 +0000 From: Brian Somers <brian@Awfulhak.org> To: Jim Durham <durham@w2xo.pgh.pa.us> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: natd core dumps in packetBuf Message-ID: <199903030815.IAA00637@keep.lan.Awfulhak.org> In-Reply-To: Your message of "Tue, 02 Mar 1999 23:31:05 EST." <199903030431.XAA08604@w2xo.pgh.pa.us>
index | next in thread | previous in thread | raw e-mail
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 <brian@Awfulhak.org> <brian@FreeBSD.org> <brian@OpenBSD.org>
<http://www.Awfulhak.org>
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903030815.IAA00637>
