eclipse-iceoryx / eclipse-iceoryx/iceoryx
Defined behaviour when creating subscriber without read access
Open
bug
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 492
- Avg merge
- 18h 57m
- Merged PRs (30d)
- 1
Description
## Brief feature description
If a user app does not have read access to any shared memory segment and a subscriber object is created, which `takes()` in case of a publisher is sending data, the current behaviour is a segfault.
## Detailed information
* Expected behaviour is that no data will ever be received from subscribers if the user has no read access to the shared memory segment to which the publisher is writing
* This needs a runtime check in the discovery loop
* Hence, add `posix::User to BasePort`
* Move `SegmentMapping` class to its own inl (segment_manager.hpp)
Contributor guide
Assessment
This issue has not been assessed yet.