Skip to content

# [Issue][hip-tests] CI (Linux DEB packaging): dh_makeshlibs fails on intentionally-malformed ELF fixture elf_bad_shoff.co #8929

Description

@amd-chiranjeevi

Description

The Linux::release / Build DEB Packages / Build deb packages job fails during DEB packaging of amdrocm-runtime-test7.15. The Debian helper dh_makeshlibs runs objdump -p on every .co file included in the package — including elf_bad_shoff.co, which is an intentionally malformed ELF test fixture generated by gen_evil_elfs.py. objdump correctly rejects it ("file format not recognized") and exits with code 1, causing the build to abort.

This was introduced by PR #7350 ([clr] do not allow clr to read out of bounds in some cases) in the 9e54f75→769f0f5 rocm-systems bump.

Context

Platform Step Job ID
Linux Build DEB Packages 88608761533

Log Excerpt

dh_makeshlibs -a -O--no-parallel
objdump: debian/amdrocm-runtime-test7.15/opt/rocm/core-7.15/share/hip/catch_tests/elf_bad_shoff.co: file format not recognized
dh_makeshlibs: error: objdump -p debian/amdrocm-runtime-test7.15/opt/rocm/core-7.15/share/hip/catch_tests/elf_bad_shoff.co returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
Error building deb package: amdrocm-runtime-test7.15: Command '['dpkg-buildpackage', '-uc', '-us', '-b']' returned non-zero exit status 2.
❌ Build aborted due to an error at /__w/TheRock/TheRock/build_tools/packaging/linux/deb_package.py:472: 2

Suspected Contributing Changes (in bump 9e54f75→769f0f5)

  • 86ae9b62[clr] do not allow clr to read out of bounds in some cases (#7350) PR
    Introduces a new OOB test suite under projects/hip-tests/catch/unit/oob/, including gen_evil_elfs.py which generates deliberately malformed ELF files (elf_bad_shoff.co, elf_huge_shnum.co, etc.) as test fixtures. These malformed .co files are installed into share/hip/catch_tests/ and packaged in amdrocm-runtime-test. dh_makeshlibs calls objdump -p on all installed .co files and errors out on the corrupted ELF header.

Expectation

The amdrocm-runtime-test DEB package must build successfully. Malformed-ELF test fixtures should either be excluded from dh_makeshlibs processing or installed in a path not scanned by it.

Impact

Blocks DEB packaging for amdrocm-runtime-test7.15 on Linux for all GPU architectures. RPM packaging (Build RPM Packages) succeeded (rpm's find-debuginfo does not run objdump -p on .co files in the same way). No functional test or build stage failures — purely a packaging regression.

Metadata

Metadata

Assignees

Labels

bump-prissues noticed in bump pr from TheRock repositorymonitoringissues created/monitoring by monitoring team

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions