Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E63A8B5DBC8 for ; Mon, 25 Jul 2011 12:58:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 79003-07 for ; Mon, 25 Jul 2011 15:58:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 8F235B5DBC4 for ; Mon, 25 Jul 2011 12:58:06 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 49425348049; Mon, 25 Jul 2011 08:58:05 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VDdbpccIStzr; Mon, 25 Jul 2011 08:58:03 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.11.98]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 41D25348046; Mon, 25 Jul 2011 08:58:03 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 38E326E4C1; Mon, 25 Jul 2011 11:57:59 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: noordsij , Pg Bugs Subject: Re: BUG #6086: Segmentation fault From: Alvaro Herrera To: Robert Haas In-reply-to: References: <201106300732.p5U7W0Bj001711@wwwmaster.postgresql.org> Date: Mon, 25 Jul 2011 11:57:59 -0400 Message-Id: <1311609295-sup-6784@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/171 X-Sequence-Number: 30783 Excerpts from Robert Haas's message of lun jul 25 11:20:55 -0400 2011: > On Sun, Jul 24, 2011 at 5:06 PM, noordsij wrote: > >> Any idea what query triggered this? > > > > Only up to which stored procedure (which itself contains multiple > > statements). > > If you provide a reproducible test case, we can probably get this fixed. > > Otherwise, we probably can't. But why is libxml calling pthread_mutex_lock and such? Unless libxml is making itself multithread inside a backend, that shouldn't matter -- much less cause a crash. Note (to the OP) that it's totally unexpected to have a Postgres backend become multithreaded, and has been shown to be dangerous when a library made it so. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support