Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aIfwM-0002CS-5P for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jan 2016 17:07:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aIfwL-0004kn-B4 for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jan 2016 17:07:33 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHtAg-0002Fu-Mn for pgsql-bugs@postgresql.org; Sat, 09 Jan 2016 13:03:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aHtAd-0005GE-7Y for pgsql-bugs@postgresql.org; Sat, 09 Jan 2016 13:03:06 +0000 MIME-Version: 1.0 Subject: BUG #13858: Server with debugger installed consumes 100% of one CPU core To: pgsql-bugs@postgresql.org From: sergey-v@mail.ru Date: Sat, 09 Jan 2016 13:02:30 +0000 Message-ID: <20160109130230.4397.31006@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13858 Logged by: Sergey Email address: sergey-v@mail.ru PostgreSQL version: 9.5.0 Operating system: Windows 7 x64 Description: It happened few times today - after some period and I'm not sure which particular my actions, one of the postgres.exe process starts eating 100% of one CPU core. I've found only way to fix that - kill that process, because normal control functions do not work (i.e. stopping server from pgAdmin). Last time i've capture the call stack of the thread consuming the CPU (via https://technet.microsoft.com/en-us/sysinternals/processexplorer): ntoskrnl.exe!memset+0x61a ntoskrnl.exe!KeWaitForMultipleObjects+0xd52 ntoskrnl.exe!KeWaitForMutexObject+0x19f ntoskrnl.exe!_misaligned_access+0xba4 ntoskrnl.exe!_misaligned_access+0x1821 ntoskrnl.exe!KiCheckForKernelApcDelivery+0x25 ntoskrnl.exe!MmProbeAndLockPages+0xbc6 afd.sys+0x460f3 afd.sys+0x45963 ntoskrnl.exe!NtMapViewOfSection+0x15b7 ntoskrnl.exe!NtDeviceIoControlFile+0x56 ntoskrnl.exe!KeSynchronizeExecution+0x3a23 ntdll.dll!ZwDeviceIoControlFile+0xa mswsock.dll+0x174d WS2_32.dll!WSARecv+0x169 postgres.exe!pgwin32_recv+0x79 plugin_debugger.dll!BreakpointFreeSession+0x3f1 plugin_debugger.dll!pg_finfo_pldbg_set_global_breakpoint+0xd6e plpgsql.dll!exec_get_datum_type_info+0xd65 plpgsql.dll!exec_get_datum_type_info+0xcff plpgsql.dll!exec_get_datum_type_info+0x142a plpgsql.dll!exec_get_datum_type_info+0xe14 plpgsql.dll!exec_get_datum_type_info+0xcff plpgsql.dll!exec_get_datum_type_info+0x142a plpgsql.dll!exec_get_datum_type_info+0xe14 plpgsql.dll!exec_get_datum_type_info+0xbbb plpgsql.dll!plpgsql_exec_function+0x2e6 plpgsql.dll!plpgsql_call_handler+0x11f postgres.exe!ExecProject+0x1ea8 postgres.exe!ExecProject+0x1f60 postgres.exe!ExecProject+0x47fa postgres.exe!ExecProject+0x166 postgres.exe!ExecResult+0xb4 postgres.exe!ExecProcNode+0x82 postgres.exe!EvalPlanQualEnd+0x8cd postgres.exe!standard_ExecutorRun+0xa8 postgres.exe!PortalRunFetch+0x64b postgres.exe!PortalRun+0x1c7 postgres.exe!get_stats_option_name+0x2a19 postgres.exe!PostgresMain+0x703 postgres.exe!ShmemBackendArrayAllocation+0x2a6a postgres.exe!SubPostmasterMain+0x273 postgres.exe!main+0x480 postgres.exe!pgwin32_popen+0x130b kernel32.dll!BaseThreadInitThunk+0xd ntdll.dll!RtlUserThreadStart+0x21 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs