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

GDB commands mongodb-dump-mutexes and mongodb-dump-recovery-units error while accessing Clients in ServiceContext

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Server Programmability
    • ALL
    • Programmability 2024-11-25

      ServiceContext::_clients became an absl::node_hash_map and so client_handle.dereference().dereference() is no longer the appropriate way to access the Client*.

      [2024/08/13 07:13:07.305] Dumping mutex info for all Clients
      [2024/08/13 07:13:07.305] Traceback (most recent call last):
      [2024/08/13 07:13:07.305]   File "buildscripts/gdb/mongo.py", line 575, in invoke
      [2024/08/13 07:13:07.305]     client = client_handle.dereference().dereference()
      [2024/08/13 07:13:07.305] gdb.error: Attempt to take contents of a non-pointer value.
      [2024/08/13 07:13:07.305] Error occurred in Python: Attempt to take contents of a non-pointer value.
      
      [2024/08/13 07:13:07.305] Dumping recovery unit info for all clients and sessions
      [2024/08/13 07:13:07.305] Traceback (most recent call last):
      [2024/08/13 07:13:07.305]   File "buildscripts/gdb/mongo.py", line 657, in invoke
      [2024/08/13 07:13:07.305]     self.dump_recovery_units(arg)
      [2024/08/13 07:13:07.305]   File "buildscripts/gdb/mongo.py", line 677, in dump_recovery_units
      [2024/08/13 07:13:07.305]     client = client_handle.dereference().dereference()
      [2024/08/13 07:13:07.305] gdb.error: Attempt to take contents of a non-pointer value.
      

      https://parsley.mongodb.com/test/mongodb_mongo_master_enterprise_rhel_8_64_bit_inmem_core_analysis_config_fuzzer_jstestfuzz_concurrent_replication_3_linux_enterprise0_lFQ00_fa049fff2628bdfa8c03c364f2806a7784d93277_24_08_13_00_07_12/0/a48012ac9742834cb41d8dd3664b3c8b?bookmarks=0,2110,2120,2133&shareLine=2110

            Assignee:
            adithi.raghavan@mongodb.com Adithi Raghavan
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: