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

Better backtraces from stack overflows #509

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Conversation

mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Oct 3, 2024

(Staged on top of #508)

This PR adds a new --guess argument to humility tasks, which tries to use the saved frame pointer to get a stack trace under exceptional circumstances. I deliberately implemented it as a suspicious-sounding flag instead of an automatic fallback, because it may not be 100% reliable (but it looks fine in all of the unit tests).

The PR is split into two standalone commits:

  • The first commit adds the flag and its implementation
  • The second commit reruns the test suite with the flag added; a handful of old cores manage to obtain reasonable-looking stack traces

@mkeeter mkeeter changed the title Better overflow backtrace Better backtraces from stack overflows Oct 3, 2024
@mkeeter mkeeter force-pushed the better-overflow-backtrace branch 2 times, most recently from 26c2d37 to 2991400 Compare October 3, 2024 19:28
@mkeeter mkeeter force-pushed the stack-overflow-core branch 2 times, most recently from b81931f to 53cab04 Compare October 9, 2024 18:06
@mkeeter mkeeter changed the base branch from stack-overflow-core to master October 9, 2024 18:26
@mkeeter mkeeter enabled auto-merge (squash) October 9, 2024 18:27
@mkeeter mkeeter disabled auto-merge October 9, 2024 18:27
@mkeeter mkeeter enabled auto-merge (squash) October 9, 2024 18:28
@mkeeter mkeeter merged commit ac2272f into master Oct 9, 2024
11 checks passed
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.

2 participants