Re: JIT causes core dump during error recovery
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Date: 2024-06-26T19:13:59Z
Lists: pgsql-hackers
Attachments
- jiterrorcrash.sql (text/plain)
I wrote: > It gets a SIGSEGV in plpgsql_transaction.sql's > cursor_fail_during_commit test. Here's a simpler way to reproduce: just run the attached script in a --with-llvm build. (This is merely extracting the troublesome regression case for convenience.) Interesting, if you take out any one of the three "set" commands, it doesn't crash. This probably explains why, for example, buildfarm member urutu hasn't shown this --- it's only reducing one of the three costs to zero. I don't have any idea what to make of that result, except that it suggests the problem might be at least partly LLVM's fault. Surely, if we are prematurely unmapping a compiled code segment, that behavior wouldn't depend on whether we had asked for inlining? regards, tom lane
Commits
-
Avoid crashing when a JIT-inlined backend function throws an error.
- dccda847b709 12.20 landed
- 86fac88eed4b 13.16 landed
- 5401e70e47aa 15.8 landed
- 13abc1f66074 14.13 landed
- 5d6c64d29097 17.0 landed
- 07d66d3cc2a9 16.4 landed