Raja-89
eebd95977f
avfilter/dnn: fix async teardown race condition in all backends
...
When the filter graph is torn down early (e.g. at EOF with -frames:v),
the main thread calls dnn_free_model and destroys the request queue
while async inference threads may still be running. When a detached
thread finishes and tries to push its result back to the destroyed
queue, it triggers a segmentation fault.
Add ff_dnn_wait_requests() to dnn_backend_common which blocks
until all allocated request items (ctx->nireq) have been safely
returned to the request_queue. Call it from dnn_free_model in the
torch, tensorflow, openvino, and onnx backends before destroying the queue.
(cherry picked from commit b52c71e438 )
Co-Authored-by: Fable 5
2026-08-02 06:24:00 +02:00
..
2026-08-02 06:24:00 +02:00
2026-07-14 00:14:28 +09:00
2026-06-23 19:15:57 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-21 22:59:50 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-05-30 21:37:33 -03:00
2026-08-02 02:47:31 +02:00
2026-06-13 21:41:05 +00:00
2026-06-17 00:03:14 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-05-25 22:21:41 +00:00
2026-06-13 21:41:05 +00:00
2026-06-23 17:15:02 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-04-28 12:29:37 +00:00
2026-06-22 11:43:51 +00:00
2026-08-02 02:47:28 +02:00
2026-06-23 17:15:02 +02:00
2026-05-16 17:22:45 +00:00
2026-06-23 22:38:55 +00:00
2026-06-13 21:41:05 +00:00
2026-06-22 20:06:40 +08:00
2026-06-22 20:06:40 +08:00
2026-06-03 01:45:08 +00:00
2026-06-08 02:20:53 +00:00
2026-06-13 21:41:05 +00:00
2026-04-28 12:29:37 +00:00
2026-07-14 00:14:28 +09:00
2026-04-28 06:14:38 +00:00
2026-06-23 19:22:21 +00:00
2026-05-15 18:19:40 -07:00
2026-06-23 19:15:57 +02:00
2026-06-26 02:43:34 +02:00
2026-04-28 14:57:34 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-21 22:59:51 +02:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-05-03 13:23:21 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-04-28 12:29:37 +00:00
2026-04-28 12:29:37 +00:00
2026-06-13 21:41:05 +00:00
2026-06-15 03:15:19 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-22 20:06:40 +08:00
2026-06-02 00:52:03 +00:00
2026-04-28 12:29:37 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-07-21 22:59:59 +02:00
2026-04-21 16:47:05 +00:00
2026-04-30 08:33:31 -05:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-08-02 02:47:28 +02:00
2026-08-02 02:47:28 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-05-03 13:25:48 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-08-02 02:47:28 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-04-26 16:05:11 +08:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-05-15 20:29:29 +02:00
2026-05-15 20:29:29 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-21 22:59:53 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-21 22:59:50 +02:00
2026-08-02 06:03:04 +02:00
2026-06-23 19:22:21 +00:00
2026-06-23 19:22:21 +00:00
2026-08-02 02:47:32 +02:00
2026-04-28 06:14:38 +00:00
2026-04-28 06:14:38 +00:00
2026-04-28 06:14:38 +00:00
2026-04-28 06:14:38 +00:00
2026-07-14 00:14:28 +09:00
2026-05-31 21:20:54 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-23 03:57:25 +00:00
2026-06-13 21:41:05 +00:00
2026-07-21 22:59:59 +02:00
2026-06-13 21:41:05 +00:00
2026-06-24 12:18:15 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-24 12:18:15 +00:00
2026-04-20 21:08:21 +02:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-07-21 22:59:55 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-21 22:59:48 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-14 00:14:28 +09:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-08-02 02:47:29 +02:00
2026-06-13 21:41:05 +00:00
2026-06-13 21:41:05 +00:00
2026-07-06 09:55:38 +00:00
2026-07-14 00:14:28 +09:00
2026-04-28 12:29:37 +00:00
2026-04-21 08:28:45 +02:00
2026-04-21 08:28:45 +02:00