Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.6
-
Fix Version/s: 3.12
-
Component/s: build-wrapper
-
Labels:None
Description
Build with build-wrapper and SCons hangs on Mac (attempt to build mongodb), while works without build-wrapper. Can be reproduced using
build.py
#!/usr/bin/env python import readline
$ sw_vers ProductName: Mac OS X ProductVersion: 10.10.5 BuildVersion: 14F27 $ brew info python python: stable 2.7.10 (bottled), HEAD
This also happens on Linux and Mac in case
test.c
#include <stdio.h> int main() { printf("hello\n"); return 0; }
$ gcc test.c -o test $ stty tostop $ build-wrapper-linux-x86-64 --out-dir out ./test
Seems that this relates to changes associated with CPP-749 ( 3962b807b8c6009622917d8e7cf66a9fcbe0300e ).
See also
- https://github.com/Kitware/CMake/blob/1d4ab06a7045edf366c689ba5e29bbc35d08718e/Source/kwsys/ProcessUNIX.c#L1944
- http://bugs.python.org/issue14892
- https://chromium.googlesource.com/chromium/src/base/+/3180394c5b683f20032bf1b2efd689f57ee1ee44/process/launch_posix.cc#372
- http://man7.org/linux/man-pages/man2/setpgid.2.html