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 1h4dnu-0002nc-N2 for pgsql-general@arkaria.postgresql.org; Fri, 15 Mar 2019 03:46:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h4dnt-0003sW-Do for pgsql-general@arkaria.postgresql.org; Fri, 15 Mar 2019 03:46:41 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4dns-0003sP-UY for pgsql-general@lists.postgresql.org; Fri, 15 Mar 2019 03:46:41 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4dnq-0003Jc-9e for pgsql-general@postgresql.org; Fri, 15 Mar 2019 03:46:40 +0000 Received: by mail-pg1-x543.google.com with SMTP id r124so5452435pgr.3 for ; Thu, 14 Mar 2019 20:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=yQvTxCXQcOCJUpBnaMFdwZEn8iF1KukbtJr2EPCmsjY=; b=RnQgNwY+Q+7OEeaYNSCYPPjsYDzguBQl21G13qXpMDOUUTD6C0n09Mm/e2eQYpS6hn XuFsBZr8xtGGQzsiqFYYup6t4u75imfs+2EMbiF5ptLdap4Sy1bs//xADGPKx1ImJvzo Cu5UT8u34feyVIswKyMksAnFqem+9eLkteAyM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=yQvTxCXQcOCJUpBnaMFdwZEn8iF1KukbtJr2EPCmsjY=; b=th8yylqaoXVX1n5yMpknHyHqg7yeoUQOcYEqXRoJZqLF7MsQpOaiYUNt8prnOsOIxY CDeO+eWH/CzesE+SXmTj2CUbx/6At2m5WktRvQTpL7CoNTipqUV/KkKB7efcggMjs7mC E+GOUIpTcK58X92gv6otKK/zK3Zdf9/0HAy2GnM0KW6v4+BoEmT4ZbTLALjNsa5KOqk2 q0FnXAYBwOzn8rQZd5x5U275HwzHNvD94Oi1yeGXqLIhywj8Lx6NRBCihMoYZVvkzWia fPIl/C+OmScTRqwjnztffHwtht20KAyJJKsAg8/sg88ODFlwV3ZZcelcdM8tmwOAUGwX TJtQ== X-Gm-Message-State: APjAAAWrDYsjT9HHHH4L9EhBuRi1EqWam1E1CbSnUdB93TZGNfZG7AFV xPJ4DZ5flRULVofh6UwMd6o91Q== X-Google-Smtp-Source: APXvYqy00cq4eNYIVZZAFZ6YxZxWAATQpex3G6IFoQbtgGRMOxNeFAvc9TGwoH60PA4rnyX/2M+Eag== X-Received: by 2002:a17:902:2702:: with SMTP id c2mr1848315plb.239.1552621595385; Thu, 14 Mar 2019 20:46:35 -0700 (PDT) Received: from rfd.leadboat.com (108-233-125-46.lightspeed.sntcca.sbcglobal.net. [108.233.125.46]) by smtp.gmail.com with ESMTPSA id g24sm929504pfd.7.2019.03.14.20.46.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2019 20:46:33 -0700 (PDT) Date: Thu, 14 Mar 2019 20:46:31 -0700 From: Noah Misch To: Mike Yeap Cc: Thomas Munro , Tom Lane , Laurenz Albe , pgsql-general@postgresql.org Subject: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes Message-ID: <20190315034631.GA2607362@rfd.leadboat.com> References: <6823.1551193055@sss.pgh.pa.us> <14938.1551220103@sss.pgh.pa.us> <20190307031954.GA1797215@rfd.leadboat.com> <20190314054254.GC2512737@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Mar 15, 2019 at 12:10:59AM +0800, Mike Yeap wrote: > Hi Noah, below is the output from one of the servers having this issue: > > $ echo "select pg_backend_pid(); load 'dblink'; select pg_sleep(100)" | psql -X & > [1] 9731 > > $ select pg_backend_pid(); load 'dblink'; select pg_sleep(100) >  pg_backend_pid > ---------------- >            9732 > (1 row) > > LOAD > > $ gdb --batch --pid 9732 -ex 'info sharedlibrary ldap' > > warning: .dynamic section for "/lib64/libldap-2.4.so.2" is not at the expected address (wrong library or version mismatch?) > > warning: .dynamic section for "/lib64/liblber-2.4.so.2" is not at the expected address (wrong library or version mismatch?) > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib64/libthread_db.so.1". > 0x00007f1e7592dcf3 in __epoll_wait_nocancel () from /lib64/libc.so.6 > From                To                  Syms Read   Shared Object Library > 0x00007f1e7637d0f8  0x00007f1e763ae51c  Yes (*)     /lib64/libldap-2.4.so.2 > 0x00007f1d9f2c16d0  0x00007f1d9f2f5ae4  Yes (*)     /lib64/libldap_r-2.4.so.2 > (*): Shared library is missing debugging information. Thanks. That rules out my guess. I don't have another guess at this time.