Chen Jingpiao's GSoC status report - #1 of #13
Chen Jingpiao
chenjingpiao at gmail.com
Tue May 22 15:00:00 UTC 2018
On 05/22 03:56, Masatake YAMATO wrote:
Thank you.
> Hi,
>
> I tried on my Fedora 28 system but it was not reproduced here.
>
> [yamato at master]/tmp/x/strace% ./strace -eclone ./a.out
> ./strace -eclone ./a.out
> clone(child_stack=NULL,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f598063d790) = 23793
> 23793
Sorry, it seems I use -eclone option misleading you. Here I want to check
the tracee output. The tracee output different from directly run it.
The expected output is:
$ ./strace -eclone -o/dev/null ./a.out (use -eclone for enable seccomp
filter)
23793
0
If add -f option the child process will work properly. It seems child
process
also set seccomp filter. Because strace do not trace it, they do not work
correctly. I will do more research. Thank you.
> +++ exited with 0 +++
>
> I wonder what happens if you don't use strace like?
>
> $ gcc fork.c
> $ ./a.out
> ???
>
> I also wonder what happens if you remove the 'fprintf' statement from
fork.c.
--
Chen Jingpiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20180522/81a55898/attachment.html>
More information about the Strace-devel
mailing list