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 1h6Eub-0008Kh-KK for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Mar 2019 13:36:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6EuY-0007G4-KB for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Mar 2019 13:36:10 +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 1h6EuY-0007Cy-CT for pgsql-bugs@lists.postgresql.org; Tue, 19 Mar 2019 13:36:10 +0000 Received: from mail.verite.pro ([185.16.44.216]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6EuV-0005lL-FD for pgsql-bugs@lists.postgresql.org; Tue, 19 Mar 2019 13:36:09 +0000 Received: from genius-map.net (verite.pro [195.154.189.246]) by mail.verite.pro (Postfix) with ESMTP id 81D208C002E; Tue, 19 Mar 2019 14:30:49 +0100 (CET) Received: by genius-map.net (Postfix, from userid 1001) id CEFC938A2A1D; Tue, 19 Mar 2019 14:36:03 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: BUG #15704: Possible causes for calling abort () system call during querying database. From: "Daniel Verite" To: dr00487751@techmahindra.com,pgsql-bugs@lists.postgresql.org In-Reply-To: <15704-c7a33dbbab491dce@postgresql.org> Date: Tue, 19 Mar 2019 14:36:02 +0100 Message-Id: <68d57135-8917-465c-81bd-511d77465fe7@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form wrote: > (gdb) bt=20 > #0 0x00007fddc8f664d8 in raise () from /lib64/libc.so.6=20 > #1 0x00007fddc8f695aa in abort () from /lib64/libc.so.6=20 > #2 0x00007fddc8fa092b in ?? () from /lib64/libc.so.6 -> Not sure which > function is called by realloc in the postgres software=20 > #3 0x00007fddc8faa906 in ?? () from /lib64/libc.so.6 -> Not sure which > function is called by realloc in the postgres software=20 > #4 0x00007fddc8faee7b in realloc () from /lib64/libc.so.6=20 > #5 0x00007fddcd5eb0fd in pqCheckInBufferSpace () from > /hegw/postgres/lib/libpq.so.5=20 realloc() can abort when it finds out that the internal data structures controlling memory allocations are corrupted. It should also print an error message to stderr when this occurs. This is generally caused by earlier buffer overruns in user code. The fact that the problem is detected when realloc() is called from postgres code does not imply that the problem originates in postgres code. To locate the bug, it may help to run your application with valgrind. Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite