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

mongodb-javascript-stack always fails when running in hang_analyzer.py

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • v4.2
    • STM 2019-07-29
    • 1

    Description

      [2019/06/05 03:28:31.295] Running Print JavaScript Stack Supplement
      [2019/06/05 03:28:31.295] Ignoring GDB error 'No type "mozjs" within class or namespace "mongo".' in javascript_stack
      [2019/06/05 03:28:31.295] Ignoring GDB error 'No type "mozjs" within class or namespace "mongo".' in javascript_stack
      [2019/06/05 03:28:31.295] Ignoring GDB error 'No type "mozjs" within class or namespace "mongo".' in javascript_stack
      [2019/06/05 03:28:31.295] Ignoring GDB error 'No type "mozjs" within class or namespace "mongo".' in javascript_stack
      [2019/06/05 03:28:31.295] Ignoring GDB error 'No type "mozjs" within class or namespace "mongo".' in javascript_stack
      [2019/06/05 03:28:31.295] Ignoring GDB error 'No type "mozjs" within class or namespace "mongo".' in javascript_stack
      

      https://evergreen.mongodb.com/task_log_raw/mongodb_mongo_master_ubuntu1604_replica_sets_auth_1_ubuntu1604_c939010fe98ba0a8affe7d0d30d4e8d57e68242b_19_06_05_00_44_58/0?type=T#L2539


      Original description

      In gdb, if we're in a frame that does not know about mongo::mozjs:kCurrentScope, then we will not print a javascript stack trace.

      This can be especially useful when debugging our integration tests and gdb optimizes variables out of the core dump.

      max.hirschhorn figured out that switching the frame in gdb (frame 1) and then running mongodb-javascript-stack will work fine.

      Perhaps we can arbitrarily switch frames here before trying to print the stack trace.

      Attachments

        Activity

          People

            max.hirschhorn@mongodb.com Max Hirschhorn
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: