[BUG] vrmonitor segfaults in QSslCertificate at startup: bundled Qt 5.5 picks up system OpenSSL 3 via libssl.so (workaround inside)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- linux
調査の方向性
Start by reproducing the crash with SteamVR's bundled Qt libraries and system OpenSSL, then compare library resolution with OpenSSL 1.0 available from LegacySteamRuntime. The issue names bin/linux64/qt/lib and identifies vrmonitor's startup network request and QSslCertificate::fromPath() as investigation entry points. Done means vrmonitor no longer crashes when parsing certificates on current distributions without relying on the manual workaround.
索引モデルが issue の本文から書いたものです。
説明
Summary
Since the Steam client update 1794424036, vrmonitor segfaults about 1 s after SteamVR starts, and vrserver then shuts everything down ("Lost master process … Quitting all immediately"). SteamVR itself was not updated (still 2.18.4); the crash started with the client update.
SteamVR's bundled Qt (bin/linux64/qt/lib, Qt 5.5.0) loads OpenSSL at runtime by its unversioned name (libssl.so / libcrypto.so). It was built against OpenSSL 1.0 (it needs SSLeay, SSL_library_init, sk_num, CRYPTO_num_locks, …). On a current distro, libssl.so resolves to OpenSSL 3 (it comes from openssl-devel / libssl-dev). Qt logs cannot resolve … for those functions (the same warnings as #745), and then calls them anyway the first time it parses a certificate, which crashes. In my case that happens on the first QNetworkAccessManager::get at startup (shown while waiting for a wireless headset).
With OpenSSL 1.1 it crashes the same way. With OpenSSL 1.0 it works.
Environment
- Distro: Nobara Linux 44 (Fedora 44 base), kernel 7.2, KDE Plasma
- OpenSSL: 3.5.9 (
openssl-develinstalled, so/usr/lib64/libssl.so→libssl.so.3) - Steam client: 1794424036 (native, not Flatpak)
- SteamVR: 2.18.4 (stable), vrlink 0.5.8 (Steam Frame)
- GPU: AMD (Mesa 26.2)
Stack (coredumpctl)
#0 libQt5Network.so.5 + 0x1003c1
#1 libQt5Network.so.5 + 0xf1537
#2 libQt5Network.so.5 + 0xf2042
#3 QSslCertificate::fromData(QByteArray const&, QSsl::EncodingFormat)
#4 QSslCertificate::fromPath(QString const&, QSsl::EncodingFormat, QRegExp::PatternSyntax)
#7 QSslCertificate::QSslCertificate(QByteArray const&, QSsl::EncodingFormat)
#8 QSslConfiguration::QSslConfiguration()
#11 QNetworkAccessManager::createRequest(...)
#12 QNetworkAccessManager::get(QNetworkRequest const&)
#13 vrmonitor + 0x24e05f
Reproduce outside SteamVR
Loading SteamVR's libQt5Network.so.5 and calling QSslCertificate::fromPath() on any single certificate (for example any certificate from /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem) segfaults with the system OpenSSL 3 and with OpenSSL 1.1. It parses all of them fine when OpenSSL 1.0 is found first.
Workaround
Give SteamVR's Qt the OpenSSL 1.0 that Steam already ships in the Legacy Steam Runtime (install "Steam Linux Runtime" / LegacySteamRuntime if it's missing). qt/lib is on vrmonitor's LD_LIBRARY_PATH, ahead of the system libraries:
L=~/.local/share/Steam/steamapps/common/LegacySteamRuntime/steam-runtime/lib/x86_64-linux-gnu
cd ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/qt/lib
cp -L "$L/libssl.so.1.0.0" "$L/libcrypto.so.1.0.0" .
ln -sf libssl.so.1.0.0 libssl.so
ln -sf libcrypto.so.1.0.0 libcrypto.so
A SteamVR update or a file verification may remove these files; run the commands again if so. To undo, delete the four entries.
Suggested fix
Ship the OpenSSL that the bundled Qt was built for in qt/lib (or load it by its versioned name), so vrmonitor never picks up the system's unversioned libssl.so. A Qt build that has OpenSSL linked in, or a newer Qt, would avoid the problem entirely.
- 主要言語
- Shell
- スター
- 1.2k
- フォーク
- 58
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ValveSoftware/SteamVR-for-Linux のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ValveSoftware/SteamVR-for-Linux#981 · コメント 4 件 · リアクション 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
ValveSoftware/SteamVR-for-Linux#1097 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ValveSoftware/SteamVR-for-Linux#1095 · コメント 2 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
ValveSoftware/SteamVR-for-Linux#1094 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ValveSoftware/SteamVR-for-Linux#1093 ·
ValveSoftware/SteamVR-for-Linux の issue をすべて見る
似ている issue
-
area: build-and-ci guard-red-main S3: minor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#65616 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
achisolomon/software-factory#300 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
flathub/cc.arduino.IDE2#168 ·
-
documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
oscarbol09/solwatch#28 ·
メンテナーはふだん 2 日以内に返信
-
difficulty:easy func:buildsystem prio:low type:task
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
NatronGitHub/Natron#2070 ·
メンテナーはふだん 1 日以内に返信