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

From Tom Lane
Subject pgsql: Add support for detecting register-stack overrun on IA64.
Date
Msg-id E1PEsJu-00085a-Qq@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make get_stack_depth_rlimit() handle RLIM_INFINITY more sanely.
Next
From: Tom Lane
Date:
Subject: pgsql: Implement an "S" option for psql's \dn command.