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

Make captureStackFrames() more robust to failure of unw_get_proc_name()

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • ALL
    • Programmability 2024-07-08

      The current code falls back to dladdr(), but also sets error state, which keeps the stacktrace from getting logged. Fix this.

      Ideally, we'd also log the trace even if some frames are garbage, as something is better than nothing. Not sure how much we'd need to grow the scope to do that, though.

            Assignee:
            ronald.steinke@mongodb.com Ronald Steinke
            Reporter:
            ronald.steinke@mongodb.com Ronald Steinke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: