Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 769B6B607FD for ; Tue, 31 May 2011 21:36:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 32883-02 for ; Wed, 1 Jun 2011 00:36:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 926FCB607D8 for ; Tue, 31 May 2011 21:36:00 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id A2AE310D; Tue, 31 May 2011 20:36:00 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bM4DGt4JrFwS; Tue, 31 May 2011 20:35:59 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id A16742D; Tue, 31 May 2011 20:35:59 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id AA483AEC9D; Wed, 1 Jun 2011 08:35:58 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YD4bZFgBEbiq; Wed, 1 Jun 2011 08:35:52 +0800 (WST) Received: from [10.1.1.3] (unknown [124.169.247.86]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 127C8AEC04; Wed, 1 Jun 2011 08:35:52 +0800 (WST) Message-ID: <4DE58965.3040206@postnewspapers.com.au> Date: Wed, 01 Jun 2011 08:35:49 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Rikard Pavelic CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6046: select current_date crashes postgres References: <201105311728.p4VHSRbR063675@wwwmaster.postgresql.org> In-Reply-To: <201105311728.p4VHSRbR063675@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/239 X-Sequence-Number: 30378 On 1/06/2011 1:28 AM, Rikard Pavelic wrote: > > The following bug has been logged online: > > Bug reference: 6046 > Logged by: Rikard Pavelic > Email address: rikard.pavelic@zg.htnet.hr > PostgreSQL version: 9.1 beta 1 > Operating system: Windows 7 64bit > Description: select current_date crashes postgres > Details: > > select current_time > or select current_date > > results in postgres crash. The crash is a segfault: 2011-06-01 08:29:04 WST LOG: server process (PID 2420) was terminated by exception 0xC0000005 I've got a crash dump and am looking into it now. In the mean time, what's even more worrying is this: > 2011-06-01 08:33:18 WST WARNING: terminating connection because of crash of another server process > 2011-06-01 08:33:18 WST 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. > 2011-06-01 08:33:18 WST HINT: In a moment you should be able to reconnect to the database and repeat your command. > 2011-06-01 08:33:18 WST LOG: all server processes terminated; reinitializing > 2011-06-01 08:33:28 WST FATAL: pre-existing shared memory block is still in use > 2011-06-01 08:33:28 WST HINT: Check if there are any old server processes still running, and terminate them. It looks like Pg isn't coming back up after the backend crash. There are no postgres.exe processes hanging around, and I can start PostgreSQL back up from services.msc without a problem, but it doesn't successfully re-launch its _self_ after a crash. -- Craig Ringer Tech-related writing at http://soapyfrogs.blogspot.com/