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

GDB pretty printer unable to print NamespaceString

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL

    Description

      SERVER-75529 changed the in-memory layout of NamespaceString, but broke pretty-printing that type in gdb. From a recent discussion:

      I’m trying to look at the value of a variable in gdb from a core dump and getting this error:
      (gdb) t 59
      [Switching to thread 59 (Thread 0x7f57eca84700 (LWP 21446))]
      #0 0x00007f581ef9c7e1 in poll () from /lib64/libc.so.6
      (gdb) f 22
      #22 0x00007f581c94f332 in mongo::repl::OplogApplierImpl::_applyOplogBatch (this=0x55f1a0e93ec0, opCtx=0x55f1a0ef5000, ops=std::vector of length 1, capacity 5000 =

      Unknown macro: {...}

      ) at src/mongo/db/repl/oplog_applier_impl.cpp:555
      555 Lock::ParallelBatchWriterMode pbwm(opCtx);
      (gdb) p ops
      $1 = std::vector of length 1, capacity 5000 =

      Unknown macro: {Traceback (most recent call last)}

      any ideas?

      Attachments

        Activity

          People

            matt.broadstone@mongodb.com Matt Broadstone
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: