Chen Jingpiao's GSoC status report - #1 of #13

Chen Jingpiao chenjingpiao at gmail.com
Mon May 21 15:54:35 UTC 2018


Unfortunately, the progress was slow last week. I meet a fault that I never
meet.
It took me a lot of time to debug.

I report the bug here, look forward to someone can give me a help.

Environment:
$ uname -a
Linux VM-250-130-ubuntu 4.16.0-rc5 #14 SMP Tue Mar 20 11:06:37 CST 2018
x86_64 x86_64 x86_64 GNU/Linux

glibc: libc-2.19.so

Description:
The child process does not return after fork().

$ dmesg
[ 4648.471410] traps: a.out[31678] general protection
ip:7fed4d16e100 sp:7fff286159e8 error:0 in libc-2.19.so[7fed4d0a9000+1be000]

Reproduce the fault:
$ git remote add ppiao https://github.com/ppiao/strace.git
$ git fetch ppiao ppiao/next:ppiao/next
$ git checkout ppiao/next
$ ./bootstrap && ./configure && make
$ ./strace -eopen ls >/dev/null # work properly

/* fork.c */
#include <stdio.h>
#include <unistd.h>

int main(void)
{
int pid = fork();

fprintf(stderr, "%d\n", pid);

return 0;
}

$ gcc fork.c
$ ./strace -eclone ./a.out # the child process does not return
$ dmesg
[ 4648.471410] traps: a.out[31678] general protection
ip:7fed4d16e100 sp:7fff286159e8 error:0 in libc-2.19.so[7fed4d0a9000+1be000]

Thank you!

--
Chen Jingpiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20180521/1f065144/attachment.html>


More information about the Strace-devel mailing list