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

call umm_init just before starting SDK #8207

Merged
merged 9 commits into from
Jul 19, 2021

Conversation

mhightower83
Copy link
Contributor

This fixes a problem I saw on a post to esp8266/arduino 👉 : June 30, 2021 11:40 AM, where the BearSSL stack trace is all zero's after an HWDT. I was too slow to recognize I had a problem around the time of his post.

The problem was umm_init was being done too early and the Heap was zeroed out before the stack dump was performed.

Added code to HWDT example to use StackThunk. This should make the problem more visible in the future should it return.

Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
I understand it is a bugfix that should be merged now, right ?

@d-a-v d-a-v added this to the 3.0.2 milestone Jul 17, 2021
@mhightower83
Copy link
Contributor Author

@d-a-v - Yes this is a bug fix ready for merge. I also added a few missing comments, removed an unused build path, and updated the example code to make the zeros more evident should they return.

Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@earlephilhower earlephilhower merged commit 8a42163 into esp8266:master Jul 19, 2021
@mhightower83 mhightower83 deleted the pr-relocate-umm_init branch July 19, 2021 16:01
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

Successfully merging this pull request may close these issues.

3 participants