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

--[BE Week]Modify ESP_CHECK to exit not abort. #2143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jturner65
Copy link
Contributor

Motivation and Context

Currently our ESP_CHECK macro was exiting the program via std::abort(), providing a core dump. However, it is most often used to verify data or check the results of file IO, for which a core dump is undesirable. This PR changes ESP_CHECK to std::exit(1) instead, avoiding the core dump.

An alternative mechanism that provides the assertion-like behavior with the std::abort/core dump functionality while also communicating with python properly is being investigated for a future PR.

How Has This Been Tested

All current c++ and python tests pass.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 30, 2023
@jturner65 jturner65 requested a review from aclegg3 July 3, 2023 19:15
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 07a405e to 1b998f7 Compare July 6, 2023 10:06
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 4 times, most recently from d4a44be to 5892a01 Compare September 27, 2023 19:13
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from e8deb90 to a5c2fb0 Compare November 29, 2023 14:40
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 4 times, most recently from 83e06d3 to 3c6be66 Compare December 12, 2023 17:24
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 3a2fe6c to 5016d85 Compare January 4, 2024 13:52
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 94ac25a to 9f83102 Compare January 9, 2024 21:16
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 162c2aa to 09435f6 Compare January 29, 2024 19:22
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 1d05c99 to da65296 Compare February 5, 2024 14:07
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 9bebdda to 9908091 Compare February 13, 2024 14:14
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from d871b46 to 4a28df1 Compare February 21, 2024 14:36
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from b4b398b to d9f952f Compare February 29, 2024 16:50
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 3 times, most recently from 0e29cd9 to 5b90d51 Compare March 5, 2024 18:46
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 4 times, most recently from a4aa4fe to 2862bdd Compare March 20, 2024 16:14
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 5b3a484 to 013b102 Compare April 8, 2024 14:04
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 2 times, most recently from 56c082b to daa7e2b Compare April 22, 2024 13:33
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 4 times, most recently from bc4bc8f to 1dde8a6 Compare May 2, 2024 13:20
@jturner65 jturner65 force-pushed the BE_EspCheckRework branch 3 times, most recently from 8bcb838 to a0d52e5 Compare May 9, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants