pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make EXEC_BACKEND more convenient on Linux and FreeBSD.
Date: Wed, 08 Feb 2023 04:11:13 +0000
Message-ID: <E1pPbnc-0001CB-KQ@gemulon.postgresql.org> (raw)

Make EXEC_BACKEND more convenient on Linux and FreeBSD.

Try to disable ASLR when building in EXEC_BACKEND mode, to avoid random
memory mapping failures while testing.  For developer use only, no
effect on regular builds.

This has been originally applied as of f3e7806 for v15~, but
recently-added buildfarm member gokiburi tests this configuration on
older branches as well, causing it to fail randomly as ASLR would be
enabled.

Suggested-by: Andres Freund <andres@anarazel.de>
Tested-by: Bossart, Nathan <bossartn@amazon.com>
Discussion: https://postgr.es/m/20210806032944.m4tz7j2w47mant26%40alap3.anarazel.de
Backpatch-through: 12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6b4dba711a4ec4be87850108d4f9db12eecd399e

Modified Files
--------------
configure                     |  2 +-
configure.in                  |  1 +
src/bin/pg_ctl/pg_ctl.c       |  4 ++++
src/common/exec.c             | 33 +++++++++++++++++++++++++++++++++
src/include/pg_config.h.in    |  3 +++
src/include/port.h            |  5 +++++
src/test/regress/pg_regress.c |  4 ++++
7 files changed, 51 insertions(+), 1 deletion(-)



view thread (11+ messages)

Message-ID: <E1pPbnc-0001CB-KQ@gemulon.postgresql.org>
Permalink:  ../E1pPbnc-0001CB-KQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pPbnc-0001CB-KQ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Make EXEC_BACKEND more convenient on Linux and FreeBSD.
  In-Reply-To: <E1pPbnc-0001CB-KQ@gemulon.postgresql.org>
  References: <E1pPbnc-0001CB-KQ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox