Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] Futex error crashing/restarting application

Aperta
#421 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
debian, docker, javascript, kubernetes, nodejs

Direzione di ricerca

Inizia dai dettagli dell’ambiente e del crash nell’issue #421, confrontando le esecuzioni riportate con Node.js 18 e 22 e le immagini Debian 12 e Ubuntu 24. Usa il trace futex del nodo Kubernetes come evidenza diagnostica iniziale; per considerare il lavoro completato è necessario un trigger riproducibile oppure una causa confermata e un fix applicabile, poiché al momento il report non contiene alcun pattern di riproduzione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe your system

  • odbc Package 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

Lingua principale
JavaScript
Stelle
159
Fork
92
Merge medio
5h 59m
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IBM/node-odbc

Tutte le issue di IBM/node-odbc

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.