Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-1295

build-wrapper linux: don't hang, if child process uses the readline library or user uses "stty tostop"

    XMLWordPrintable

    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

        Attachments

          Activity

            People

            Assignee:
            evgeny.mandrikov Evgeny Mandrikov
            Reporter:
            evgeny.mandrikov Evgeny Mandrikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: