From owner-freebsd-stable Fri Apr 27 18:40:56 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210]) by hub.freebsd.org (Postfix) with ESMTP id EE06737B422 for ; Fri, 27 Apr 2001 18:40:51 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id LAA87024; Sat, 28 Apr 2001 11:39:29 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from itga.com.au (lightning.itga.com.au [192.168.71.20]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id LAA01281; Sat, 28 Apr 2001 11:39:28 +1000 (EST) Message-Id: <200104280139.LAA01281@lightning.itga.com.au> From: Gregory Bond To: Doug Hardie Cc: Gregory Bond , stable@FreeBSD.ORG, Kris Kennaway , gnb@itga.com.au Subject: Re: Illegal Instruction in libm - Problem solved.... In-reply-to: Your message of Fri, 27 Apr 2001 11:48:29 -0700. Date: Sat, 28 Apr 2001 11:39:28 +1000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > It may always have been a bug in FreeBSD, and still is. No, the bug is in your code, not FreeBSD. > The concept > of being able to replace a library module with one from your code is > fairly common in SVR4, and SunOS. Even if true (and the C standard makes no such promises), this is not what you did. You replaced a standard library function free() with an int called free. That is in no way shape or form "replacing a library module". This is just plain wrong, and the fact it happened to work in previous versions of the FreeBSD C library is just luck. If you do want to replace a standard library module, you are well into tiger country and you have to make _sure_ you understand all the possible ways that part of the lbrary is used in all the rest of the libraries you link against. It's not for the casual (or even fairly experienced) programmer, and liable to break every time the library is updated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message