Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-40929

gdb-add-index crashes trying to parse clang's DWARF5

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • rhel-9.5
    • gdb
    • None
    • None
    • None
    • rhel-sst-pt-perf-debug
    • ssg_platform_tools
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

      What were you trying to do that didn't work?

      gdb-add-index, which is invoked during RPM builds, crashes when trying to parse clang's DWARF5 output. See https://kojipkgs.fedoraproject.org//packages/clang/18.1.6/4.fc41/data/logs/x86_64/build.log

      Please provide the package NVR for which bug is seen:

      gdb-minimal-10.2-13.el9

      How reproducible:

      Always.

      Steps to reproduce

      1. I'm not sure the best way to reproduce. You could try to do a mock build of clang using a RHEL-9.5 chroot, but you would need to add -gdwarf-5 to the CXXFLAGS, because clang now defaults to DWARF-4.

      Expected results

      gdb-add-index works correctly and the find-debuginfo.sh script completes successfully.

      Actual results

      gdb-add-index crashes.

              keiths@redhat.com Keith Seitz
              tstellar@redhat.com Thomas Stellard
              Keith Seitz Keith Seitz
              qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: