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

SOME/IP SD server dead-lock #8

Closed
langroodi opened this issue Nov 16, 2021 · 2 comments
Closed

SOME/IP SD server dead-lock #8

langroodi opened this issue Nov 16, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@langroodi
Copy link
Owner

Describe the bug
In some situation (probably a racing condition), the SOME/IP SD server stuck in the Main phase state, and it cannot get out of that state anymore, even by calling server Stop!

To Reproduce
It is a bit difficult to re-produce the error, but it seems sometimes stopping occurs before starting the server. The best way to debug sequence is to analyze the code itself.

Expected behavior
The server should be gracefully stop event the Stop function is called explicitly or the server destructor is being invoked.

Additional context (please complete the following information):

  • Linux Distribution and Version: Ubuntu 20.04
  • CMake Version: 3.14
  • Compiler: GCC 9.3.0
@langroodi langroodi added the bug Something isn't working label Nov 16, 2021
@langroodi langroodi self-assigned this Nov 16, 2021
@langroodi langroodi changed the title SOME/IP SD server deal-lock SOME/IP SD server dead-lock Nov 28, 2021
@langroodi langroodi reopened this Dec 5, 2021
@langroodi
Copy link
Owner Author

langroodi commented Dec 17, 2021

After a modification on the SOME/IP SD client, the stop mechanism dead-lock still can occur in the following unit tests sequence:

56/84 Test #56: SomeIpSdTest.ClientStart ...........................   Passed    0.70 sec
      Start 57: SomeIpSdTest.StartScenario
Error: The operation was canceled.

,

 59/104 Test  #59: SomeIpSdTest.ServerStopScenario ....................   Passed    0.81 sec
        Start  60: SomeIpSdTest.StopScenario

and

 57/133 Test  #57: SomeIpSdTest.StartScenario .........................***Exception: SegFault  0.89 sec
        Start  58: SomeIpSdTest.ClientStopScenario

@langroodi
Copy link
Owner Author

After 1ac136b commit, the issue is seen again once at 54: SomeIpSdTest.ClientStart.

langroodi added a commit that referenced this issue Jan 25, 2022
- ServiceNotSeenState requested status is separated from disposing status;
- TTL timer disposing becomes irreversible;
- ServiceNotSeenState disposing is moved to SOME/IP SD Client stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant