Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f87Xj-0007f5-J7 for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Apr 2018 17:03:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f87Xi-0000CH-K4 for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Apr 2018 17:03:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f87Xh-0000C7-Bf for pgsql-bugs@lists.postgresql.org; Mon, 16 Apr 2018 17:03:50 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f87Xe-0007aR-8A for pgsql-bugs@lists.postgresql.org; Mon, 16 Apr 2018 17:03:48 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 114861668; Mon, 16 Apr 2018 13:03:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 16 Apr 2018 13:03:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=SuA/wlcjeXVH73S0O +rX0iMqEz2F8ZCTMHcssiXDCQo=; b=ZJnCvvNSIyT/2URh4jpV53T0ZtQTpiD2x BOrS+PZ6XaVtzm4nvv11skzoZuz3xm4VWPRshGrzSI5z+QW9T0LcyQ6y11pA69+2 Al+mrAtgoADN8DFr43Z4sxdW0dOUdVaij7IjJ8R9t4kx8fzirR1VC54zCvm3Vuv8 WPKX4S29V5J3m8kuEHWkOj54daPdvLh+5EIqUa2E+MyLoJlRqqK6ug4hUhk6kA0F bVCL6u46AC2vt+MgLrlq+BjF+81O+BfR63m8Ep8tlIFjxB5CCC2UejOvh4ldjUXj uWiCTWvDH99C5Yk6k45lIrFakb1ukprDlTfTc5jE5hbkahnBcse9Q== X-ME-Sender: Received: from alvin.alvh.no-ip.org (unknown [179.56.29.253]) by mail.messagingengine.com (Postfix) with ESMTPA id AA8DCE4925; Mon, 16 Apr 2018 13:03:42 -0400 (EDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id A9CF47D6; Mon, 16 Apr 2018 14:03:40 -0300 (-03) Date: Mon, 16 Apr 2018 14:03:40 -0300 From: Alvaro Herrera To: Peter Geoghegan Cc: "Vitaly V. Voronov" , PostgreSQL mailing lists Subject: Re: BUG #15144: *** glibc detected *** postgres: postgres smsconsole [local] SELECT: double free or corruption (!pre Message-ID: <20180416170340.alo53a25f5kus54r@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan wrote: > This now seems unnecessary, since it's already evident from your "bt > full" output that the query involved in the crash was "select count(*) > from pg_buffercache where isdirty". Hmm, so is the Zabbix monitoring running that query frequently? Because, as I recall, pg_buffercache is pretty heavy on the system, since it needs to acquire all the bufmgr locks simultaneously? In other words, this seems a terrible query to be running in zabbix. I have vague memories of somebody submitting a version of this code that returned approximate answers, good enough for monitoring ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services