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

Dump JS debug information when aborting in the mongo shell

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Labels:
      None
    • Linked BF Score:
      0

      Description

      When an invariant is hit in the mongo shell, it can be hard to figure out from the core dump which JS-side functions called into the native code to trip the invariant, especially since a lot of the function names are optimized out in mozjs. It'd really help to dump this at runtime.

      This might need some investigating. I'm not sure how feasible it would be to get access to the JS stack at the last second.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM)
            Reporter:
            carl.worley Raiden Worley
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: