We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Cirque fail: https://github.com/project-chip/connectedhomeip/actions/runs/844261919
There is a racing in chip_im_initiator tests. sometime ExchangeContext is leaked
ExchangeContext
chip-im-initiator: ../../../../../src/messaging/ExchangeMgr.cpp:101: chip::Messaging::ExchangeManager::Shutdown()::<lambda(auto:2*)> [with auto:2 = chip::Messaging::ExchangeContext]: Assertion `false' failed.
Apply following patch will make it fail everytime.
diff --git a/src/app/tests/integration/chip_im_initiator.cpp b/src/app/tests/integration/chip_im_initiator.cpp index 09bceacc..9e971132 100644 --- a/src/app/tests/integration/chip_im_initiator.cpp +++ b/src/app/tests/integration/chip_im_initiator.cpp @@ -191,6 +191,7 @@ void HandleReadComplete() static_cast<double>(gReadRespCount) * 100 / gReadCount, static_cast<double>(transitTime) / 1000); gCond.notify_one(); + usleep(20); } class MockInteractionModelApp : public chip::app::InteractionModelDelegate
There are 2 threads:
Event thread (Thread E):
Main thread (Thread M):
ExchangeManager
if Shutting down the ExchangeManager happens before deleting the ExchangeContext, there will be an assert fail
Lock guard ExchangeManager::Shutdown
ExchangeManager::Shutdown
The text was updated successfully, but these errors were encountered:
Fix ExchangeContext leak in chip_im_initiator (Fix: project-chip#6915)
84d8b1e
544887e
e3d500b
9b6dde9
a2c55ee
Is this still an issue?
Sorry, something went wrong.
kghost
Successfully merging a pull request may close this issue.
Problem
Cirque fail: https://github.com/project-chip/connectedhomeip/actions/runs/844261919
There is a racing in chip_im_initiator tests. sometime
ExchangeContext
is leakedApply following patch will make it fail everytime.
There are 2 threads:
Event thread (Thread E):
ExchangeContext
Main thread (Thread M):
ExchangeManager
if Shutting down the
ExchangeManager
happens before deleting theExchangeContext
, there will be an assert failProposed Solution
Lock guard
ExchangeManager::Shutdown
The text was updated successfully, but these errors were encountered: