Re: pgadmin3 segfaults on leaving context menu

From: Wander Nauta <info(at)wandernauta(dot)nl>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: pgadmin3 segfaults on leaving context menu
Date: 2015-04-19 14:44:44
Message-ID: CAPrNmkN0iLBzqDFkt2PUJa2u0V+jU08nt35KGp=R9ZPhwdtdhw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-Move-misplaced-unlock-of-s_currentObjectMutex.patch text/x-patch 844 bytes

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2015-04-20 07:51:06 Re: pgadmin3 segfaults on leaving context menu
Previous Message Wander Nauta 2015-04-19 12:04:02 pgadmin3 segfaults on leaving context menu