From owner-freebsd-hackers Thu Oct 8 13:34:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA13852 for freebsd-hackers-outgoing; Thu, 8 Oct 1998 13:34:36 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA13847 for ; Thu, 8 Oct 1998 13:34:33 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id NAA00434; Thu, 8 Oct 1998 13:35:09 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810082035.NAA00434@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Studded cc: Mike Smith , Archie Cobbs , FreeBSD-Hackers@FreeBSD.ORG Subject: Re: mail in free(): warning: junk pointer, too high to make sense. In-reply-to: Your message of "Thu, 08 Oct 1998 10:02:00 PDT." <361CF008.DEDF45BD@dal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 08 Oct 1998 13:35:08 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Mike Smith wrote: > > > Sorry, I meant "replace all occurences of 'msgvec' in lex.c with > > 'msgfoo', then recompile". You might want to make it static too, ie > > change line 158 to 'static int *msgvec;'. > > You know, this is what I get for doing stuff like this late at night. I > sed'ed msgvec to msgfoo, checked it to make sure it worked properly, > recompiled, and retested. What I didn't do was 'mv lex.sed lex.c' :) > Anyway, now that I've actually done that, it works just fine. No > warnings, and no crash in gdb even with AJ -> /etc/malloc.conf. > > This code is the same in both branches, so now that we know (?) what > the problem is, if it's changed it should probably be changed in both > branches. This isn't a fix, unfortunately. It means that there are two instances of 'msgvec' with global scope, and the other one needs to be found too. You could probably just change the 'msgvec' in lex.c to be static in order to achieve that goal; then you need to work out which object(s) are exporting 'msgvec' as globals. Any chance of you doing that? Have a look at the output of 'nm' on each of the .o files, and see which (if any) export or reference _msgvec. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message