NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/54661: pthread_self() returns invalid value in some circumstances



On Wed, Oct 30, 2019 at 06:10:00AM +0000, tgl%sss.pgh.pa.us@localhost wrote:
> pthread_self() sometimes returns an invalid pointer ((void *) -1),
> as illustrated in How-To-Repeat.

Why do you think it's an invalid pointer? It's an opaque value.
Comparing it against any fixed value is a bug in the caller.

Joerg


Home | Main Index | Thread Index | Old Index