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 1f4MQ7-0006jC-GD for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Apr 2018 08:08:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f4MQ5-0004F8-G3 for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Apr 2018 08:08:25 +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.89) (envelope-from ) id 1f4M0e-0002uO-Lx for pgsql-bugs@lists.postgresql.org; Fri, 06 Apr 2018 07:42:08 +0000 Received: from forward3p.cmail.yandex.net ([77.88.31.18]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4M0a-0006fr-Fj for pgsql-bugs@lists.postgresql.org; Fri, 06 Apr 2018 07:42:07 +0000 Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward3p.cmail.yandex.net (Yandex) with ESMTP id 1AD0D20EFF for ; Fri, 6 Apr 2018 10:42:02 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ToleCm6SKb-g1KWW9eY; Fri, 06 Apr 2018 10:42:01 +0300 Received: by web56o.yandex.ru with HTTP; Fri, 06 Apr 2018 10:42:01 +0300 From: Vitaly V. Voronov To: PostgreSQL mailing lists In-Reply-To: References: <152296798225.31227.6026116154621550125@wrigleys.postgresql.org> Subject: Re: BUG #15144: *** glibc detected *** postgres: postgres smsconsole [local] SELECT: double free or corruption (!pre MIME-Version: 1.0 Message-Id: <3343581523000521@web56o.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 06 Apr 2018 10:42:01 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, 06.04.2018, 02:18, "Peter Geoghegan" : > On Thu, Apr 5, 2018 at 3:39 PM, PG Bug reporting form > wrote: >>  We have problem at our Master server (second time). >>  From first time, we update CentOS to latest version (6.9) >>  But today we have such bug: >>  *** glibc detected *** postgres: postgres smsconsole [local] SELECT: double >>  free or corruption (!prev): 0x00000000022529e0 *** > > Can you get a full stack trace from a coredump? > > https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD > > It would be particularly helpful if you were able to collect a > coredump, and run "p *debug_query_string" from GDB. > > It would also be nice to be able to get the query string from some > other source, such as the server log. Perhaps it can be correlated to > something? Sorry. I can't do this. Because, 1s - this is production and 2nd - it had been initialized as replica. We use 2 server, and this server (with error) now initialized as secondary. We use pgpool for switching servers. And i posted full log from Postgres logs. All other logs is clear. > >>  ======= Backtrace: ========= >>  /lib64/libc.so.6(+0x75dee)[0x7f6b19433dee] >>  /lib64/libc.so.6(+0x78c80)[0x7f6b19436c80] >>  postgres: postgres smsconsole [local] >>  SELECT(tuplestore_end+0x17)[0x808887] >>  postgres: postgres smsconsole [local] >>  SELECT(ExecEndFunctionScan+0x75)[0x5e94e5] >>  postgres: postgres smsconsole [local] >>  SELECT(standard_ExecutorEnd+0x2e)[0x5cbaae] > > Offhand, I suspect that this could be a bug that is analogous to the > one just fixed within tuplesort, by > c2d4eb1b1fa252fd8c407e1519308017a18afed1. There is a fairly long > history of these kinds of bugs, including one or two in tuplestore > that I can recall from memory. We have zabbix monitoring, which actively using pg_stat_* and pg_buffercache. Can this cause such problem? Can you answer, when such changes will be released in production? > > -- > Peter Geoghegan Thanks for you answers!