Re: BUG #17512: Process running query fails with SIGSEV - nodeMemoize.c:349

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aleš Zelený <zeleny.ales@gmail.com>
Cc: David Rowley <dgrowleyml@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2022-06-07T19:07:34Z
Lists: pgsql-bugs
> So far, it looks that the query I've been using to prove the SIGSEV works
> fine when I disabled jit by setting
> jit=off

Oh!  So it's (probably) not a Memoize problem, it's an LLVM problem.

> The jit package is postgresql14-llvmjit-14.2-1PGDG.rhel7.x86_64

Hm.  What LLVM version have you got on that machine?  (And I wonder
whether it's the same as what Devrim built this PGDG package against.)

			regards, tom lane



Commits

  1. Harden Memoization code against broken data types