Skip to content

obs-media-io: read the audio thread id through SYS_gettid (Fixes #5790) - #5791

Merged
rdoupe merged 1 commit into
masterfrom
fix/5790-gettid-glibc-floor
Nov 26, 2026
Merged

rdoupe merged 1 commit into
masterfrom
fix/5790-gettid-glibc-floor

Conversation

@rdoupe

@rdoupe rdoupe commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #5790.

The scheduled release run's AppImage build has been red since #5781 (run 45879606479):

FAILED: plugins/obs-ffmpeg/ffmpeg-mux/obs-studio-rust-ffmpeg-mux
ld: libobs/libobs.so.30: undefined reference to `gettid'

libc::gettid is a glibc 2.30 wrapper and the AppImage builds on manylinux_2_28 (glibc 2.28, the floor from #926). AudioThreadClass::enter now reads the thread id with libc::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)

$ soldr cargo build -p libobs-rust --release
$ nm -A target/release/liblibobs_rust.a | grep -w gettid
...obs_media_io...cgu.02.rcgu.o:   U gettid
...std...cgu.0.rcgu.o:             w gettid

The strong undefined gettid from 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)

$ soldr cargo build -p libobs-rust --release
$ nm -A target/release/liblibobs_rust.a | grep -w gettid
...std...cgu.0.rcgu.o:             w gettid

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

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"}}
@rdoupe
rdoupe requested a review from zackees as a code owner November 26, 2026 20:45
@rdoupe
rdoupe added this pull request to the merge queue Nov 26, 2026
Merged via the queue into master with commit 0ce0eb4 Nov 26, 2026
48 checks passed
@rdoupe
rdoupe deleted the fix/5790-gettid-glibc-floor branch November 26, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: obs-media-io: libobs.so needs glibc 2.30 (gettid), release AppImage link fails

1 participant