Bug #9494
openthreads: intermittent shutdown failure in offline-replay-determinism SV test on FreeBSD CI
Description
The suricata-verify test offline-replay-determinism (SV commit 64c2ae47, merged to SV master 2026-11-26 via SV PR #3581) fails intermittently in the GitHub CI "FreeBSD 15.1" job. Other platforms are not affected, and most FreeBSD runs pass.
Failures seen¶
| Run | Branch | Result |
|---|---|---|
| https://github.com/OISF/suricata/actions/runs/46445730811/job/141943265827 | main (321d52d6f) | exit code 1 |
| https://github.com/OISF/suricata/actions/runs/46635598065/job/142601524077 | icmp-error-fixes/v1 | exit code -6 (SIGABRT) |
| https://github.com/OISF/suricata/actions/runs/46321523243/job/141535109086 | 8339-async-counters/v8 | exit code -6 (SIGABRT) |
The previous main push run (29088cfc8) passed FreeBSD with the same test.
main failure¶
The pcap is read to EOF normally, then shutdown hangs and the engine is killed after the 60s timeout:
Info: pcap: pcap file .../offline-replay-determinism/test.pcap end of file reached (pcap err code 0) Notice: suricata: Signal Received. Stopping engine. Error: threads: Engine unable to disable packet threads. Killing engine [TmThreadDisablePacketThreads:tm-threads.c:1563]
That is the FatalError in TmThreadDisablePacketThreads() (src/tm-threads.c) when the packet threads don't reach the flow loop / done state within 60s.
For the -6 (SIGABRT) runs the debug output has no stderr, so it is not yet known whether they come from the same path.
Notes¶
The test runs 4 workers (threading.set-cpu-affinity + worker-cpu-set threads) and by design at least 2 of them never see a packet. This looks like a shutdown hang or race involving idle workers, exposed on the slower FreeBSD qemu VM.