pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: LLVMJIT: Release JIT context after running ExprContext shutdown 2+ messages / 1 participants [nested] [flat]
* pgsql: LLVMJIT: Release JIT context after running ExprContext shutdown @ 2018-07-25 23:47 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2018-07-25 23:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org LLVMJIT: Release JIT context after running ExprContext shutdown callbacks. Due to inlining it previously was possible that an ExprContext's shutdown callback pointed to a JITed function. As the JIT context previously was shut down before the shutdown callbacks were called, that could lead to segfaults. Fix the ordering. Reported-By: Dmitry Dolgov Author: Andres Freund Discussion: https://postgr.es/m/CA+q6zcWO7CeAJtHBxgcHn_hj+PenM=tvG0RJ93X1uEJ86+76Ug@mail.gmail.com Backpatch: 11-, where JIT compilation was added Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3acc4acd9bcbefbfaf789762950726c6208daf1b Modified Files -------------- src/backend/executor/execMain.c | 5 ----- src/backend/executor/execUtils.c | 18 +++++++++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: LLVMJIT: Release JIT context after running ExprContext shutdown @ 2018-07-25 23:47 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2018-07-25 23:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org LLVMJIT: Release JIT context after running ExprContext shutdown callbacks. Due to inlining it previously was possible that an ExprContext's shutdown callback pointed to a JITed function. As the JIT context previously was shut down before the shutdown callbacks were called, that could lead to segfaults. Fix the ordering. Reported-By: Dmitry Dolgov Author: Andres Freund Discussion: https://postgr.es/m/CA+q6zcWO7CeAJtHBxgcHn_hj+PenM=tvG0RJ93X1uEJ86+76Ug@mail.gmail.com Backpatch: 11-, where JIT compilation was added Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ed7e319eb41361250ccb19379ef206b4a6d866de Modified Files -------------- src/backend/executor/execMain.c | 5 ----- src/backend/executor/execUtils.c | 18 +++++++++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-07-25 23:47 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-07-25 23:47 pgsql: LLVMJIT: Release JIT context after running ExprContext shutdown Andres Freund <andres@anarazel.de> 2018-07-25 23:47 pgsql: LLVMJIT: Release JIT context after running ExprContext shutdown Andres Freund <andres@anarazel.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox