Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28479

hang_analyzer.py on OS X fails to find Python processes

    • Fully Compatible
    • ALL
    • v3.4
    • TIG 2017-04-17

      The mongodb-mongo-master Evergreen project configuration invokes the hang_analyzer.py script with -p python. This fails to find Python processes running on the system because they appear as /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python in the ps output.

      [2017/03/23 15:50:41.028] Calling the hang analyzer: PATH="/opt/mongodbtoolchain/gdb/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/bin" python2.7 buildscripts/hang_analyzer.py -c -o file -o stdout -p dbtest,java,mongo,mongod,mongos,python,_test -g bsondump,mongodump,mongoexport,mongofiles,mongoimport,mongooplog,mongoreplay,mongorestore,mongostat,mongotop
      [2017/03/23 15:50:41.028] PATH="/opt/mongodbtoolchain/gdb/bin:$PATH" python2.7 buildscripts/hang_analyzer.py $hang_analyzer_option
      [2017/03/23 15:50:41.290] Python Version: 2.7.6 (default, Sep  9 2014, 15:04:36)
      [2017/03/23 15:50:41.290] [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
      [2017/03/23 15:50:41.480] OS: Darwin-14.0.0-x86_64-i386-64bit
      [2017/03/23 15:50:41.481] Linux Distribution: ('', '', '')
      [2017/03/23 15:50:41.481] Current User: 500
      [2017/03/23 15:50:41.481] Current Login: mci
      [2017/03/23 15:50:41.482] Getting list of processes using /bin/ps
      [2017/03/23 15:50:41.482] ['/bin/ps', '-axco', 'pid,comm']
      [2017/03/23 15:50:41.498] Found 6 interesting processes [(68404, 'mongod'), (68405, 'mongod'), (68406, 'mongod'), (68472, 'mongod'), (68476, 'mongos'), (68624, 'mongo')]
      
      System logs
      [2017/03/23 15:45:40.387] mci             61644   6.9  0.3  2618800  58180   ??  S     1:27PM   3:16.18 /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python buildscripts/resmoke.py --suites=sharded_collections_jscore_passthrough --storageEngine=mmapv1 --jobs=1 --shuffle --continueOnFailure --storageEngineCacheSizeGB=1 --log=buildlogger --reportFile=report.json --taskId=mongodb_mongo_master_osx_107_sharded_collections_jscore_passthrough_d55eaad5cdfcfbe8458658d39f8c57102c3b3504_17_03_22_23_26_27
      

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: