If possible, please support more variants of clone(). The attached .c program runs ok natively and under PIN. Under valgrind it crashes because valgrind does not support the clone flags used in the test (SIGCHLD and CLONE_UNTRACED|SIGCHLD|CLONE_VM).
Created attachment 31019 [details] test case