FreeBSD pthread_equal "bug"
Julian Elischer
julian at elischer.org
Wed Jun 4 09:59:15 PDT 2003
On 4 Jun 2003, Kern Sibbald wrote:
> > that's a bonus ;-)
>
> This bug does not highlight bad applications because most
> programmers will reasonably expect that pthread_equal() will
> not be the same for two different threads. It took me
> a long time to find this problem because I just could not
> imagine that pthread_equal() was not "working".
> This problem is extremely subtle and is likely to cause
> unsuspecting applications long months of bizarre
> behavior.
If IDs are recycled after a LONG time
then there is still a chance that the test could go the wrong way
if something held up the tester for a long enough time,
so the behaviour is not "perfect",
>
> Fix it or not, that is your choice. Now that I know
> that you don't handle it as I would suspect I can code
> around it.
best for now..
it is now on our radar anyhow..
thanks...
>
> _______________________________________________
> freebsd-threads at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe at freebsd.org"
>
More information about the freebsd-threads
mailing list