Re: pgadmin3 segfaults on leaving context menu - Mailing list pgadmin-support

From Wander Nauta
Subject Re: pgadmin3 segfaults on leaving context menu
Date
Msg-id CAPrNmkN0iLBzqDFkt2PUJa2u0V+jU08nt35KGp=R9ZPhwdtdhw@mail.gmail.com
Whole thread Raw
In response to pgadmin3 segfaults on leaving context menu  (Wander Nauta <info@wandernauta.nl>)
Responses Re: pgadmin3 segfaults on leaving context menu
List pgadmin-support
Hello all,

I did some more digging and it seems frmMain::OnSelRightClick is
trying to unlock a mutex it doesn't own, which can result in undefined
behaviour in POSIX.

I've attached a patch that moves the unlock inside the if where the
mutex is locked. This seems to fix the crash, at least on my end, but
I couldn't say if it affects thread safety at all.

Again, I hope this helps.

Kind regards,
Wander Nauta

Attachment

pgadmin-support by date:

Previous
From: Wander Nauta
Date:
Subject: pgadmin3 segfaults on leaving context menu
Next
From: Dave Page
Date:
Subject: Re: pgadmin3 segfaults on leaving context menu