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

Increase MTasker stacksize to avoid crash in exception unwinding #6179

Merged
merged 1 commit into from Jan 23, 2018

Conversation

Projects
None yet
4 participants
@zeha
Collaborator

zeha commented Jan 12, 2018

Short description

Throwing an exception uses libgcc's stack unwinder. On mips64el
the unwinder will overflow the default stack size of 8K. In turn
the return ucontext gets overwritten, resulting in a jump into
garbage.

This is Debian bug #887034. Patch is applied in Debian pdns-recursor 4.1.0-3. Build logs will be at https://buildd.debian.org/status/package.php?p=pdns%2drecursor

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled and tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)
Increase MTasker stacksize
Throwing an exception uses libgcc's stack unwinder. On mips64el
the unwinder will overflow the default stack size of 8K. In turn
the return ucontext gets overwritten, resulting in a jump into
garbage.

@zeha zeha added this to the rec-4.2.0 milestone Jan 16, 2018

@pieterlexis pieterlexis merged commit 5fe176e into PowerDNS:master Jan 23, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@zeha zeha deleted the zeha:mtasker-stacksize branch Jan 29, 2018

@zeha zeha modified the milestones: rec-4.2.0, rec-4.1.x Mar 29, 2018

@zeha zeha referenced this pull request Mar 29, 2018

Merged

Backport of #6179 #6418

2 of 7 tasks complete

rgacogne added a commit that referenced this pull request Mar 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment