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

GDB pretty printers not working for absl hash maps

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL
    • Programmability 2025-05-12
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      Running 

      /opt/mongodbtoolchain/v5/bin/gdb bazel-bin/install/bin/mongod

      and then trying to print a ResolvedNamespaceMap fails with the following error:

      (gdb) p expCtx->_params.resolvedNamespaces
      $10 = Traceback (most recent call last):
        File "buildscripts/gdb/mongo_printers.py", line 579, in absl_get_settings
          common_fields_storage_type = gdb.lookup_type(
      gdb.error: No type named absl::lts_20230802::container_internal::internal_compressed_tuple::Storage<absl::lts_20230802::container_internal::CommonFields, 0, false>.
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "buildscripts/gdb/mongo_printers.py", line 702, in to_string
          absl_container_size(absl_get_settings(self.val)),
        File "buildscripts/gdb/mongo_printers.py", line 592, in absl_get_settings
          common_fields_storage_type = gdb.lookup_type(
      gdb.error: No type named absl::lts_20230802::container_internal::internal_compressed_tuple::Storage<absl::container_internal::CommonFields, 0, false>. 

       

       

            Assignee:
            alex.li@mongodb.com Alex Li
            Reporter:
            mariano.shaar@mongodb.com Mariano Shaar
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: