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

LLDB fails to load symbols on toolchain v4

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Development Platform
    • ALL

      After the [toolchain v4 change|http://example.com] LLDB is no longer able to load symbols when building with regular scons settings, like:

      ./buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --ninja generate-ninja ICECC=icecc CCACHE=ccache --dbg=off --opt=on --modules=""
       

      This issue appears to be related to using higher DWARF than 32.

      Current workaround is to explicitly pass "DWARF=32" flag to scons.

       

      If direct fix is not feasible, we should consider the workaround more discoverable by engineers using LLDB, e.g.:

      a) documenting it in offical mongo dev guide for LLDB setup
      b) having a friendly flag to indicate that LLDB support is needed, like "LLDB_SUPPORT=on" or similar, that would be less likely to break and adapt to any workaround differences in the future toolchains.

       

      We should also consider adding regression test for LLDB, that verifies sanity of the debugger.

       

      For more details see discussion https://mongodb.slack.com/archives/CR8SNBY0N/p1671138402568879

       

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: