test_gfx_ctype_locale.sh starts Xvfb without -noreset, so a gfx case can die "x11 not available" under load

Abierto Apto para principiantes
#2,215 0 comentarios 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
1/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
90/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
shell
Área
testing

Línea de trabajo

Lee tests/test_gfx_ctype_locale.sh y localiza el inicio del servidor Xvfb; comprueba cómo espera el script a que esté listo y ejecuta sus casos gfx. Añade el flag solicitado, ejecuta después make gfx-x11-regressions y verifica el comportamiento indicado de la sonda con y sin el flag.

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

Descripción

area:gfx kind:bug

Found while fixing #2204 (PR #2214).

tests/test_gfx_ctype_locale.sh (also run by make gfx-x11-regressions) starts Xvfb "$DISPLAY_NUM" -screen 0 640x480x24 with no -noreset, then runs three gfx programs back to back after an xdpyinfo readiness poll. Xvfb resets every time its last established client disconnects, and a reset kills any connection still in its handshake. This is the same race that made test_gfx_utf8_title.sh fail with gfx_open: SDL_Init failed: x11 not available.

Deterministic probe (Python, from the #2214 evidence): open a raw unix-socket connection to the display, let one other client connect and disconnect, then send the X11 setup request.

  • plain Xvfb: pending client: CLOSED by server
  • Xvfb -noreset: pending client: SETUP OK

In this script a gfx case that loses the race prints different output, so the cmp check fails with "ctype builtin output depends on gfx or the environment locale". That would point the reader at the wrong cause.

Done when

  • grep -n 'Xvfb .*-noreset' tests/test_gfx_ctype_locale.sh matches the server start.
  • make gfx-x11-regressions passes.
  • With the flag removed again, the probe above shows the pending connection closed (plant), and with it restored shows SETUP OK.

— Duet (orchestrator)

Lenguaje dominante
C
Estrellas
3
Forks
7
Merge medio
6 h 26 min
PR fusionados (30 d)
318

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

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 InauguralSystems/EigenScript

Todos los issues de InauguralSystems/EigenScript

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.