Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pkgconf] Segmentation Fault when running the binary #41576

Open
aabellagm opened this issue Oct 15, 2024 · 3 comments
Open

[pkgconf] Segmentation Fault when running the binary #41576

aabellagm opened this issue Oct 15, 2024 · 3 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@aabellagm
Copy link
Contributor

Describe the bug
The pkgconf binary crashes (Segmentation Fault) in Fedora 41. That causes errors when building other packages, like ffmpeg.

Environment

  • OS: Fedora 41
  • Compiler: gcc 14.2.1

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install pkgconf
  2. ./installed/x64-linux/tools/pkgconf/pkgconf --version
    Segmentation fault (core dumped)

Expected behavior
The command above should just run and print the version and it also should allow ffmpeg to be correctly built.

Additional context

  • It fails in a VM and in Docker
  • ldd command ends with error code 1 without printing anything.
  • The binary in packages directory fails in the same way. The one in the buildtrees works as expected.
  • Setting set(VCPKG_FIXUP_ELF_RPATH OFF) in the triplet solves the pkgconf problem, but it would be desirable
  • In case it helps, the output when using pkgconf while building ffmpeg:
<·······················>
-- Fixing pkgconfig file: /home/mega/vcpkg/packages/ffmpeg_x64-linux/debug/lib/pkgconfig/libswresample.pc
-- Fixing pkgconfig file: /home/mega/vcpkg/packages/ffmpeg_x64-linux/debug/lib/pkgconfig/libswscale.pc
CMake Error at installed/x64-linux/share/vcpkg-pkgconfig-get-modules/x_vcpkg_pkgconfig_get_modules.cmake:31 (execute_process):
  execute_process failed command indexes:

    1: "Abnormal exit with child return code: Segmentation fault"

Call Stack (most recent call first):
  ports/ffmpeg/portfile.cmake:874 (x_vcpkg_pkgconfig_get_modules)
  scripts/ports.cmake:192 (include)


error: building ffmpeg:x64-linux failed with: BUILD_FAILED
<·······················>
@Osyotr
Copy link
Contributor

Osyotr commented Oct 15, 2024

Do you use system patchelf or vcpkg patchelf? If it comes from the system, could you try with --x-abi-tools-use-exact-versions?

@aabellagm
Copy link
Contributor Author

aabellagm commented Oct 15, 2024

I don't have patchelf installed in my system, so I guess it is using the one in VCPKG.
I installed it, just in case it makes any difference, but nop, pkgconf crashes in the same way, with and without --x-abi-tools-use-exact-versions

@JonLiu1993 JonLiu1993 added the requires:repro The issue is not currently repro-able label Oct 16, 2024
@JonLiu1993
Copy link
Member

JonLiu1993 commented Oct 16, 2024

@aabellagm, Thanks for posting this issue, We don't have a Fedora environment at the moment. I haven't reproduced your error in my own Linux environment.

Elapsed time to handle pkgconf:x64-linux: 4.7 s
pkgconf:x64-linux package ABI: f2df7b47cdc541af74be1739210c641e55eb4caed05403b27abf8aef61ab1a9e
Total install time: 4.7 s
pkgconf provides pkg-config modules:

  # a library for accessing and manipulating development framework configuration
  libpkgconf

test@docker:~/Jon/vcpkg$ ./installed/x64-linux/tools/pkgconf/pkgconf --version
2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

3 participants