8000 CONT stack overflow postmortem by mcspr · Pull Request #9083 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

CONT stack overflow postmortem #9083

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

Merged
merged 7 commits into from
Mar 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ctx:cont duplicate code formatting
  • Loading branch information
mcspr committed Feb 11, 2024
commit e07960ca8a8ca8d8b6e296bab48511c5662922f3
8 changes: 3 additions & 5 deletions cores/esp8266/core_esp8266_postmortem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,9 @@ static void postmortem_report(uint32_t sp_dump) {
uint32_t stack_end;

// above and inside of cont, dump from the sp to the bottom of the stack
if (rst_info.reason == REASON_USER_STACK_OVERFLOW) {
ets_printf_P(PSTR("\nctx: cont\n"));
stack_end = cont_stack_end;
}
else if (sp_dump > cont_stack_start && sp_dump < cont_stack_end) {
if ((rst_info.reason == REASON_USER_STACK_OVERFLOW)
|| ((sp_dump > cont_stack_start) && (sp_dump < cont_stack_end)))
{
ets_printf_P(PSTR("\nctx: cont\n"));
stack_end = cont_stack_end;
}
Expand Down
0