pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix crash when reporting CREATE INDEX progress 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix crash when reporting CREATE INDEX progress @ 2019-10-16 12:53 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2019-10-16 12:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix crash when reporting CREATE INDEX progress A race condition can make us try to dereference a NULL pointer to the PGPROC struct of a process that's already finished. That results in crashes during REINDEX CONCURRENTLY and CREATE INDEX CONCURRENTLY. This was introduced in ab0dfc961b6a, so backpatch to pg12. Reported by: Justin Pryzby Reviewed-by: Michaël Paquier Discussion: https://postgr.es/m/20191012004446.GT10470@telsasoft.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0d21f919eb86cd3baa267844d111c6a5af480696 Modified Files -------------- src/backend/commands/indexcmds.c | 6 ++++-- src/backend/storage/lmgr/lmgr.c | 10 ++++------ 2 files changed, 8 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix crash when reporting CREATE INDEX progress @ 2019-10-16 12:53 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2019-10-16 12:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix crash when reporting CREATE INDEX progress A race condition can make us try to dereference a NULL pointer to the PGPROC struct of a process that's already finished. That results in crashes during REINDEX CONCURRENTLY and CREATE INDEX CONCURRENTLY. This was introduced in ab0dfc961b6a, so backpatch to pg12. Reported by: Justin Pryzby Reviewed-by: Michaël Paquier Discussion: https://postgr.es/m/20191012004446.GT10470@telsasoft.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1cd5bc3ccf92a511b087629b2c914dffa9151fce Modified Files -------------- src/backend/commands/indexcmds.c | 6 ++++-- src/backend/storage/lmgr/lmgr.c | 10 ++++------ 2 files changed, 8 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-10-16 12:53 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-10-16 12:53 pgsql: Fix crash when reporting CREATE INDEX progress Alvaro Herrera <alvherre@alvh.no-ip.org> 2019-10-16 12:53 pgsql: Fix crash when reporting CREATE INDEX progress Alvaro Herrera <alvherre@alvh.no-ip.org>
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