Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Linux sandbox sometimes hangs with defunct child process #1671

Closed
philwo opened this issue Aug 22, 2016 · 0 comments
Closed

New Linux sandbox sometimes hangs with defunct child process #1671

philwo opened this issue Aug 22, 2016 · 0 comments
Assignees
Labels
category: sandboxing P1 I'll work on this now. (Assignee required) type: bug
Milestone

Comments

@philwo
Copy link
Member

philwo commented Aug 22, 2016

The PID1 process of the new Linux sandbox sometimes doesn't seem to notice that its child process died and gets stuck with this stack trace:

linux-sandbox.cc:
#0 0x00007f8c706faa0c in __libc_waitpid (pid=9124, stat_loc=0x7fffc2f6e658, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1 0x0000000000402e0b in WaitForPid1() ()
#2 0x000000000040339d in main ()

linux-sandbox-pid1.cc:
#0 do_sigwait (sig=0x7f8c7141cf5c, set=) at ../nptl/sysdeps/unix/sysv/linux/../../../../../sysdeps/unix/sysv/linux/sigwait.c:63
#1 __GI___sigwait (set=, sig=0x7f8c7141cf5c) at ../nptl/sysdeps/unix/sysv/linux/../../../../../sysdeps/unix/sysv/linux/sigwait.c:93
#2 0x0000000000409ec3 in WaitForChild() ()
#3 0x0000000000409f85 in Pid1Main(void*) ()
#4 0x00007f8c7073437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Running "kill -CHLD" on the pid1 process lets it continue and the build completes successfully. It seems to happen randomly, about once in three "bazel build //src:bazel" clean builds.

@philwo philwo added type: bug P1 I'll work on this now. (Assignee required) category: sandboxing labels Aug 22, 2016
@philwo philwo self-assigned this Aug 22, 2016
@philwo philwo added this to the 0.4 milestone Sep 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: sandboxing P1 I'll work on this now. (Assignee required) type: bug
Projects
None yet
Development

No branches or pull requests

1 participant