Oracle Linux 8で使用すると、mstlinkコマンドはコア・ダンプでクラッシュ
Unbreakable Enterprise Kernelリリース6を実行しているOracle Linux 8システムで実行すると、mstlinkコマンドがクラッシュします。 次の出力は一般的です:
sudo mstlink -d 13:00.1
/usr/include/c++/8/bits/stl_vector.h:932: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>; std::vector< Tp, _Alloc>::reference = unsigned int& std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed. Aborted (core dumped)
この問題は、アップストリームに導入され、Oracle Linux 8に存在するシステム全体に影響します。 mstflint
パッケージ内のアップストリーム・ツール(mstlinkを含む)は、これらのハードニング変更に対して適切に対応していません。 代替ツールを使用して、ip link, ethtool, ifstatやibv_devinfoなどのリンク情報を収集および構成できます。
(バグID 30993407)