Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwQWf-0007kn-6r for pgsql-general@arkaria.postgresql.org; Wed, 20 Feb 2019 11:58:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwQWd-0003Fg-K4 for pgsql-general@arkaria.postgresql.org; Wed, 20 Feb 2019 11:58:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwQWd-0003FZ-79 for pgsql-general@lists.postgresql.org; Wed, 20 Feb 2019 11:58:55 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwQWZ-0004b0-Sn for pgsql-general@postgresql.org; Wed, 20 Feb 2019 11:58:53 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 3D863A11C1; Wed, 20 Feb 2019 12:58:49 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=MBO0001; t=1550663927; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xCqXuTzyEwNj7F6TDvYaABhvPAzUL4sqqjYpGqwkMw4=; b=uSFbF94tcKxPYXsEkHMl8WZGEeJbSEuRzacttABGXqUg9PsoHAQTKeph1WdOVQTHDcYhrz U/4GQuU/M1TDaSIXrVLMgeDt8KRucv4BU5rNW0cp1zaYU68XM4CjqOctFZGv0gYuk8l1kq pWli1Fb4jYNJSd7xNW/bmXsiFXwIjTd3YPEMrd1VnD29vIaqaB9xFJzVb9yo5ynMgL+kYa D3Ut5GMATZWFymvXDalLraG6PD9QwAA2GLRJCKk2XDeYzhaZGhqMmvqm+/mE02BlYatv0K sn+ZFyjRCdsewti+HcLiBiRaogcZ5BVW6fFYiADcmjX+YeUWOquLalZxc6QoMg== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 3g6dY-iOPhwZ; Wed, 20 Feb 2019 12:58:44 +0100 (CET) Message-ID: <82aa3583d44584fa3d3a3761e8df1fa48d68d8e2.camel@cybertec.at> Subject: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes From: Laurenz Albe To: Mike Yeap , pgsql-general@postgresql.org Date: Wed, 20 Feb 2019 12:58:43 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Authentication-Results: default_out X-Rspamd-Queue-Id: 7A8E516D1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mike Yeap wrote: > I have encountered a problem related to LDAP authenticated session with Postgres foreign data wrapper (postgres_fdw). > > The server crashed with following errors and other active server processes are terminated as well: > 2019-02-20 14:53:30.496 SGT [PID=1353 application="" user_name= database= host(port)=] LOG: server process (PID 26306) was terminated by signal 11: Segmentation fault > > 2019-02-20 14:53:30.496 SGT [PID=1353 application="" user_name= database= host(port)=] LOG: terminating any other active server processes > > I can reproduce it in a test server with many other sessions connected: > > 1. login using non-LDAP-authenticated user, query local & foreign tables - OK > 2. login using LDAP-authenticated user, query local table - OK > 3. login using LDAP-authenticated user, query foreign table - ERROR, server crashes with signal 11: Segmentation fault error when I quit the psql session Are the "postgres" executable and libpq linked with the same version of OpenLDAP? Any other extensions installed? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com