[SERVER-72219] v4 clang defaults to dwarf4 which is incompat with dwarf64 Created: 16/Dec/22 Updated: 29/Oct/23 Resolved: 19/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Daniel Moody | Assignee: | [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Server Development Platform
|
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
Our build attempts to turn on dwarf64 if the flag is supported, which it is with clang, but not with dwarf4 which is what clang defaults too. This results in an seg fault when debugging with GDB like this:
We need to force clangs default to dwarg5 or force clang builds to dwarf32.
Workarounds: OR Set DWARF_WIDTH=32 on the scons command line
|
| Comments |
| Comment by Githook User [ 17/Dec/22 ] |
|
Author: {'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}Message: |