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-07 03:00:11
Message-ID: E1PEvUJ-0002V9-66@gemulon.postgresql.org
Views: Raw Message | Whole Thread | 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().

Back-patch to all supported versions.

Branch
------
REL8_1_STABLE

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-11-07 18:03:38 pgsql: Prevent invoking I/O conversion casts via functional/attribute n
Previous Message Tom Lane 2010-11-07 03:00:10 pgsql: Add support for detecting register-stack overrun on IA64.