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

Update core analyzer to use gdbmongo version 0.15.2

    • Correctness
    • Fully Compatible

      The core analyzer errors for recent server binaries when attempting to dump the mongo::LockManager:

      [2025/01/31 16:18:25.461] Traceback (most recent call last):
      [2025/01/31 16:18:25.461]   File "<string>", line 1, in <module>
      [2025/01/31 16:18:25.461]   File "/data/mci/3ecfb2b15c5ef2623650ea82c94a238d/venv/lib/python3.10/site-packages/gdbmongo/lock_manager_printer.py", line 361, in from_global
      [2025/01/31 16:18:25.461]     return cls.from_global_service_context()
      [2025/01/31 16:18:25.461]   File "/data/mci/3ecfb2b15c5ef2623650ea82c94a238d/venv/lib/python3.10/site-packages/gdbmongo/lock_manager_printer.py", line 63, in from_global_service_context
      [2025/01/31 16:18:25.461]     return cls.from_service_context(service_context)
      [2025/01/31 16:18:25.461]   File "/data/mci/3ecfb2b15c5ef2623650ea82c94a238d/venv/lib/python3.10/site-packages/gdbmongo/lock_manager_printer.py", line 342, in from_service_context
      [2025/01/31 16:18:25.461]     for decoration in DecorationIterator(service_context):
      [2025/01/31 16:18:25.461]   File "/data/mci/3ecfb2b15c5ef2623650ea82c94a238d/venv/lib/python3.10/site-packages/gdbmongo/decorable_printer.py", line 320, in DecorationIterator
      [2025/01/31 16:18:25.461]     for (_, decoration) in iterator:
      [2025/01/31 16:18:25.461]   File "/data/mci/3ecfb2b15c5ef2623650ea82c94a238d/venv/lib/python3.10/site-packages/gdbmongo/decorable_printer.py", line 66, in children
      [2025/01/31 16:18:25.461]     for (index, (decoration_type, decoration_value)) in enumerate(self._iterate_raw_entries()):
      [2025/01/31 16:18:25.461]   File "/data/mci/3ecfb2b15c5ef2623650ea82c94a238d/venv/lib/python3.10/site-packages/gdbmongo/decorable_printer.py", line 281, in _iterate_raw_entries
      [2025/01/31 16:18:25.461]     decoration_type = self._cast_decoration_value(type_name, decoration_address).type
      [2025/01/31 16:18:25.461]   File "/data/mci/3ecfb2b15c5ef2623650ea82c94a238d/venv/lib/python3.10/site-packages/gdbmongo/decorable_printer.py", line 108, in _cast_decoration_value
      [2025/01/31 16:18:25.461]     return gdb.parse_and_eval(f"({escaped}) {decoration_address}").dereference()
      [2025/01/31 16:18:25.461] gdb.error: No symbol "std::unique_ptr<_mongocrypt_t, mongo::libmongocrypt_support_detail::LibMongoCryptDeleter<_mongocrypt_t, &mongocrypt_destroy> >" in current context.
      

      https://parsley.mongodb.com/test/mongodb_mongo_master_enterprise_amazon_linux2_arm64_all_feature_flags_core_analysis_concurrency_sharded_causal_consistency_4_linux_enterprise0_7pV1p_0b33e47c67393aa9bb8e89c87a32984cf9f1b436_25_01_30_22_09_35/0/4d75fc90fdf820442feaa700e11abe9e?bookmarks=0,7744,7746&shareLine=7728

      Updating the dependency to gdbmongo version 0.15.2 would resolve this error:

      https://github.com/visemet/gdb-mongodb-server/blob/main/CHANGELOG.rst
      https://github.com/visemet/gdb-mongodb-server/compare/v0.15.1...v0.15.2

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: