Thanks! But where can I find these libc's? I have tried to use this one:
child stack = malloc(10000);
clone(myfunc, child_stack, CLONE_VM|CLONE_VFORK|SIGCHLD, 0);
but it gives me an error like library something not found in "lib.so" something.
However when I tried not to include the CLONE_VM, the task is created but at the end, there is always a segmentation fault message.