From owner-freebsd-hackers Wed Oct 7 19:54:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA27783 for freebsd-hackers-outgoing; Wed, 7 Oct 1998 19:54:46 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA27485 for ; Wed, 7 Oct 1998 19:53:11 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id TAA07278; Wed, 7 Oct 1998 19:53:02 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma007274; Wed Oct 7 19:52:40 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id TAA29463; Wed, 7 Oct 1998 19:52:40 -0700 (PDT) From: Archie Cobbs Message-Id: <199810080252.TAA29463@bubba.whistle.com> Subject: Re: mail in free(): warning: junk pointer, too high to make sense. In-Reply-To: <361C07F2.85106E15@dal.net> from Studded at "Oct 7, 98 05:31:46 pm" To: Studded@dal.net (Studded) Date: Wed, 7 Oct 1998 19:52:40 -0700 (PDT) Cc: FreeBSD-Hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Studded writes: > Archie Cobbs wrote: > > Studded writes: > > > I know there was interest in the "free(): warning: junk pointer, too > > > high to make sense." warning inre inetd, however I am getting it > > > reliably using the 'mail' command. Every time I just type 'mail' (no > > > parameters) to start up the interface, I get this warning. The program > > > seems to be working fine however. > > > > So... > > > > $ ln -sf AJ /etc/malloc.conf > > > > run mail again, and examine the core dump. > > (gdb) run > Starting program: /usr/home/myusername/./mail > mail in free(): error: junk pointer, too high to make sense. > > Program received signal SIGABRT, Aborted. > 0x20080d51 in kill () > (gdb) bt > #0 0x20080d51 in kill () > #1 0x200805c4 in abort () > #2 0x2007f01c in getdtablesize () > #3 0x2007f058 in getdtablesize () > #4 0x2008007d in getdtablesize () > #5 0x200802ba in free () > #6 0x9263 in setmsize (sz=0) at lex.c:445 > #7 0x88b2 in setfile (name=0x1b080 "/var/mail/myusername") at lex.c:146 > #8 0xb492 in main (argc=1, argv=0xefbfd768) at main.c:246 Hmm.. is your system elm? Maybe there's a bug in mail that's always been there, but which is only now exhibited with elf. A quick look doesn't reveal any obvious logical bugs. The only way this can be happening is if some code is corrupting the "msgvec" variable in lex.c. "msgvec" may just be the unlucky victim of some other random memory corruption. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message