HIL: Ctrl-C terminates the board worker before its lock task logs the failure
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, raspberry-pi
- Ambito
- embedded-iot, testing
Direzione di ricerca
Start with test/hil/hil_test.py and trace main(), drain_pool, pool shutdown, and _abort_report to see how KeyboardInterrupt is handled. Check the board task's lock and failure logging path, then reproduce the Ctrl-C case on hardware. Done means the run writes an abort report, logs a failed event with its receipts, and leaves no stale lock record.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A Ctrl-C on test/hil/hil_test.py leaves the board's lock record stale instead of ending its task as failed. The
run also writes no report.
Evidence
- ci.lan, raspberry_pi_pico, #4499's branch with agentrc 48d46bbf. SIGINT went to the run's process group after 4
tests:- The run exited 130 with no report.
- The lock record stayed
stale(cleanupOwed: true, the board worker's pid), and no failed event was logged. - All 14 idle pool workers printed KeyboardInterrupt tracebacks. The board worker printed nothing.
- The next run on the board reported it as
previous-cleanup-failure(found-left). Its park loggedrestoredfor
it, so recovery works; only the interrupted run's own record of the failure is lost.
Cause
This is read from the source and is not yet confirmed by a trace:
- Main's
KeyboardInterruptindrain_poolis not caught byexcept Exceptioninmain(). - Leaving
with pool:therefore callsPool.terminate(), which sends SIGTERM to every worker. - The board worker has no SIGTERM handler, so it dies before its
board_taskcan end the task and log the failure. _abort_reportis skipped for the same reason, which is why there is no report.
Remaining work
- On
KeyboardInterruptinmain(), let in-flight workers end their board task (bounded join, orclose()+
join(timeout)) beforeterminate(). Write the abort report as the other abort paths do. - Confirm on hardware that a Ctrl-C then logs a failed event with the run's receipts and leaves no stale record.
Deferred: the pool shutdown predates #4499 and the recovery path covers it.
- Lingua principale
- C
- Stelle
- 7.3k
- Fork
- 1.6k
- Merge medio
- 1g 19h
- PR unite (30g)
- 67
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hathach/tinyusb
-
follow-up Port WCH USBFS Prio 📌
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
follow-up Prio 📌
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
hil-contract: a background hil_remote.py launch is killed at the Bash default 10 min timeoutForse già presa @hathach l’ha presa 16 giorni fa. Apertafollow-up Prio 📌
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
ch32v30x: debug UART loses queued bytes when its TX ring fillsForse già presa @hathach l’ha presa 16 giorni fa. Apertafollow-up Prio 📌
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
followup Prio 📌
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hathach/tinyusb
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
rofl0r/proxychains-ng#631 ·
-
RP2350: enabling secure boot via rescue fails with 6400 (BOOTKEY written as 33 bytes in ECC mode)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
pcqpcq/open-source-android-apps#619 ·
I maintainer di solito rispondono entro 1 giorno
-
Can't link with minizip-ngAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
-
Missing slice offset check in jvp_equal fast path corrupts slice comparison and aborts delpathsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni