From: Tom Lane <tgl@sss.pgh.pa.us>
To: sknauss@gmx.de
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16024: segfault ip 0000560103865c60 error 4 in postgres
Date: Wed, 25 Sep 2019 18:45:37 -0400
Message-ID: <28993.1569451537@sss.pgh.pa.us> (raw)
In-Reply-To: <16024-840f55822dee2e9b@postgresql.org>
References: <16024-840f55822dee2e9b@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, sknauss@gmx.de
Subject: Re: BUG #16024: segfault ip 0000560103865c60 error 4 in postgres
In-Reply-To: <28993.1569451537@sss.pgh.pa.us>
References: <16024-840f55822dee2e9b@postgresql.org> <28993.1569451537@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox