From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Shiv Shivaraju Gowda (shivshi) <shivshi@cisco.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: PostgreSQL 6.2.5 Visual Studio Build does not pass the regression tests.
Date: Thu, 28 Nov 2013 14:16:54 -0300
Message-ID: <20131128171654.GH5513@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <CEB3FA9D.6450%shivshi@cisco.com>
References: <CEB3FA9D.6450%shivshi@cisco.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Shiv Shivaraju Gowda (shivshi) wrote:
> SYMPTOM:
> The following symptom is encountered in PostgreSQL build using Visual Studio: PostgreSQL regression tests fail with server crashing repeatedly with this message in the log file: "PANIC: could not lock semaphore: error code 0". The issue is encountered for VS 2005, VS 2008( 32bit and 64bit executables), VS 2010 and VS 2012 built executables. The issue was reproducible with PostgreSQL 6.2.3 and 6.2.5. We didn't encounter this issue in MinGW build or EnterpriseDB Packaged executables (which seems to have been built using VisualStudio 2010).
> (Posible) FIX:
> Either of the following changes to the PGSemaphoreLock function work fine and pass the regression tests.
>
> 1) Replace the call to WaitForMultipleObjectsEx with WaitForMultipleObjects.
> 2) Handle the WAIT_IO_COMPLETION return code same as WAIT_OBJECT_0. There is a similar code like this in socket.c, so this change should be safe too.
Is anyone looking into this?
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, shivshi@cisco.com
Subject: Re: PostgreSQL 6.2.5 Visual Studio Build does not pass the regression tests.
In-Reply-To: <20131128171654.GH5513@eldon.alvh.no-ip.org>
References: <CEB3FA9D.6450%shivshi@cisco.com> <20131128171654.GH5513@eldon.alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox