pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prepare for forthcoming LLVM 13 API change.
Date: Thu, 24 Jun 2021 23:31:41 +0000
Message-ID: <E1lwYov-0005yW-JH@gemulon.postgresql.org> (raw)

Prepare for forthcoming LLVM 13 API change.

LLVM 13 (due out in September) has changed the semantics of
LLVMOrcAbsoluteSymbols(), so we need to bump some reference counts to
avoid a double-free that causes crashes and bad query results.

A proactive change seems necessary to avoid having a window of time
where our respective latest releases would interact badly.  It's
possible that the situation could change before then, though.

Thanks to Fabien Coelho for monitoring bleeding edge LLVM and Andres
Freund for tracking down the change.

Back-patch to 11, where the JIT code arrived.

Discussion: https://postgr.es/m/CA%2BhUKGLEy8mgtN7BNp0ooFAjUedDTJj5dME7NxLU-m91b85siA%40mail.gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d9c05a9ec49399a45d30acacac748625922cbe40

Modified Files
--------------
src/backend/jit/llvm/llvmjit.c | 3 +++
1 file changed, 3 insertions(+)



view thread (4+ messages)  latest in thread

Message-ID: <E1lwYov-0005yW-JH@gemulon.postgresql.org>
Permalink:  ../E1lwYov-0005yW-JH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lwYov-0005yW-JH@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: tmunro@postgresql.org
  Subject: Re: pgsql: Prepare for forthcoming LLVM 13 API change.
  In-Reply-To: <E1lwYov-0005yW-JH@gemulon.postgresql.org>
  References: <E1lwYov-0005yW-JH@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