Re: condition variable cleanup and subtransactions

2017-12-21 Thread Robert Haas
On Thu, Dec 21, 2017 at 6:46 AM, Thomas Munro wrote: > On Fri, Dec 22, 2017 at 12:00 AM, Andres Freund wrote: >> Oh. This seems to be a condition variable bug independent of PHJ. The >> problem is that the DSM segment etc all get cleaned up in >> *subtransaction* abort. >> >> Afaict it's a bug th

Re: condition variable cleanup and subtransactions

2017-12-21 Thread Thomas Munro
On Fri, Dec 22, 2017 at 12:00 AM, Andres Freund wrote: > Oh. This seems to be a condition variable bug independent of PHJ. The > problem is that the DSM segment etc all get cleaned up in > *subtransaction* abort. > > Afaict it's a bug that AbortTransaction() does > ConditionVariableCancelSleep() b

condition variable cleanup and subtransactions

2017-12-21 Thread Andres Freund
Hi, On 2017-12-21 02:42:25 -0800, Andres Freund wrote: > Trying to debug this I found another issue. I'd placed a sleep(10) in > ExecParallelHashCloseBatchAccessors() and then ctrl-c'ed the server for > some reason. Segfault time: > > #0 0x55bfbac42539 in tas (lock=0x7fcd82ae14ac memory at