Extensions including anything with utlsymbol.h become un-unloadable and sourcemod will still try to load them

オープン
#2,006 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp
領域
backend

調査の方向性

The report concerns Linux extension loading and unloading, the RTLD_NODELETE flag, and the _ZN10CUtlSymbol25s_bAllowStaticSymbolTableE symbol pulled from the hl2sdk .a file; it names no SourceMod files or tests. Start by tracing how extensions are loaded and how that symbol affects unloadability. Done means an extension using the cited headers can be unloaded and reloaded without a later crash; the issue does not specify a test or exact fix.

索引モデルが issue の本文から書いたものです。

説明

On Linux, no idea if this happens on windows, if you have an extension that includes anything with utlsymbol.h (utldict.h utlstringmap.h) it will include the symbol _ZN10CUtlSymbol25s_bAllowStaticSymbolTableE and mark the extension as RTLD_NODELETE.

This means the extension can't be reloaded and stays in memory even if you do sm exts unload.

Sourcemod will happily load the extension again if you do sm exts load, which usually causes crashes later.

I have tried commenting out s_bAllowStaticSymbolTable in the hl2sdk, but it seems to magically pull the symbol from the .a file still.

主要言語
C++
スター
1.2k
フォーク
476
平均マージ
2日 9時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alliedmodders/sourcemod のほかの issue

alliedmodders/sourcemod の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。