forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd88404
committed
Fix crash with RemoveFromWaitQueue() when detecting a deadlock.
Commit5764f61 used dclist_delete_from() to remove the proc from thewait queue. However, since it doesn't clear dist_node's next/prev toNULL, it could call RemoveFromWaitQueue() twice: when the processdetects a deadlock and then when cleaning up locks on aborting thetransaction. The waiting lock information is cleared in the firstcall, so it led to a crash in the second call.Backpatch to v16, where the change was introduced.Bug: #18031Reported-by: Justin Pryzby, Alexander LakhinReviewed-by: Andres FreundDiscussion:https://postgr.es/m/ZKy4AdrLEfbqrxGJ%40telsasoft.comDiscussion:https://postgr.es/m/18031-ebe2d08cb405f6cc@postgresql.orgBackpatch-through: 161 parentd9eb92c commitbd88404
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1881 | 1881 |
| |
1882 | 1882 |
| |
1883 | 1883 |
| |
1884 |
| - | |
| 1884 | + | |
1885 | 1885 |
| |
1886 | 1886 |
| |
1887 | 1887 |
| |
|
0 commit comments
Comments
(0)