Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aeOHN-0008Su-2c for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Mar 2016 14:43:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aeOHL-0004BF-TK for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Mar 2016 14:42:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aeOGj-0003Th-Lq for pgsql-bugs@postgresql.org; Fri, 11 Mar 2016 14:42:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aeOGh-0003e9-65 for pgsql-bugs@postgresql.org; Fri, 11 Mar 2016 14:42:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2BEg7vJ001410; Fri, 11 Mar 2016 09:42:08 -0500 From: Tom Lane To: =?UTF-8?B?RG1pdHJpeSBTYXJhZmFubmlrb3Y=?= cc: =?UTF-8?B?QW5kcmVzIEZyZXVuZA==?= , =?UTF-8?B?cGdzcWwtYnVncw==?= Subject: Re: =?UTF-8?B?UmU6IFtCVUdTXSBTZWdmYXVsdCBpbiBNZW1vcnlDb250ZXh0QWxsb2M=?= In-reply-to: <1457701413.865304335@f395.i.mail.ru> References: <1453890275.241158212@f404.i.mail.ru> <1453891638.831641165@f352.i.mail.ru> <31612.1454801878@sss.pgh.pa.us> <1457701413.865304335@f395.i.mail.ru> Comments: In-reply-to =?UTF-8?B?RG1pdHJpeSBTYXJhZmFubmlrb3Y=?= message dated "Fri, 11 Mar 2016 16:03:33 +0300" Date: Fri, 11 Mar 2016 09:42:07 -0500 Message-ID: <1409.1457707327@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 =?UTF-8?B?RG1pdHJpeSBTYXJhZmFubmlrb3Y=?= writes: >> 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. > I caught another segfault, which is similar to previous. Uh, well: > (gdb) info threads > Id Target Id Frame > 2 Thread 0x7f0e329d2740 (LWP 46202) 0x00007f0e305e972b in __libc_recv (fd=13, buf=buf@entry=0x7f0e32a1b140 , n=n@entry=8192, flags=-1, flags@entry=0) > at ../sysdeps/unix/sysv/linux/x86_64/recv.c:33 > * 1 Thread 0x7f0e32820700 (LWP 46918) MemoryContextAlloc (context=0x0, size=120) at /build/postgresql-9.4-1wOG_M/postgresql-9.4-9.4.6/build/../src/backend/utils/mmgr/mcxt.c:584 There's not enough information here to disclose what it is that's creating a second thread, but you need to find that and make it stop. 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