pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitriy Sarafannikov <dimon99901@mail.ru>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Re[2]: [BUGS] Segfault in MemoryContextAlloc
Date: Sat, 06 Feb 2016 18:37:58 -0500
Message-ID: <31612.1454801878@sss.pgh.pa.us> (raw)
In-Reply-To: <1453891638.831641165@f352.i.mail.ru>
References: <1453890275.241158212@f404.i.mail.ru>
	<20160127103533.GA17919@awork2.anarazel.de>
	<1453891638.831641165@f352.i.mail.ru>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

=?UTF-8?B?RG1pdHJpeSBTYXJhZmFubmlrb3Y=?= <dimon99901@mail.ru> writes:
>> That's, uh, weird. TopTransactionContext should never be NULL here. This
>> is with a stock 9.4.5, without any further extensions configured?

> It is a stock 9.4.5 with pg_buffercache (1.0) and plv8 (1.4.0) installed extensions.

Both this and the other behavior you reported sure seem like "can't
happen" situations.  I do have a theory though: I think you are doing
something that is spawning multiple threads inside the backend, and then
the backend logic goes nuts because it's expecting to be single-threaded.

pg_buffercache wouldn't do that, and a quick google search suggests that
V8 knows nothing of threads either.  Have you got anything else going
on in there?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <31612.1454801878@sss.pgh.pa.us>
Permalink:  ../31612.1454801878@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31612.1454801878@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dimon99901@mail.ru, andres@anarazel.de
  Subject: Re: [BUGS] Segfault in MemoryContextAlloc
  In-Reply-To: <31612.1454801878@sss.pgh.pa.us>
  References: <1453890275.241158212@f404.i.mail.ru> <20160127103533.GA17919@awork2.anarazel.de> <1453891638.831641165@f352.i.mail.ru> <31612.1454801878@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