Re: LLVM JITLink attempt II (WIP)

From: Anthonin Bonnefoy <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Gregory Burd <greg(at)burd(dot)me>, Matheus Alcantara <matheusssilv97(at)gmail(dot)com>
Subject: Re: LLVM JITLink attempt II (WIP)
Date: 2026-01-09 17:21:40
Message-ID: CAO6_Xqr5K1nqgWy9yyB1eX0C8mJ9WEb8PaA32kEfaXxfXzzHpw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Though if I try to perf inject the dumps, I have the following errors
> jitdump file contains invalid or unsupported flags 0xf5880666c26c
> 0x2b750 [0xa8]: failed to process type: 10 [Operation not permitted]
> But that might be an issue with my setup, I would need to test it
> further to understand the issue...

After some additional investigation, I think that's a LLVM issue: The
Flags field is never initialised so the JIT perf plugin was writing
random data in the JIT dump header.
I've opened a PR[0] to fix this.

[0] https://github.com/llvm/llvm-project/pull/175204

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2026-01-09 17:58:21 Re: Multixid SLRU truncation bugs at wraparound
Previous Message Kirill Reshke 2026-01-09 16:39:01 Re: GIN pageinspect support for entry tree and posting tree