Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j4siY-0006Wt-7x for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2020 20:46:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4siX-0007Wl-20 for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2020 20:46:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j4siW-0007W6-Nq for pgsql-general@lists.postgresql.org; Thu, 20 Feb 2020 20:46:40 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4siU-0000Wb-HR for pgsql-general@postgresql.org; Thu, 20 Feb 2020 20:46:40 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 27F8D21C47; Thu, 20 Feb 2020 15:46:37 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 20 Feb 2020 15:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=x LmPLZ4y5fdONSPHDK+emdSdQWw5YpZqA0DIRsi1HfU=; b=i915PfO5ao4bIyF5Q II2W0ZbiZTEPxU5CwGf3u1xa+iL5i8ikWzZQrZUTECKhBhsYelh7sWZyMLNuo7jn gDI9uuq9W3QeYtUtL4DRNtD7aSH0uHm6Za5UbjIqu+X6dxNqhINc/yxv3UexZHe5 YRuxS/l6Xkc8S6G3U5Cyi0NQZTtSWiKSUR/1jUNJEct6S1kg+y8W0hffdm/y3rGg MxTjjtvAcO01C2GDn1CqVdCj7u3PHEO71MD4NTQmUOm1rwmRc5+2yxikVMOE/Tpb Y7V4+Dpsl+yAmlIGTA6wfqj5r9WMYX0YiuOIgGpJRAGffZw5FrK9N8N2iabnVEma Ttbzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=xLmPLZ4y5fdONSPHDK+emdSdQWw5YpZqA0DIRsi1H fU=; b=P3EzyyWAhRTKtVxsZoU7vSUoMyJiVTwiOuSUe6zs2vkd3satRBOwwjlJK 7U/KNbWg/TAzte+6we3WsLJg7UdbTxgAXFdXUF5X8HvKgBZuanv1wNIKjUxmy/WZ L3rkjFqP5Xb/k8xi0XjBcZ+RYm9kzD5zhZRVuFtJlnz961jbf7vjYqf5kc8Sxktv SrgvoVw4sNnoliIjvz0jWa+CHqH8fxLhTzsP+K4mGMRAKDkDx1Gd1ijcnL1mR7k2 QbtEOXEUgHFGB4KNi9NN6NYHe8O2kiYuIIc/U7ybxWkVtCh8XpqoQ9fhYjiBa73I 7v17GXAXdcdVIdRmr6AOq6uOspq/w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrkedvgddugeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfehhnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddruddvledrud elfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr ughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 0198E3280059; Thu, 20 Feb 2020 15:46:35 -0500 (EST) Subject: Re: How to fix 0xC0000005 exception in Postgres 9.0 To: Andrus , pgsql-general References: From: Adrian Klaver Message-ID: <951ab90d-53e8-e680-0cda-91067af5abfe@aklaver.com> Date: Thu, 20 Feb 2020 12:46:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1257; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/20/20 12:35 PM, Andrus wrote: > Hi! > > Every time when user tries to log on from same virtual computer where > Postgreql resides, Postgres terminates with 0xC0000005 exception. Log is > below. > > About 65 users are accessing this server over VPN. They can use server > normally. > Logging from localhost using pgadmin 4 with user postgres also works. > > Only any attempt to log on from localhost with user dbadmin from > psqlODBC client causes this exception. > > It has worked normally for many years but now suddenly stopped working > for localhost. > > How to fix this ? Upgrade to a version of Postgres that is not 5 years past EOL? > > Server: > > PostgreSQL 9.0.4, compiled by Visual C++ build 1500, 64-bit > > OS: > > Windows server 2008 R2 > Version 6.1 Build 7601 > > Andrus. > > Postgres log: > > 2020-02-20 15:44:51 EET   LOG:  server process (PID 3788) was terminated > by exception 0xC0000005 > 2020-02-20 15:44:51 EET   HINT:  See C include file "ntstatus.h" for a > description of the hexadecimal value. > 2020-02-20 15:44:51 EET   LOG:  terminating any other active server > processes > 2020-02-20 15:44:51 EET andrus mydatabase WARNING:  terminating > connection because of crash of another server process > 2020-02-20 15:44:51 EET andrus mydatabase DETAIL:  The postmaster has > commanded this server process to roll back the current transaction and > exit, because another server process exited abnormally and possibly > corrupted shared memory. > 2020-02-20 15:44:51 EET andrus mydatabase HINT:  In a moment you should > be able to reconnect to the database and repeat your command. > 2020-02-20 15:44:51 EET kati mydatabase WARNING:  terminating connection > because of crash of another server process > 2020-02-20 15:44:51 EET kati mydatabase DETAIL:  The postmaster has > commanded this server process to roll back the current transaction and > exit, because another server process exited abnormally and possibly > corrupted shared memory. > 2020-02-20 15:44:51 EET kati mydatabase HINT:  In a moment you should be > able to reconnect to the database and repeat your command. > 2020-02-20 15:44:51 EET julia mydatabase WARNING:  terminating > connection because of crash of another server process > 2020-02-20 15:44:51 EET julia mydatabase DETAIL:  The postmaster has > commanded this server process to roll back the current transaction and > exit, because another server process exited abnormally and possibly > corrupted shared memory. > 2020-02-20 15:44:51 EET julia mydatabase HINT:  In a moment you should > be able to reconnect to the database and repeat your command. > 2020-02-20 15:44:51 EET reinpuu mydatabase WARNING:  terminating > connection because of crash of another server process > 2020-02-20 15:44:51 EET reinpuu mydatabase DETAIL:  The postmaster has > commanded this server process to roll back the current transaction and > exit, because another server process exited abnormally and possibly > corrupted shared memory. > 2020-02-20 15:44:51 EET reinpuu mydatabase HINT:  In a moment you should > be able to reconnect to the database and repeat your command. > 2020-02-20 15:44:51 EET kokka mydatabase WARNING:  terminating > connection because of crash of another server process > 2020-02-20 15:44:51 EET kokka mydatabase DETAIL:  The postmaster has > commanded this server process to roll back the current transaction and > exit, because another server process exited abnormally and possibly > corrupted shared memory. > 2020-02-20 15:44:51 EET kokka mydatabase HINT:  In a moment you should > be able to reconnect to the database and repeat your command. > 2020-02-20 15:44:51 EET myll mydatabase WARNING:  terminating connection > because of crash of another server process > 2020-02-20 15:44:51 EET myll mydatabase DETAIL:  The postmaster has > commanded this server process to roll back the current transaction and > exit, because another server process exited abnormally and possibly > corrupted shared memory. > 2020-02-20 15:44:51 EET myll mydatabase HINT:  In a moment you should be > able to reconnect to the database and repeat your command. > 2020-02-20 15:44:51 EET   WARNING:  terminating connection because of > crash of another server process > 2020-02-20 15:44:51 EET   DETAIL:  The postmaster has commanded this > server process to roll back the current transaction and exit, because > another server process exited abnormally and possibly corrupted shared > memory. > 2020-02-20 15:44:51 EET   HINT:  In a moment you should be able to > reconnect to the database and repeat your command. > 2020-02-20 15:44:51 EET dbadmin mydatabase FATAL:  the database system > is in recovery mode > 2020-02-20 15:44:51 EET   LOG:  all server processes terminated; > reinitializing > 2020-02-20 15:45:01 EET   FATAL:  pre-existing shared memory block is > still in use > 2020-02-20 15:45:01 EET   HINT:  Check if there are any old server > processes still running, and terminate them. > > -- Adrian Klaver adrian.klaver@aklaver.com