pgsql: Add support for detecting register-stack overrun on IA64.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add support for detecting register-stack overrun on IA64.
Date: 2010-11-06 23:37:14
Message-ID: E1PEsJu-00085a-Qq@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add support for detecting register-stack overrun on IA64.

Per recent investigation, the register stack can grow faster than the
regular stack depending on compiler and choice of options. To avoid
crashes we must check both stacks in check_stack_depth().

Since this is poorly-tested code, committing only to HEAD for the
moment ... but we might want to consider back-patching later.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=d7a2ce4905da7d812407b6354f038aac17e97024

Modified Files
--------------
src/backend/tcop/postgres.c | 61 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 61 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-11-07 01:41:58 pgsql: Implement an "S" option for psql's \dn command.
Previous Message Tom Lane 2010-11-06 20:50:57 pgsql: Make get_stack_depth_rlimit() handle RLIM_INFINITY more sanely.