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

V4 clang with DWARF5 and dynamic linking generates bad debug info

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Hide

       

      ./buildscripts/scons.py --dbg --variables-files=etc/scons/developer_versions.vars --variables-files=etc/scons/mongodbtoolchain_v4_clang.vars ICECC=icecc CCACHE=ccache --link-model=dynamic --modules= --ninja
      ninja -j400 install-mongod
      /opt/mongodbtoolchain/v4/bin/gdb build/install/bin/mongod
      b mongod_main
      r
      c
      info locals
      

       

      Show
        ./buildscripts/scons.py --dbg --variables-files=etc/scons/developer_versions.vars --variables-files=etc/scons/mongodbtoolchain_v4_clang.vars ICECC=icecc CCACHE=ccache --link-model=dynamic --modules= --ninja ninja -j400 install-mongod /opt/mongodbtoolchain/v4/bin/gdb build/install/bin/mongod b mongod_main r c info locals  

      It seems clang does not support this combination, we could set clang back to DWARF4 for this specific combination, when building dynamic we will have plenty of room for debug info as it will be spread out across the libraries, so we don't really need DWARF64 support in this case.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: