Skip to content

node shmem: Reset Sample::signals before writing to shared memory#1020

Open
leonardocarreras wants to merge 1 commit into
VILLASframework:masterfrom
leonardocarreras:fix-shmem-sample-signal
Open

node shmem: Reset Sample::signals before writing to shared memory#1020
leonardocarreras wants to merge 1 commit into
VILLASframework:masterfrom
leonardocarreras:fix-shmem-sample-signal

Conversation

@leonardocarreras

Copy link
Copy Markdown
Contributor

The shmem node writes samples whose signals field is a std::shared_ptr into the writer's heap. A reader in another process dereferences that pointer while copying the sample and crashes.

Discovered when using two villas-node processes with shmem, it segfaults at the first read.

Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant