-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
iOS chiptool crash - _cppCommissioner->Shutdown(); #21811
Comments
Have been trying to reproduce (by failing first commissioning due to failure to discover the device, then failing it due to having the wrong passcode) but haven't managed yet... |
Managed to reproduce this by hacking the server to never respond to reads (just no-opped Stack:
|
We are doing
ends up with a null-deref, and we crash. That last bit is similar to #20085 but for a different timer. |
Fundamentally, device controller shutdown needs to cancel its pending commissioning work, but the APIs it's using (the InteractionModel convenience APIs) don't really allow that... @mrjerryjohns I guess we could try using the lower-level APIs here, but it would be nice if the convenience APIs (optionally?) handed out some sort of token that could be used to cancel the async operation. I might try to do something like that when I get back. |
I think fixing #20880 is the right solution here. Shutting down the |
This is no longer showing up in crashes. |
For what it's worth, I think this is going to be effectively fixed by #22282: we will be ensuring that shutdown evicts sessions earlier, while more of the stack is up. |
Problem
iOS CHIPtool crashed after 2nd pairing attempt
SHA: 2e10854

[Pairing-M5-failed-CHipTool.txt](https://github.com/project-chip/connectedhomeip/files/9305099/Pairing-M5-failed-CHipTool.txt) [CHIP-Tool-iOS-crash.txt](https://github.com/project-chip/connectedhomeip/files/9305100/CHIP-Tool-iOS-crash.txt)The text was updated successfully, but these errors were encountered: