From: Andres Freund <andres@anarazel.de>
To: Rick Otten <rottenwindfish@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: signal 11 segfaults with parallel workers
Date: Sun, 30 Jul 2017 19:56:16 -0700
Message-ID: <20170731025616.d4gleu5qlrfckcxr@alap3.anarazel.de> (raw)
In-Reply-To: <CAMAYy4LwudXQ326o-xZdf2WZiWrA8iu8S6FNPxcPtvPN0b1xRw@mail.gmail.com>
References: <CAMAYy4+ek5FxjgE3K7aoWv4AD0x7RMoCFbb-D2Tq-4fhKYfKwQ@mail.gmail.com>
<20170728190201.4qcnarf57mq5qapf@alvherre.pgsql>
<CAMAYy4J078FHsWhNk3JAJSoAPfEx4E423op+oAxgZMdFjsba_A@mail.gmail.com>
<20250.1501428173@sss.pgh.pa.us>
<CAMAYy4LaWA8nSWxpgaMp4F-E0uoB2PAstPXidVbQdhq-T7Fagw@mail.gmail.com>
<CAMAYy4LwudXQ326o-xZdf2WZiWrA8iu8S6FNPxcPtvPN0b1xRw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On 2017-07-30 21:05:50 -0400, Rick Otten wrote:
> Ok, I got a core this time at 23:00 when the database went down.
> Here is the basic backtrace:
> (gdb) bt
> #0 MemoryContextAlloc (context=0x0, size=size@entry=1024) at
> /build/postgresql-9.6-5bnRDZ/postgresql-9.6-9.6.3/build/../src/backend/utils/mmgr/mcxt.c:761
> #1 0x0000560b7a518ec4 in SPI_connect () at
> /build/postgresql-9.6-5bnRDZ/postgresql-9.6-9.6.3/build/../src/backend/executor/spi.c:102
> #2 0x00007fec467b9261 in _PG_init () from
> /usr/lib/postgresql/9.6/lib/multicorn.so
> #3 0x0000560b7a717cf2 in internal_load_library
> (libname=libname@entry=0x7ff48208dbf8
> <error: Cannot access memory at address 0x7ff48208dbf8>)
> at
> /build/postgresql-9.6-5bnRDZ/postgresql-9.6-9.6.3/build/../src/backend/utils/fmgr/dfmgr.c:276
> #4 0x0000560b7a7188c0 in RestoreLibraryState (start_address=0x7ff48208dbf8
> <error: Cannot access memory at address 0x7ff48208dbf8>)
> at
Rick: Looks like a buglet in multicorn, which seems to expect to be
called in a valid memory context. Can you reproduce the bug if you use
multicorn, and then in the same session execute the problematic query?
Robert, was it intentional that we don't have a memory context defined
at this point?
Regards,
Andres
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: andres@anarazel.de, rottenwindfish@gmail.com, robertmhaas@gmail.com
Subject: Re: signal 11 segfaults with parallel workers
In-Reply-To: <20170731025616.d4gleu5qlrfckcxr@alap3.anarazel.de>
References: <CAMAYy4+ek5FxjgE3K7aoWv4AD0x7RMoCFbb-D2Tq-4fhKYfKwQ@mail.gmail.com> <20170728190201.4qcnarf57mq5qapf@alvherre.pgsql> <CAMAYy4J078FHsWhNk3JAJSoAPfEx4E423op+oAxgZMdFjsba_A@mail.gmail.com> <20250.1501428173@sss.pgh.pa.us> <CAMAYy4LaWA8nSWxpgaMp4F-E0uoB2PAstPXidVbQdhq-T7Fagw@mail.gmail.com> <CAMAYy4LwudXQ326o-xZdf2WZiWrA8iu8S6FNPxcPtvPN0b1xRw@mail.gmail.com> <20170731025616.d4gleu5qlrfckcxr@alap3.anarazel.de>
* 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