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

Handle GDB error in hang_analyzer.py mongodb-uniqstack module

    • Fully Compatible
    • v3.4
    • TIG 2017-03-27, TIG 2017-04-17
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The mongodb-uniqstack module goes through each thread and frame to detect unique or duplicate threads in a process. On the s390x platform it can error, which terminates the module, producing no backtrace output. Partial output is preferable to none, so the GDB error should be trapped and not raised.

                  try:
                      thread_info['frames'] = gdb.execute(arg, to_string=True).rstrip()
                  except gdb.error as err:
                      raise gdb.GdbError("{} {}".format(thread_info['header'], err))
      

            Assignee:
            jonathan.abrahams Jonathan Abrahams (Inactive)
            Reporter:
            jonathan.abrahams Jonathan Abrahams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None