[SERVER-72442] V4 clang with DWARF5 and dynamic linking generates bad debug info Created: 29/Dec/22  Updated: 29/Oct/23  Resolved: 31/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Moody Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-72572 Unset DWARF_VERSION causes exception Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

 

./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

 

Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 31/Dec/22 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-72442 make v4 clang dynamic builds use DWARF4
Branch: master
https://github.com/mongodb/mongo/commit/4bed64eb2bc2bf81fd0ba8b9dd2369a4ec84505a

Generated at Thu Feb 08 06:21:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.