clang14 build with -update-debug-sections rewrite debug info core #307
Comments
Hi @zpget, Thanks for reporting! Can you please also include full backtrace and the version of BOLT used? @ayermolo - does that look familiar? Can that be the cause of the crash?
|
Kind:5
|
I would suggest you check if the issue reproduces with the trunk version of BOLT first. AFAIK DWARF5 support was added to BOLT after LLVM14 release and it wasn't backported. |
Hi |
BOLT version: before coredump print so many warnings: |
clang build with -gdwarf-4 -gstrict-dwarf ,
can success , For help, type "help". so something wrong with debuginfo update? |
You're using non-upstreamed BOLT version which was last updated in Jan this year. Please follow the instructions on that page (https://github.com/llvm/llvm-project/tree/main/bolt#manual-build) to check out and build the latest trunk version. |
ok, now can fix coredump ,but get some ERROR: |
Hmm. Are you sure you are on latest llvm trunk? I am pretty sure I fixed that and committed it. |
with this commit: 4f158995b9cddae392bfb5989af8c83101ae0789 today i see have a latest commit? 4d3a0cade2ed0bdc87256c197215691c2e279ed0 |
I added support in https://reviews.llvm.org/D128526 |
compiler: llvm-project-14.0.5.src/clang f68d4e64a17b5699e0245b1a7c445830d38fd75f int main() { |
Debug Info in question comes from GCC compiled code. |
ok, test can work, thanks~ |
GCC 12 produces DW_FORM_addr for DW_AT_call_return_pc. Added support for that. Fixes facebookarchive/BOLT#307 Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D136204
compiler: clang14, default dwarf5
error msg:
BOLT-INFO: SCTC: patched 39 tail calls (36 forward) tail calls (3 backward) from a total of 39 while removing 0 double jumps and removing 28 basic blocks totalling 140 bytes of code. CTCs total execution count is 70740640 and the number of times CTCs are taken is 0.
BOLT-INFO: padding code to 0xb800000 to accommodate hot text
BOLT-WARNING: empty location list detected at 0x27 for DIE at 0x490b in CU at 0x53d
BOLT-WARNING: unexpected low_pc form value. Cannot update DIE at offset 0x491f
BOLT-WARNING: Unsupported DWARFLocationEntry Kind:5
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var
LLVM_SYMBOLIZER_PATH
to point to it):PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: llvm-bolt -enable-bat=1 test -o test.bolt -data test.fdata -align-macro-fusion=all -reorder-blocks=cache+ -reorder-functions=hfsort+ -split-functions=3 -split-all-cold -split-eh -dyno-stats -icf=1 -update-debug-sections
The text was updated successfully, but these errors were encountered: