From 3a515779bd3002328ee7691569ef2c4683c6fc33 Mon Sep 17 00:00:00 2001 From: Leonardo Carreras Date: Tue, 14 Jul 2026 16:14:54 +0200 Subject: [PATCH] shmem: fix reset Sample::signals Signed-off-by: Leonardo Carreras --- lib/nodes/shmem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nodes/shmem.cpp b/lib/nodes/shmem.cpp index 601fec8ee..5f8b139cb 100644 --- a/lib/nodes/shmem.cpp +++ b/lib/nodes/shmem.cpp @@ -176,6 +176,10 @@ int villas::node::shmem_write(NodeCompat *n, struct Sample *const smps[], if (copied < avail) n->logger->warn("Outgoing pool underrun"); + /* signals is a heap shared_ptr; a reader in another process can't deref it */ + for (int i = 0; i < copied; i++) + shared_smps[i]->signals.reset(); + pushed = shmem_int_write(&shm->intf, shared_smps, copied); if (pushed != avail) n->logger->warn("Outgoing queue overrun for node");