Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2001 11:39:28 +1000
From:      Gregory Bond <gnb@itga.com.au>
To:        Doug Hardie <bc979@lafn.org>
Cc:        Gregory Bond <gnb@itga.com.au>, stable@FreeBSD.ORG, Kris Kennaway <kris@obsecurity.org>, gnb@itga.com.au
Subject:   Re: Illegal Instruction in libm - Problem solved.... 
Message-ID:  <200104280139.LAA01281@lightning.itga.com.au>
In-Reply-To: Your message of Fri, 27 Apr 2001 11:48:29 -0700.

next in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104280139.LAA01281>