Recompute stack base in forked postmaster children.
Andres Freund <andres@anarazel.de>
Recompute stack base in forked postmaster children. This is for the benefit of running postgres under the rr debugger. When using rr signal handlers running while a syscall is active use an alternative stack. As e.g. bgworkers are started from within signal handlers, the forked backend then has a different stack base than postmaster. Previously that subsequently lead to those processes triggering spurious "stack depth limit exceeded" errors. Discussion: https://postgr.es/m/20200327182217.ubrrl32lyfhxfwk5@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +0 −5 |
| src/backend/utils/init/miscinit.c | modified | +9 −0 |
Discussion
- Reinitialize stack base after fork (for the benefit of rr)? 10 messages · 2020-03-27 → 2020-04-06