Suricata exits with errors when running with -r and --pcap-file-continuous

Hi Alessandro, welcome!

I’ve tried to replicate your setup:

suricata -r /tmp/pcaps/ --pcap-file-continuous --pcap-file-delete -vvvv

and, indeed, on Suri 7.0.2, I get the same result:

Info: pcap: Processing pcaps directory /tmp/pcaps/, files must be newer than 0 and older than 1705604840362 [PcapDirectoryDispatch:source-pcap-file-directory-helper.c:497]
Info: pcap: Processing pcaps directory /tmp/pcaps/, files must be newer than 0 and older than 1705604845362 [PcapDirectoryDispatch:source-pcap-file-directory-helper.c:497]
Info: pcap: Processing pcaps directory /tmp/pcaps/, files must be newer than 0 and older than 1705604850363 [PcapDirectoryDispatch:source-pcap-file-directory-helper.c:497]
Error: threads: thread "FM#01" failed to start in time: flags 0003 [TmThreadWaitOnThreadRunning:tm-threads.c:1832]

I’ll let others make the judgement but indeed it looks like a bug that we’ll need to take care of.
Thanks for reporting that.