From: Bo Thorbjørn Jensen <bo@budget123.dk>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: exception 0xC0000005 PostgreSQL 9.1.6 on Windows Server 2008 R2
Date: Fri, 5 Oct 2012 12:33:36 +0000
Message-ID: <AD7252BEFBCA3846A8D34ABCDA258D089BD59A@EXMBX03.mailcloud.dk> (raw)
Yesterday (and twice today) we got this from pg_log:
2012-10-04 14:29:08 CEST LOG: server process (PID 1416) was terminated by exception 0xC0000005
2012-10-04 14:29:08 CEST HINT: See C include file "ntstatus.h" for a description of the hexadecimal value.
2012-10-04 14:29:08 CEST LOG: terminating any other active server processes
Version string is: PostgreSQL 9.1.6, compiled by Visual C++ build 1500, 64-bit
OS version: Windows Server 2008 R2 (6 GB memory 64bit)
This has started occurring after upgrading from 9.1.5 AND adding a plpgsql function "log_insert()" (tables and function appended).
Application log suggests a an exception during a rollback is occurring:
2012-10-04 14:29:08,322 [26] Log ERROR ***** - Error in LogClass.Insert(). Cause: Object reference not set to an instance of an object.
Stack Trace: at Npgsql.NpgsqlCommand.ClearPoolAndCreateException(Exception e)
at Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb)
at Npgsql.NpgsqlCommand.ExecuteBlind()
at Npgsql.NpgsqlTransaction.Rollback()
*snip*
Removing the use of said function from application seems to have removed the issue.
I have tried replicating it on a similar setup to no avail :(. Hence the appended script will not guarantee an exception (in fact I can't get the exception from other than live environment)
The live environment has around 1500 databases and on average 10-20 open connections.
I hope you can shed some light, but I understand this is too little to go on for a proper investigation.
Kind regards
Bo Thorbjørn Jensen
Attachments:
logtables.sql (application/octet-stream, 3.4K) download
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: bo@budget123.dk
Subject: Re: exception 0xC0000005 PostgreSQL 9.1.6 on Windows Server 2008 R2
In-Reply-To: <AD7252BEFBCA3846A8D34ABCDA258D089BD59A@EXMBX03.mailcloud.dk>
References: <AD7252BEFBCA3846A8D34ABCDA258D089BD59A@EXMBX03.mailcloud.dk>
* 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