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 1gn85L-0002W8-2Q for pgsql-general@arkaria.postgresql.org; Fri, 25 Jan 2019 20:28:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gn85I-0006aG-OJ for pgsql-general@arkaria.postgresql.org; Fri, 25 Jan 2019 20:28:16 +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 1gn85H-0006a9-Hl for pgsql-general@lists.postgresql.org; Fri, 25 Jan 2019 20:28:16 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn85D-0008Ll-IG for pgsql-general@postgresql.org; Fri, 25 Jan 2019 20:28:14 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4B7A520F1D; Fri, 25 Jan 2019 15:28:09 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 25 Jan 2019 15:28:09 -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=5 Nrri3KHCWEQeX57LAq4Os3RqzoVODnuyAM9RX3pyIc=; b=ovwZEvk1RAGaSbSUe cxGKBrbNc6hgKsod2tQM+lKtUy76qYG699ICNpxvqX07vaYrn7I/5E0T9+gwS1ot zY12fdUp0BJf0qED9dqyTs+12HUkvabwLf5i+vLaBtjbncrDtRLekdgHRGfc0cNS 0lp/7gTq9cAU5dcKvnzQJ1VIO22XrryATPyt0lLWEqARQyQ9cv/VZobv7vNX4ac/ fO6dnpdsrpl8ScxaUEGEmMYGgUrrKifRXjnWRWL/Q1+kPgAImq5cg2uCF+r7s7w1 pjvp1RISh8uzlQllZNN2w7GUtkGz6ZMFfe9xlpdEn5IXKUnV5VTCI3pG6VarHc0w Kxlhw== 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=fm1; bh=5Nrri3KHCWEQeX57LAq4Os3RqzoVODnuyAM9RX3py Ic=; b=EFArEI+c9YaC+eB8QAIUtiNiXCStSaKUENsQ/K6H+n7unSTKmh7mNlzE1 G/elXtS769rv3m++PBXAk4eeiKo0u07wi/cey/Coco0erYVdRJKxEofves2jJO90 v6RCMrUw5q62XdmChzH0VMfGIWcq3A24rBmzmT+E1iW71ErYdB0yeVyVbxyxln9V ay1H2trpQgFarVv3AWeXCDZZiRhZssWQ/PYhGwOwBX2Inic5B9SLffP9xAVfijvH scROGYOtxWhClxniZk7kKhUrpD3haWML+bSZqSLGm4OVj+28HBwXhXO71ff/7edf zhpDnGdj/J3bqZs6DgHQ2/i+CoDXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrieeggddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkff gfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceo rggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvd duvddrudefgedrfeenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 099B110087; Fri, 25 Jan 2019 15:28:06 -0500 (EST) Subject: Re: RES: Postgresql Crasching To: =?UTF-8?B?TcOhcmNpbyBBbnTDtG5pbyBTZXBw?= , pgsql-general@postgresql.org References: <003c01d4b4da$d2c0ade0$784209a0$@com.br> <004301d4b4de$d4a54f90$7defeeb0$@com.br> From: Adrian Klaver Message-ID: <6beffc32-b6a0-4cc2-d389-0cfd695b0b81@aklaver.com> Date: Fri, 25 Jan 2019 12:28:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <004301d4b4de$d4a54f90$7defeeb0$@com.br> Content-Type: text/plain; charset=utf-8; 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 1/25/19 10:50 AM, Márcio Antônio Sepp wrote: >> >> On 1/25/19 10:21 AM, Márcio Antônio Sepp wrote: >>> >>> Hi all, >>> >>> >>> We are experiencing the follow error in last few weeks: >>> >>> Jan 25 16:03:51 FreeBSD11 kernel: pid 78639 (postgres), uid 770: exited >> on >>> signal 11 (core dumped) >>> Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-1] 2019-01-25 16:03:51.135 >> -02 >>> [73403] WARNING: terminating connection because of crash of another >> server >>> process >>> Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-2] 2019-01-25 16:03:51.135 >> -02 >>> [73403] DETAIL: The postmaster has commanded this server process to roll >>> back the current transacti >>> on and exit, because another server process exited abnormally and >> possibly >>> corrupted shared memory. >>> Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-3] 2019-01-25 16:03:51.135 >> -02 >>> [73403] HINT: In a moment you should be able to reconnect to the >> database >>> and repeat your command. >> >> What is the logs just before the above? > > > Jan 25 16:01:55 FreeBSD11 postgres[71605]: [6-2] 2019-01-25 16:01:55.733 -02 [71605] DETAIL: Key (tdoemp, codemp, codfil, origem, sercai, numdoc, tdopes, codpes, datpar)=(1, 59 > 84305, 1, 55, 1, 160, 1, 5984305000107, 201901) is not present in table "e026pag_p2019". > Jan 25 16:01:55 FreeBSD11 postgres[71605]: [6-3] 2019-01-25 16:01:55.733 -02 [71605] STATEMENT: COMMIT > Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-1] 2019-01-25 16:02:35.184 -02 [73403] ERROR: insert or update on table "e026par_p2019" violates foreign key constraint "e026par_p > 2019_tdoemp_fkey" > Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-2] 2019-01-25 16:02:35.184 -02 [73403] DETAIL: Key (tdoemp, codemp, codfil, origem, sercai, numdoc, tdopes, codpes, datpar)=(1, 59 > 84305, 1, 55, 1, 160, 1, 5984305000107, 201901) is not present in table "e026pag_p2019". > Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-3] 2019-01-25 16:02:35.184 -02 [73403] STATEMENT: COMMIT > Jan 25 16:03:51 FreeBSD11 kernel: pid 78639 (postgres), uid 770: exited on signal 11 (core dumped) > Hmm, a 1:16 between the query failing and the crash. Hard to say if there is a cause and effect. I would follow Tom Lane's advice and see if you can get a stack trace. -- Adrian Klaver adrian.klaver@aklaver.com