-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Weird crash with discoverAttributes() in 2.2.1 #884
Comments
It's a nullptr from |
Indeed, the PR fixes it. Thank you @thekurtovic! |
Glad to hear, sorry about the oversight. |
Thanks for the detailed report @gkoh and the fix @thekurtovic |
This needs to be addressed as well, their test code is calling |
Thanks, missed that for sure! Will update shortly. |
Updated. |
Can confirm that #888 fixes this. |
I was updating to the latest and greatest 2.2.1 to verify both #861 and #867 when I got a consistent crash.
Using the same code as per #861:
#861 (comment)
and trying to connect to whatever happens to allow it in the area, things seem to go horribly wrong:
The backtrace decodes to this:
which is the closing brace of
NimBLERemoteCharacteristic::retrieveDescriptors()
... OK ...I jammed in esp-idf and enabled full heap poisoning and stack smash protection, but behaviour is still the same, no magical reveals.
Thanks to the beautifully clean commit history (really, thank you for this) I was again able to quickly run a bisect, which identifies 1f2676b as the point of failure.
Running a backtrace on that commit crash yields:
That line of code is in
NimBLERemoteCharacteristic::retrieveDescriptors()
:Let me know if more information is needed, happy to help.
The text was updated successfully, but these errors were encountered: