Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dc0tG-0000Ih-AP for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Jul 2017 02:57:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dc0tF-0006oT-Oa for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Jul 2017 02:57:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dc0sY-0005aQ-Tr for pgsql-bugs@postgresql.org; Mon, 31 Jul 2017 02:56:23 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dc0sV-0002cU-QT for pgsql-bugs@postgresql.org; Mon, 31 Jul 2017 02:56:22 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id ED0EC207D7; Sun, 30 Jul 2017 22:56:17 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sun, 30 Jul 2017 22:56:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=lfqjAgxvL1W+6ikWVg lpfFe3I8yOz3+OHx2NwYykqms=; b=ik3HfF0dEbXADpiWoJ9LX0knc9UPqapnB/ Yj2i5uR+OtRkbWiyBHPuWtyDVUmvkJGAx7ePH4ClzMPqNwPDnTOKzUcrtz6d20i4 kF8U1irOMvpQUn9tlJej1AIBJu95yzreraNj/l2DIyNXYu987Pm8D9HzFzXSN0kY co/M8H9xqMJwe0II7XM8F48JjjYQvhU9/Ac984M4jACdOYyh1Te+kpmamDendcJF lyJyklTw3vsif/pvWIwnVEMhnshquPxMG5CYklRL0iBQBy25973c4eSzFLDh4/3h dD4CYEPK8To1bGR4g/ZtbSZI6cbt9zBzVANFwkm32or6nZEXkH+w== X-ME-Sender: X-Sasl-enc: sDrSw+g5jt6s97FrHMK4SxI5DXCUxTfK1JGyuLI9Hy+z 1501469777 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id A22727E53C; Sun, 30 Jul 2017 22:56:17 -0400 (EDT) Date: Sun, 30 Jul 2017 19:56:16 -0700 From: Andres Freund To: Rick Otten , Robert Haas Cc: PostgreSQL mailing lists Subject: Re: signal 11 segfaults with parallel workers Message-ID: <20170731025616.d4gleu5qlrfckcxr@alap3.anarazel.de> References: <20170728190201.4qcnarf57mq5qapf@alvherre.pgsql> <20250.1501428173@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 > ) > 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 > ) > 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