From owner-freebsd-hackers Wed Oct 7 17:32:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA04890 for freebsd-hackers-outgoing; Wed, 7 Oct 1998 17:32:01 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA04870 for ; Wed, 7 Oct 1998 17:31:54 -0700 (PDT) (envelope-from Studded@dal.net) Received: from dal.net (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id RAA13416; Wed, 7 Oct 1998 17:31:46 -0700 (PDT) (envelope-from Studded@dal.net) Message-ID: <361C07F2.85106E15@dal.net> Date: Wed, 07 Oct 1998 17:31:46 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.5b2 [en] (X11; I; FreeBSD 2.2.7-STABLE-0929 i386) X-Accept-Language: en MIME-Version: 1.0 To: Archie Cobbs CC: FreeBSD-Hackers@FreeBSD.ORG Subject: Re: mail in free(): warning: junk pointer, too high to make sense. References: <199810080006.RAA23304@bubba.whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Ok, I did that, then compiled a mail binary with -ggdb. Here's the result: Core was generated by `mail'. Program terminated with signal 6, Abort trap. Cannot access memory at address 0x20027080. #0 0x20080d51 in ?? () (gdb) bt #0 0x20080d51 in ?? () #1 0x200805c4 in ?? () #2 0x2007f01c in ?? () #3 0x2007f058 in ?? () #4 0x2008007d in ?? () #5 0x200802ba in ?? () #6 0x8e73 in execute (linebuf=0x0, contxt=110592) at lex.c:322 #7 0x84c2 in __isctype () at v7.local.c:56 #8 0xb0a2 in main (argc=1, argv=0xefbfd788) at main.c:95 Attempting to run it in gdb got a different response: (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 I hope this is what you were looking for. My experience with gdb is limited, my C only slightly less so. :) Thanks, Doug -- *** Chief Operations Officer, DALnet IRC network *** Go PADRES! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message