azurelinux icon indicating copy to clipboard operation
azurelinux copied to clipboard

fix mtr segfault

Open AZaugg opened this issue 3 weeks ago • 0 comments

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • [ ] The toolchain has been rebuilt successfully (or no changes were made to it)
  • [ ] The toolchain/worker package manifests are up-to-date
  • [ ] Any updated packages successfully build (or no packages were changed)
  • [ ] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • [ ] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • [ ] All package sources are available
  • [ ] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • [ ] LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • [ ] All source files have up-to-date hashes in the *.signatures.json files
  • [ ] sudo make go-tidy-all and sudo make go-test-coverage pass
  • [ ] Documentation has been updated to match any changes to the build system
  • [ ] Ready to merge

Summary

When building mtr with pkgconfig we are getting missmatched ABI pairing betweeen ncursesw tinfo during build time force the correct ABI pair and dont confuse v5 and v6 ncurse versions

Change Log
  • Fixes mtr segfaut
Does this affect the toolchain?

NO

Associated issues
  • #15286
Test Methodology

https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1002606&view=results

Ran mtr, before change

$ mtr
Segmentation fault (core dumped)
root [ /usr/src/azl/SPECS ]# ldd /sbin/mtr|grep -E  'libtinfo|libncurses'
	libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007fea457b1000)
	libtinfo.so.6 => /usr/lib/libtinfo.so.6 (0x00007fea4577c000)
root [ /usr/src/azl/SPECS ]#

After change, mtr runs

AZaugg avatar Dec 11 '25 16:12 AZaugg