Re: BUG #16696: Backend crash in llvmjit

Andres Freund <andres@anarazel.de>

From: "Andres Freund" <andres@anarazel.de>
To: "Dmitry Marakasov" <amdmi3@amdmi3.ru>, pgsql-bugs@lists.postgresql.org
Date: 2020-11-03T00:00:37Z
Lists: pgsql-bugs
Hi

On Mon, Nov 2, 2020, at 13:45, Dmitry Marakasov wrote:
> * PG Bug reporting form (noreply@postgresql.org) wrote:
> 
> > Environment details:
> > - FreeBSD 12.1 amd64
> > - PostgreSQL 13.0 (built from FreeBSD ports)
> > - llvm-10.0.1 (build from FreeBSD ports)
> 
> My bad, it's actually llvm-9.0.1. Multiple llvm versions are installed on
> the system, and PostgreSQL uses llvm9:
> 
> ldd /usr/local/lib/postgresql/llvmjit.so | grep LLVM
> 	libLLVM-9.so => /usr/local/llvm90/lib/libLLVM-9.so (0x800e00000)

Could you try generating a backtrace after turning jit_debugging_support on? That might give a bit more information.

I'll check once I'm home whether I can reproduce in my environment.

Regards,

Andres



Commits

  1. jit: Don't inline functions that access thread-locals.