On Nov 15, 2014, at 21:19, Alfred Perlstein <alf...@freebsd.org> wrote:

> This looks easy enough to fix under _thr_find_thread() in libthread.
> 
> Any interest in fixing it?

Yes, if it’s POSIXly correct and doesn’t break everything else.

> Might be worth hacking _thr_find_thread() to take an ERRNO to return based on 
> NULL until we chase down all the paths into it just in case EINVAL is a valid 
> ptr.

K. Thanks for the hint!

> Also, just wondering what happens on other platforms, does it elicit a crash? 
>  Ie. is NULL a safe value to pass in on other platforms?

I wish I knew what happened on !x86 platforms… I honestly don’t have access to 
ARM/MIPS/PowerPC, so I can’t say :/.

Thanks!

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to