Date: Thu, 26 Apr 2001 23:20:17 -0700 From: Doug Hardie <bc979@lafn.org> To: stable@FreeBSD.ORG Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: Illegal Instruction in libm - Problem solved.... Message-ID: <f04330154b70ebe696a33@[10.0.1.100]> In-Reply-To: <f04330146b70ad4f7aeff@[10.0.1.100]> References: <NEBBLDHFCEAGCHNCNNLCKEHPECAA.freebsd@wagar.net> <f04330145b70acb165c9f@[10.0.1.100]> <20010423234509.A38690@xor.obsecurity.org> <f04330146b70ad4f7aeff@[10.0.1.100]>
next in thread | previous in thread | raw e-mail | index | archive | help
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=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA >T,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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f04330154b70ebe696a33>