Closed jinpeng1989 closed 1 week ago
Crash here, please see log. SyslogCatchAll-2024-08-28-1-and-2.zip
@Irving-cl can you help take a look and provide your toughts on this?
It seems to be this assert in void SpinelDriver::ProcessFrameQueue(void)
.
assert(mSavedFrameHandler != nullptr && mFrameHandlerContext != nullptr);
I see we have SetFrameHandler()
to set the handlers and it should be set from RadioSpinel::Init()
? Not sure how it may be unset while Process()
is called?
We can consider relaxing this to checking it with OT_EXPECT()
instead of assert? What do you think?
(a related topic is if we should allow mFrameHandlerContext
to be possibly nullptr
, since a callback with null
context is technically valid).
Describe the bug: The otbr-agent process crashed, and GDB debugging found that the error was near the ProcessFrameQueue function. The ot-br-posix code used is: https://github.com/SiliconLabs/simplicity_sdk/tree/sisdk-2024.6/util/third_party/ot-br-posix