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

executables with multiple hard-links (outside buildroot) make find-debugedit fail

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: Generate New Ti...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-10.0
    • rhel-10.0
    • debugedit
    • None
    • debugedit-5.1-4.el10
    • Yes
    • Moderate
    • 1
    • rhel-pt-perf-tools
    • 22
    • 24
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • PT PerfDebug 2025 S01
    • Unspecified Release Note Type - Unknown
    • None

      This was reported in Fedora:
      https://bugzilla.redhat.com/show_bug.cgi?id=2334760

      The issue is that the find-debuginfo script now fails when the do_file function exits with a non-zero code.
      do_file however only has non-zero returns when it explicitly checks for a failure.
      do_file doesn't have an explicit return at the end.
      So the exit code of the function will be whatever the exit code of the last command in the function was.

      It looks like the last thing do_file does is check if the file has multiple hard links.
      Some files are hardlinked, but not to other files in the BUILDROOT, but to other dist build files.
      This apparently confuses the function/script, even though it isn't fatel.

      Could replicate with an hello.spec file that has something like the following in %install:

      ln %

      {buildroot}%{_bindir}/hello %{buildroot}

      /../x

      Which will the produce:

      find-debuginfo: starting
      Extracting debug info from 2 files
      grep: /tmp/find-debuginfo.2rRIL3/linked: No such file or directory
      error: Bad exit status from /var/tmp/rpm-tmp.0zwSXO (%install)

      upstream patch:
      https://inbox.sourceware.org/debugedit/20250116180900.1158563-1-mark@klomp.org

      fedora fix:
      https://bodhi.fedoraproject.org/updates/FEDORA-2025-020b7e8c6a

              rhn-engineering-mjw Mark Wielaard
              rhn-engineering-mjw Mark Wielaard
              Mark Wielaard Mark Wielaard
              Martin Cermak Martin Cermak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: