[BUG] Futex error crashing/restarting application
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- debian, docker, javascript, kubernetes, nodejs
- Área
- backend, database, infrastructure
Línea de trabajo
Comienza con los detalles del entorno y del fallo en el issue #421, comparando las ejecuciones reportadas con Node.js 18 y 22 y las imágenes de Debian 12 y Ubuntu 24. Usa el trace de futex del nodo de Kubernetes como evidencia diagnóstica inicial; para darlo por terminado se requiere un desencadenante reproducible o una causa confirmada y un fix aplicable, ya que el informe actualmente no tiene un patrón de reproducción.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe your system
odbcPackage Version:- ODBC Driver: node-odbc
- Database Name: db2
- Database Version: db2 for ibmi level 25
- Database OS: IBMI V7R4
- Node.js Version: 18.20.4
- Node.js OS: debian 12
Describe the bug
We are running a nodejs application inside a debian 12 container with the latest ibm-iaccess DB2 odbc (version 1.1.0.28-1.0) debian package installed in a Kubernetes cluster.
Since months, randomly, the application crashes (and restart) with the following error message : The futex facility returned an unexpected error code.
These are some technical specifications :
-
Kubernetes :
-
Kubernetes version :
1.27.16 -
Installation : Our Kubernetes cluster is not managed and we have full control of our nodes configuration
-
-
Application runtime :
-
The application Docker image is a custom image created by ourselves. However it is mainly based on : node:18.20-bookworm-slim (available on docker hub , debian 12 based)
-
Node version currently used is :
18.20.4 -
The nodejs library used to interact with the odbc is : odbc in version
2.4.9
-
The crash seems not related to any resources (CPU/RAM etc …) problem.
We also did upgrade to node 22 and either change docker image to Ubuntu 24.
We also tried to increase the logs level on application side (like node options --trace-uncaught --abort-on-uncaught-exception --report-uncaught-exception ) but it didn’t work. The crash seems to come from between Kubernetes and the container itself. I succeeded to catch some logs on the Kubernetes node when the application crashes:
trace: Process 505065 attached
futex(0xdaf4e8, FUTEX_WAIT_PRIVATE, 0, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=505115, si_uid=0, si_status=134, si_utime=0, si_stime=0} ---
futex(0xdde380, FUTEX_WAKE_PRIVATE, 1) = 1
rt_sigreturn({mask=~[HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV PIPE TERM STKFLT CHLD STOP URG PROF SYS RTMIN RT_1 RT_2]}) = 202
futex(0xdaf4e8, FUTEX_WAIT_PRIVATE, 0, NULL) = ?
+++ exited with 0 +++
Expected behavior
Futex error not happening
To Reproduce
Unfortunately , we didn't success to find the pattern to reproduce the issue, this one seems very random
Questions
-
Did you already encountered this kind of issue in the past ?
-
Do you have an idea of how to troubleshoot this ?
Thanks a lot for your help
- Lenguaje dominante
- JavaScript
- Estrellas
- 159
- Forks
- 92
- Merge medio
- 5 h 59 min
- PR fusionados (30 d)
- 3
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de IBM/node-odbc
-
doc: how to run the testsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
security
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
[Bug] Sybase ASE: Encoding issue (works in msnodesqlv8, fails in node-odbc with \x1A artifacts)Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
Todos los issues de IBM/node-odbc
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
naver/egjs-flicking#971 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día