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 1iDG2s-0000ur-Bk for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Sep 2019 22:46:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDG2r-0003up-2b for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Sep 2019 22:46:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDG2q-0003ui-Ot for pgsql-bugs@lists.postgresql.org; Wed, 25 Sep 2019 22:46:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iDG2Y-00072d-Un for pgsql-bugs@lists.postgresql.org; Wed, 25 Sep 2019 22:45:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x8PMjbJn028994; Wed, 25 Sep 2019 18:45:38 -0400 From: Tom Lane To: sknauss@gmx.de cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16024: segfault ip 0000560103865c60 error 4 in postgres In-reply-to: <16024-840f55822dee2e9b@postgresql.org> References: <16024-840f55822dee2e9b@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 25 Sep 2019 22:31:33 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28992.1569451537.1@sss.pgh.pa.us> Date: Wed, 25 Sep 2019 18:45:37 -0400 Message-ID: <28993.1569451537@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > Using ubuntu packages 9.6.15 from postgresql.org. Recently a unchanged > routine crashes a postgres backend process most of the time (or always?) > with a segmentation fault. > Call stack below. Please let me know what further details can help you. The > core is 3.6G, I can provide it on request. A self-contained test case would be much handier. The stack trace provides a suggestive hint about what you're doing: > #15 0x0000564007ab5455 in exec_simple_query (query_string=0x5640089ed678 > "DROP TABLE if EXISTS loose;CREATE UNLOGGED TABLE loose (id bigint, node > bigint, lat float, lon float, x integer, y integer);INSERT INTO loose SELECT > id, nodes[1] AS node FROM planet_osm_ways WHERE ARR"...) > at ./build/../src/backend/tcop/postgres.c:1109 but that's not enough to reproduce the problem. Note that in psql, the way to submit a multi-query string like that is to backslash-escape all but the last semicolon: DROP TABLE if EXISTS loose\;CREATE UNLOGGED ... y integer)\;INSERT INTO ... That might be necessary to reproduce the problem, or not. regards, tom lane