pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Segmentation fault with PG-12
Date: Tue, 08 Oct 2019 11:24:21 -0400
Message-ID: <21700.1570548261@sss.pgh.pa.us> (raw)
In-Reply-To: <VisenaEmail.112.19e4492494617f72.16dabe975f8@tc7-visena>
References: <VisenaEmail.112.19e4492494617f72.16dabe975f8@tc7-visena>

Andreas Joseph Krogh <andreas@visena.com> writes:
> Will running a debug-enabled build slow things noticably down?

gcc promises that the generated code is the same with or without debug.
I think clang does too.  With other compilers you may pay some penalty.

> Is there a way 
> to make it dump a stack-trace (or back-trace in C-land?) on sig11?

You should be able to get a core file from which you can extract a
stack trace (and other info) after the fact.

https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <21700.1570548261@sss.pgh.pa.us>
Permalink:  ../21700.1570548261@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21700.1570548261@sss.pgh.pa.us

 · 

reply

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andreas@visena.com
  Subject: Re: Segmentation fault with PG-12
  In-Reply-To: <21700.1570548261@sss.pgh.pa.us>
  References: <VisenaEmail.112.19e4492494617f72.16dabe975f8@tc7-visena> <21700.1570548261@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