Open wcohen opened 1 year ago
@llvm/issue-subscribers-debuginfo
Could you upload libclang-cpp.so.14-14.0.5-2.fc36.x86_64.debug somewhere convenient? (or links to where to download the rpms/how to extract that file?)
The file is rather large, 1.5GB. It would be better to download the rpm than attach it to this issue. The koji build system has the various architecture builds for clang14 in https://koji.fedoraproject.org/koji/buildinfo?buildID=2096838
The specific rpm containing the file is https://kojipkgs.fedoraproject.org//packages/clang/14.0.5/2.fc36/x86_64/clang-libs-debuginfo-14.0.5-2.fc36.x86_64.rpm (clang-libs-debuginfo-14.0.5-2.fc36.x86_64).
Doesn't crash with ToT at least, I get this result for that particular DIE:
0x00000a72: DW_TAG_template_type_parameter
DW_AT_name ("T")
DW_AT_type (<alt 0x534> "")
That's good that llvm-dwarfdump made it farther. It sounds like ToT may partially addresses the problem. However, I tried the same libclang-cpp.so on fedora rawhide which is using clang15. It crashes also at the same point:
[wcohen@rawhide ~]$ rpm -q clang clang-15.0.7-1.fc38.x86_64 [wcohen@rawhide ~]$ llvm-dwarfdump ./libclang-cpp.so.14-14.0.5-2.fc36.x86_64.debug ... 0x00000a72: DW_TAG_template_type_parameter DW_AT_name ("T") DW_AT_type (<alt 0x534> "PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump:
Segmentation fault (core dumped)
Maybe some other differences in the environment such as shared libaries are causing the problem:
[wcohen@rawhide ~]$ ldd /usr/bin/llvm-dwarfdump linux-vdso.so.1 (0x00007ffe38f27000) libLLVM-15.so => /lib64/libLLVM-15.so (0x00007f106c800000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f106c400000) libc.so.6 => /lib64/libc.so.6 (0x00007f106c221000) libffi.so.8 => /lib64/libffi.so.8 (0x00007f1073514000) libedit.so.0 => /lib64/libedit.so.0 (0x00007f10734d7000) libm.so.6 => /lib64/libm.so.6 (0x00007f106c720000) libz.so.1 => /lib64/libz.so.1 (0x00007f10734bb000) libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f1073488000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f1073464000) /lib64/ld-linux-x86-64.so.2 (0x00007f1073539000) [wcohen@rawhide ~]$ rpm -qf /lib64/libLLVM-15.so /lib64/libstdc++.so.6 /lib64/libc.so.6 /lib64/libffi.so.8 /lib64/libedit.so.0 /lib64/libm.so.6 /lib64/libz.so.1 /lib64/libtinfo.so.6 /lib64/libgcc_s.so.1 llvm-libs-15.0.7-1.fc38.x86_64 libstdc++-13.0.0-0.9.fc38.x86_64 glibc-2.36.9000-19.fc38.x86_64 libffi-3.4.4-1.fc38.x86_64 libedit-3.1-44.20221030cvs.fc38.x86_64 glibc-2.36.9000-19.fc38.x86_64 zlib-1.2.13-2.fc38.x86_64 ncurses-libs-6.4-2.20230114.fc38.x86_64 libgcc-13.0.0-0.9.fc38.x86_64
When trying things with the debuginfo file for the newer libclang-cpp.so it gets farther but crashes:
llvm-dwarfdump /usr/lib/debug/usr/lib64/libclang-cpp.so.15-15.0.7-1.fc38.x86_64.debug ... 0x00008b07: DW_TAG_formal_parameter DW_AT_type (<alt 0x72cd3> "PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump:
Segmentation fault (core dumped)
On x86_64 Fedora 36 llvm-dwarfdump from llvm-14.0.5-1.fc36.x86_64 crashes when trying to process the debuginfo of
libclang-cpp.so
. Have the following rpms installed:llvm-14.0.5-1.fc36.x86_64 clang-libs-debuginfo-14.0.5-2.fc36.x86_64 clang-libs-14.0.5-2.fc36.x86_64
Run the following command to reproduce the crash:
Very soon after starting get the following crash output: