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

[DELIA-64149] race condition In stopRuncMonitorThread() #294

Open
sithanda opened this issue Dec 13, 2023 · 0 comments
Open

[DELIA-64149] race condition In stopRuncMonitorThread() #294

sithanda opened this issue Dec 13, 2023 · 0 comments

Comments

@sithanda
Copy link
Contributor

sithanda commented Dec 13, 2023

Description

In L1 test, Randomly test cases are failing

pthread_kill() is failing in stopRuncMonitorThread() which is calling from destructor.
Sometime runcMonitorThread() is starting late, with in the time, if dobbymanager object is deleted, pthread_kill() is failing because the thread is not yet started.

solution: Need to be add the semaphore handling to avoid this sync issue.

Expected Behaviour

pthread_kill() should not fail and destructor should happened without any issues

Actual Behaviour

pthread_kill() is failing and exit from the process

If including the Dobby log, please ensure Dobby has been started with the verbose flag (-v)

Steps to Reproduce

Run the L1 test in github workflow and randomly this issue will reproduce

Platform/Environment

  • Run the L1 test in github workflow
@goruklu goruklu changed the title In stopRuncMonitorThread(), pthread_kill() fails if the dobbymanager object is removed before the runcMonitorThread() thread is started. [ DELIA-64149] race condition In stopRuncMonitorThread() Dec 14, 2023
@goruklu goruklu changed the title [ DELIA-64149] race condition In stopRuncMonitorThread() [DELIA-64149] race condition In stopRuncMonitorThread() Dec 14, 2023
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

No branches or pull requests

1 participant