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

Abierto
#2,006 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
1.2k
Forks
476
Merge medio
2 d 9 h
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de alliedmodders/sourcemod

Todos los issues de alliedmodders/sourcemod

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.