Re: JIT crash introduced by 6185c9737c with LLVM 14

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: Jeff Davis <jeff(at)j-davis(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, Amit Langote <amitlan(at)postgresql(dot)org>
Subject: Re: JIT crash introduced by 6185c9737c with LLVM 14
Date: 2024-06-17 09:32:57
Message-ID: CA+HiwqH4cnsKv-OcF6mj+4DdCO22Yqu4pFZ8EdkRe29OQ76yBA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Jeff,

On Fri, Jun 14, 2024 at 2:57 PM Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
> On Fri, Jun 14, 2024 at 1:25 PM Jeff Davis <jeff(at)j-davis(dot)com> wrot>
> > The following query causes a crash on an optimized build using LLVM 14:
> >
> > create table t(i int);
> > set jit_above_cost=0;
> > select count(*) from t;
> >
> > I bisected the crash to 6185c9737c.
>
> Thanks for the report. Will look into it.

Would you please share more details about the crash (llvm build
attributes, etc.) as I'm unable to reproduce this crash with
libLLVM-14.so that I built from sources that I got at [1]. No luck
even after building with -DLLVM_ENABLE_ASSERTIONS=ON. I'm building PG
HEAD with --buildtype=release.

--
Thanks, Amit Langote

[1] https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.6

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2024-06-17 16:12:10 BUG #18514: Encountering an error invalid DSA memory alloc request size 1811939328 when executing script
Previous Message PG Bug reporting form 2024-06-17 05:44:18 BUG #18513: PG17 build on windows generates postgres.exe.lib instead of postgres.lib