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

The mongod-dump-sessions gdb pretty printer does not work

    • Server Development Platform
    • Fully Compatible
    • ALL
    • v7.0, v6.3
    • Sharding NYC 2023-05-01
    • 105

      When I try to open a core dump for this failure, I get these errors when dumping the session catalog:

      (gdb) mongod-dump-sessions
      Failed to look up decoration type: std::unique_ptr<mongo::transport::(anonymous namespace)::Handle>: No type named std::unique_ptr<mongo::transport::(anonymous namespace)::Handle>.
      Failed to look up decoration type: std::unique_ptr<mongo::telemetry::(anonymous namespace)::TelemetryStoreManager>: No type named std::unique_ptr<mongo::telemetry::(anonymous namespace)::TelemetryStoreManager>.
      Failed to look up decoration type: std::unique_ptr<mongo::transport::(anonymous namespace)::Handle>: No type named std::unique_ptr<mongo::transport::(anonymous namespace)::Handle>.
      Failed to look up decoration type: std::unique_ptr<mongo::telemetry::(anonymous namespace)::TelemetryStoreManager>: No type named std::unique_ptr<mongo::telemetry::(anonymous namespace)::TelemetryStoreManager>.
      Dumping 161 Session objects from the SessionCatalog
      Traceback (most recent call last):
        File "buildscripts/gdb/mongo.py", line 419, in invoke
          parent_session = session_runtime_info['parentSession']
      gdb.error: Attempt to extract a component of a value that is not a struct/class/union.
      Error occurred in Python: Attempt to extract a component of a value that is not a struct/class/union.
      

      This specific failure was on the 6.3 branch. I have no idea if the same problem exists on newer branches, but this is preventing me from easily investigating a possible deadlock.

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: