[llvm-bugs] [Bug 48714] New: ld64.lld.darwinnew produces invalid debug info, causing lldb to err with "N_SO in symbol with UID 145239 has invalid sibling in debug map, please file a bug and attach the binary listed in this error"
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 11 08:10:48 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48714
Bug ID: 48714
Summary: ld64.lld.darwinnew produces invalid debug info,
causing lldb to err with "N_SO in symbol with UID
145239 has invalid sibling in debug map, please file a
bug and attach the binary listed in this error"
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: MachO
Assignee: unassignedbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: gkm at fb.com, jezreel at gmail.com,
llvm-bugs at lists.llvm.org, smeenai at fb.com
Known issue, but I figured I'd file a bug so that I can link to it. Possible
repro, extracted from https://bugs.llvm.org/show_bug.cgi?id=48657#c5 (there are
likely way smaller repros):
1. Download
https://drive.google.com/file/d/1thKfcfKUMhyJ22HRSjorIKZjH42k3bnZ/view?usp=sharing
(warning: large, 1GB compressed, 5.3GB unzipped -- but it links very quickly,
less than a second with both linkers).
2. Link as usual (`ld64.lld.darwinnew @response.txt`)
3. Run like e.g. so: `lldb -- ./mksnapshot --turbo_instruction_scheduling
--target_os=mac --target_arch=x64 --embedded_src embedded.S --embedded_variant
Default --random-seed 314159265 --startup_blob snapshot_blob.bin
--native-code-counters --verify-heap`
When loading the lld-linked binary into lldb, it prints many lines looking like
error: mksnapshot N_SO in symbol with UID 145239 has invalid sibling in debug
map, please file a bug and attach the binary listed in this error
This doesn't happen with ld.
(Once this is fixed, debug info isn't terribly useful without the actual source
files somewhere. Due to
https://blog.llvm.org/2019/11/deterministic-builds-with-clang-and-lld.html one
has to run `settings set target.source-map ../.. actual/local/path/to/src` in
lldb even if src files are available locally somewhere.)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210111/d22e0b6f/attachment.html>
More information about the llvm-bugs
mailing list