From owner-freebsd-stable Thu Apr 26 23:20:35 2001 Delivered-To: freebsd-stable@freebsd.org Received: from zoon.lafn.org (zoon.lafn.org [206.117.18.9]) by hub.freebsd.org (Postfix) with ESMTP id 25BFC37B423 for ; Thu, 26 Apr 2001 23:20:32 -0700 (PDT) (envelope-from bc979@lafn.org) Received: from [10.0.1.100] (cs-lake1-p11.lafn.org [192.168.11.11] (may be forged)) by zoon.lafn.org (8.10.1/8.10.1) with ESMTP id f3R6KTV68273; Thu, 26 Apr 2001 23:20:29 -0700 (PDT) Mime-Version: 1.0 X-Sender: bc979@mail.lafn.org Message-Id: In-Reply-To: References: <20010423234509.A38690@xor.obsecurity.org> Date: Thu, 26 Apr 2001 23:20:17 -0700 To: stable@FreeBSD.ORG From: Doug Hardie Subject: Re: Illegal Instruction in libm - Problem solved.... Cc: Kris Kennaway Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There is an interesting difference in malloc. It defines the symbol free and if you use that symbol in your program then it tends to write over some part of your program. By changing the symbol in my program (an int) to a different name, the problem goes away and it works properly. I believe this behavior is new because it didn't have this problem in FreeBSD 4.2-RELEASE. At 0:00 -0700 4/24/01, Doug Hardie wrote: >At 23:45 -0700 4/23/01, Kris Kennaway wrote: >>On Mon, Apr 23, 2001 at 11:38:48PM -0700, Doug Hardie wrote: >>> I upgraded from 4.2 to 4.3-Release today. All seemed fine till I ran >>> a program that references libc. It dies with an illegal instruction. >>> Recompiling the program made no change. Here is the gdb where output: >> >>You forgot to mention what CPU you are running. >> >>Kris >> >>Content-Type: application/pgp-signature >>Content-Disposition: inline >> >>Attachment converted: Hard Disk:Untitled 2 (????/----) (000436B3) > >CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x652 Stepping = 2 > >Features=0x183f9ffT,PSE36,MMX,FXSR> >-- >-- Doug > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-stable" in the body of the message -- -- Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message