[SERVER-32197] Remote host is missing the debug symbols for hang_analyzer in evergreen.yml Created: 06/Dec/17  Updated: 30/Oct/23  Resolved: 14/Dec/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.6.3, 3.7.1

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: TIG 2018-1-1, TIG 2017-12-18
Participants:

 Description   

The debug symbol files should be copied over to the remote host during the timeout phase, as that is when they are fetched. This can be corrected as follows in that phase, before invoking the remote hang_analyzer:

          # Copy mongoDB debug symbols to the remote host.
          debug_files=$(ls *.debug *.dSYM *.pdb 2> /dev/null)
          for debug_file in $debug_files
          do
            file_param="$file_param --file $debug_file"
          done
          if [ ! -z "$file_param" ]; then
            ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/remote_operations.py \
              --verbose                                        \
              --userHost $USER@${ip_address}                   \
              --operation "copy_to"                            \
              --sshConnectionOptions "$ssh_connection_options" \
              --retries ${ssh_retries}                         \
              $file_param                                      \
              --remoteDir $remote_dir
          fi

The other part of this fix is to modify this code from "set up EC2 instance" as these debug symbols files are not fetched and therefore never copied:

          # Copy buildscripts, mongoDB executables and debug symbols to the remote host.
          file_param="--file buildscripts"
          mongo_executables="mongo mongod mongos"
          file_extensions=".debug .dSYM .pdb"
          for executable in $mongo_executables
          do
            file_param="$file_param --file $executable${exe}"
            for extension in $file_extensions
            do
              file=$executable$extension
              if [[ -f $file || -d $file ]]; then
                file_param="$file_param --file $file"
              fi
            done
          done

to

          # Copy buildscripts and mongoDB executables to the remote host.
          file_param="--file buildscripts"
          mongo_executables="mongo mongod mongos"
          for executable in $mongo_executables
          do
            file_param="$file_param --file $executable${exe}"
          done



 Comments   
Comment by Githook User [ 02/Feb/18 ]

Author:

{'email': 'jonathan@mongodb.com', 'name': 'Jonathan Abrahams', 'username': 'hptabster'}

Message: SERVER-32197 Remote host is missing the debug symbols for hang_analyzer in evergreen.yml

(cherry picked from commit 742f8b8f770a317d01bf414a30ef51b79394a8a4)
Branch: v3.6
https://github.com/mongodb/mongo/commit/9d87e41c22d910cc1a80a7256f95af9b54ec3806

Comment by Githook User [ 14/Dec/17 ]

Author:

{'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com', 'username': 'hptabster'}

Message: SERVER-32197 Remote host is missing the debug symbols for hang_analyzer in evergreen.yml
Branch: master
https://github.com/mongodb/mongo/commit/742f8b8f770a317d01bf414a30ef51b79394a8a4

Generated at Thu Feb 08 04:29:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.