Repository navigation
obs-media-io: read the audio thread id through SYS_gettid (Fixes #5790) - #5791
Merged
Merged
Conversation
libc::gettid is a glibc 2.30 wrapper, so libobs.so stopped linking on the AppImage's manylinux_2_28 image (glibc 2.28): the scheduled release run's AppImage build fails with "libobs.so.30: undefined reference to `gettid'" since #5781. The raw syscall needs no glibc wrapper. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1795725241,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":234,"stamp":"3bcefdc08b2120936926609bb273d4f6","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725241,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":234,"stamp":"b001a04d767ec0f66a57a311853759fb","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725241,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":234,"stamp":"3fc2a7930fcdfc65e1271469b746c849","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725241,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":234,"stamp":"500b8d807b91ff85d3f2e7c326d7e003","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725004,"gate":"general/all/client-lint","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"c8fa83b578c9995321946acacdce8b20","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725241,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":234,"stamp":"bedfc9bd7635f1817e776286113346c0","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"ef3052f9bcfafb33f20fb88d9e391272","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"117ebdfb54d7b6ea0cc134c5b27d67ce","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"7c9893e3926cd66e4707fdbec204e59b","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"063189a768b3978195af9397c4157ba9","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"dba0c77a70773b822e994dd05a86750d","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"95ea859dcd2fc68b035871ef8a5fac54","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"56e9ea1533efe393b85cd4d6cbb00464","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"7e864f82a5a6e4cb234f1839a291acce","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"ec5e6f18cf18facecbcf9921874573c4","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"bccfae2a0921ead89f35c14ac662a97a","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725004,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"620559cd4e3b8a629dae336e4917c790","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725005,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e0cfb0721679f88a05ab7250db0b650ff9983ba8444ba9d5d4aaf9723005fd1f","lane":"client-lint","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":218,"stamp":"069f76ba0067f5f2cc78340fac03884d","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Ci-Attestation: {"at":1795725867,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"950b476384f27bc4f6597382dba91cea1abac64387df2b42ed1bb76c87ab7ddd","lane":"client-test-x86_64-unknown-linux-gnu","parents":["529d2d9fd151535e37f3b482df01c7b2dfe71667"],"secs":625,"stamp":"6bc187e2f4af66126b5216fb6ef6e2e5","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d","v":1,"via":"run"} Client-Checks: {"checks":{"base":"529d2d9fd151535e37f3b482df01c7b2dfe71667","coverage":"all-tracked-applicable-files","diff":["rust/obs-media-io/src/platform/linux.rs"],"head":"e12a6e5e776d2d5d5f9ebab8874731bf2cba1eef","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"3111c3be86c17d67ad7a37f26814a652443330b6e5a0d5c8dbd7eb3cc5222b43","tree":"c684dbbee78fd6f4fb56ec0f49a847219e7ffb7d"}}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5790.
The scheduled release run's AppImage build has been red since #5781 (run 45879606479):
libc::gettidis a glibc 2.30 wrapper and the AppImage builds on manylinux_2_28 (glibc 2.28, the floor from #926).AudioThreadClass::enternow reads the thread id withlibc::syscall(libc::SYS_gettid), which needs no glibc wrapper. Same file, same value, no other callers (grep -rn gettid rust --include=*.rs).RED (origin/master 529d2d9)
The strong undefined
gettidfrom obs_media_io is what the glibc 2.28 linker can't resolve. (std's weak reference resolves to null on old glibc and was already there before #5781.)GREEN (this branch)
Only std's weak reference is left.
soldr cargo test -p obs-media-io: 418 + 2 passed../lint: ok.The full proof is the next scheduled release run, or
bosn run --task appimage. PR CI doesn't build the AppImage.🤖 Generated with Claude Code