This only happens when linking with ld.gold. Looks like the problem has something to do with this warning from readelf. readelf: Warning: There are 76 unused bytes at the end of section .debug_loc This is already present in the object file, but sometimes the linking seems to fix it. If it doesn't (only happens with ld.gold) then gdb fails to find a frame base.
https://github.com/D-Programming-Language/dmd/pull/4168
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/26fd7e3699d63aa4c8c31bfb024463c9faabfb4b fix Issue 13779 - gdb can't find frame base when using ld.gold - missing relocation addend .debug_info reference to .debug_loc https://github.com/D-Programming-Language/dmd/commit/e7a03fdd3cd0b5acb134edc28f8880a5de1162a8 Merge pull request #4168 from MartinNowak/fix13779 fix Issue 13779 - gdb can't find frame base when using ld.gold
Commits pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/26fd7e3699d63aa4c8c31bfb024463c9faabfb4b fix Issue 13779 - gdb can't find frame base when using ld.gold https://github.com/D-Programming-Language/dmd/commit/e7a03fdd3cd0b5acb134edc28f8880a5de1162a8 Merge pull request #4168 from MartinNowak/fix13779
*** Issue 11573 has been marked as a duplicate of this issue. ***