pgsql: Cancel CV sleep during subtransaction abort. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Cancel CV sleep during subtransaction abort.
Date
Msg-id E1eS1mR-0002Jn-PN@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Cancel CV sleep during subtransaction abort.

Generally, error recovery paths that need to do things like
LWLockReleaseAll and pgstat_report_wait_end also need to call
ConditionVariableCancelSleep, but AbortSubTransaction was missed.

Since subtransaction abort might destroy up the DSM segment that
contains the ConditionVariable stored in cv_sleep_target, this
can result in a crash for anything using condition variables.

Reported and diagnosed by Andres Freund.

Discussion: http://postgr.es/m/20171221110048.rxk6464azzl5t2fi@alap3.anarazel.de

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f3decdc94ea3dea05715325757db7b0295672bbe

Modified Files
--------------
src/backend/access/transam/xact.c | 3 +++
1 file changed, 3 insertions(+)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: pgsql: Add parallel-aware hash joins.
Next
From: Tom Lane
Date:
Subject: pgsql: Avoid putting build-location-dependent strings into generatedfi