Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 25A54B5D91F for ; Tue, 13 Sep 2011 01:55:01 -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 79347-05 for ; Tue, 13 Sep 2011 04:54:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id 5093AB5DBD8 for ; Tue, 13 Sep 2011 01:54:52 -0300 (ADT) Received: by vws1 with SMTP id 1so373097vws.33 for ; Mon, 12 Sep 2011 21:54:52 -0700 (PDT) Received: by 10.52.107.226 with SMTP id hf2mr1848127vdb.330.1315889692488; Mon, 12 Sep 2011 21:54:52 -0700 (PDT) Received: from [10.1.1.6] (124-148-242-247.dyn.iinet.net.au [124.148.242.247]) by mx.google.com with ESMTPS id t13sm343553vdj.17.2011.09.12.21.54.50 (version=SSLv3 cipher=OTHER); Mon, 12 Sep 2011 21:54:52 -0700 (PDT) Message-ID: <4E6EE20C.7060703@ringerc.id.au> Date: Tue, 13 Sep 2011 12:54:36 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Jerome Schulteis CC: "pgsql-bugs@postgresql.org" Subject: Re: BUG #6201: Windows User Log Off Causes Backend Exception 0xC0000142 References: <201109092059.p89KxoVr078697@wwwmaster.postgresql.org> <4E6AB4F9.4090709@ringerc.id.au> In-Reply-To: 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.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/67 X-Sequence-Number: 31084 On 12/09/2011 11:02 PM, Jerome Schulteis wrote: > > For bonus points, verify each Microsoft DLL as having a valid signature > by double-clicking on it in the list, and report any DLLs that fail > verification. > All Microsoft DLLs verified. The following are all of the non-Microsoft non-.nls DLLs: > > iconv.dll LGPLed libiconv for Windows NT/2000/XP and Windows 95/98/ME Free Software Foundation 1.9.0.0 > libeay32.dll OpenSSL Shared Library The OpenSSL Project, http://www.openssl.org/ 0.9.8.12 > libiconv-2.dll LGPLed libiconv for Windows NT/2000/XP/Vista and Windows 95/98/ME Free Software Foundation 1.12.0.0 > libintl-8.dll LGPLed libintl for Windows NT/2000/XP/Vista and Windows 95/98/ME Free Software Foundation 0.17.0.0 > libxml2.dll > postgres.exe PostgreSQL Server PostgreSQL Global Development Group 9.0.4.11104 > ssleay32.dll OpenSSL Shared Library The OpenSSL Project, http://www.openssl.org/ 0.9.8.12 > zlib1.dll zlib data compression library 1.2.3.0 Damn, scratch that theory. It's not a buggy hook DLL with some kind of race. Maybe this exists in the standard Pg distribution and people don't usually hit it because there aren't usually user logon/logoff events on most database servers while they're doing work? Or people who've noticed it have never bothered to track it down and isolate it until you did? It sounds like you've tested this on a clean Windows install in a VM, yes? The next step would be to figure out which DLL's InitInstance() or ExitInstance() is failing, and how to get the postmaster to print the formatted version of that error so we can see the substitutions in the message string. I'm not able to take that on right now as I'm behind on my main work and moving house as well. Is anyone willing to volunteer to dig into this one? -- Craig Ringer