Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch of PR's for vsomeip 3.5.5 #848

Merged
merged 9 commits into from
Feb 19, 2025
Merged

Batch of PR's for vsomeip 3.5.5 #848

merged 9 commits into from
Feb 19, 2025

Conversation

duartenfonseca
Copy link
Collaborator

No description provided.

Rui Graça and others added 4 commits February 18, 2025 16:56
Summary
Clear requests_to_debounce_ on release_service
Details
Without the missing break the
while (it != requests_to_debounce_.end())
will loop until the end of the collection and the following verification
if (it != requests_to_debounce_.end()) requests_to_debounce_.erase(it);
will never run.
Summary
reset force_initial_events
Details
force_initial_events wasn't being reseted
Summary
Reintroduce VSOMEIP_CONFIG to wireshark plugin.
Details
It was removed by mistake
Summary
Enable partial valgrind subprocess tracking
Details
It has been discovered that valgrind only ran properly on tests
that were executed without the assistance of a script (client_id_utility_tests).
After some analysis, it has been identified that valgrind only tracks the main process
and will monitor the subprocesses only if instructed to do so.
This PR enables the --trace-children valgrind option to instruct the profiler to track
subprocesses, as this increased significantly the number of memcheck and helgrind erros,
it has been decided to do a test by test parameterization i.e., add the possibility to "disable"
subprocess tracking for some tests via the CMAKE option TEST_SKIP_VALGRIND_TRACKING.
The skip shall be removed tests by tests when they'll be fixed.
Moreover, boost artifacts are now build from sources to add valgrind support.
@duartenfonseca duartenfonseca marked this pull request as ready for review February 18, 2025 17:32
@duartenfonseca duartenfonseca changed the title Batch of PR's for vsomeip Batch of PR's for vsomeip 3.5.5 Feb 18, 2025
lutzbichler and others added 5 commits February 19, 2025 09:55
Summary
Ensure endpoint is not deleted during send operations by binding the shared pointer
to the lambda that is called when the operation returns.
Summary
Avoid hanging request service commands
Details
routing_manager_client::request_service uses a debounce mechanism to collect multiple
service requests and send them in a single command. The current implementation
contains a race condition that can result in service requests not being sent to the
routing manager until the next service request is done. This is, if resetting the flag
within the timer callback and a call to request_service run in parallel, as the flag and
the set are protected by two different mutexes. This PR tries to fix this by retiring one
of the mutexes and using the other one to protect the set as well as the timer and its
flag.
Summary
This pseudo-reverts a change introduced in ade0d62 that caused the host to close client
connections before completing the deregistration process.
Summary

Add mutex to protect registration state on request, regist, offer, unregister, release and stop offer
Wait for registration to complete before attempting to regist/request/offer/unregister/release/stop offer
Ensure state value before send_pending_commands

Details
Waits for registration to be acknowledged before start to regist/request/offer/unregister/release/stop offer
Summary
Clean-up service info on client registration.
Details
These changes fix an issue related to Suspend-To-RAM (STR) where a failure
to de-register the application during suspend prevent it from offering a
service when it tried to re-register.
This is because the routing manager still kept some information from the previous
lifecycle, which caused it to ignore the new information.
The fix involves cleaning-up the local service info of the routing manager
every time that a client tries to register.
@duartenfonseca duartenfonseca merged commit 9abdb5f into master Feb 19, 2025
2 checks passed
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.

2 participants