[LTP] [PATCH] syscalls/kcmp03: work around bug in C library
Steve Muckle
smuckle.linux@gmail.com
Thu Sep 7 19:42:10 CEST 2017
On 09/06/2017 03:09 AM, Cyril Hrubis wrote:
> Hi!
>> Some versions of glibc and bionic report the same PID for parent
>> and child when clone() is called with CLONE_VM but not
>> CLONE_THREAD.
>
> Is that the result of the infamous pid caching?
In bionic yes, I can't say for sure in glibc but I'd assume so. I
haven't tested a glibc version that had pid caching removed.
> Can we fix that by using the raw getpid() syscall in the test
> library? If so I guess that using raw syscall in the test library may
> be a safer bet.
Probably. I'll try it.
thanks,
Steve
More information about the ltp
mailing list