From owner-freebsd-stable@FreeBSD.ORG Wed Nov 9 23:25:48 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C8C2916A41F; Wed, 9 Nov 2005 23:25:47 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.4/8.13.1) with ESMTP id jA9NPl7W017153; Wed, 9 Nov 2005 18:25:47 -0500 (EST) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.4/8.13.1/Submit) id jA9NPkra017152; Wed, 9 Nov 2005 18:25:46 -0500 (EST) (envelope-from green) Date: Wed, 9 Nov 2005 18:25:46 -0500 From: Brian Fundakowski Feldman To: Johan =?iso-8859-1?Q?Str=F6m?= Message-ID: <20051109232546.GP37350@green.homeunix.org> References: <89E441A8-CC50-4F11-BE3E-AE6C384F5305@stromnet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89E441A8-CC50-4F11-BE3E-AE6C384F5305@stromnet.org> User-Agent: Mutt/1.5.11 Cc: freebsd-stable@freebsd.org Subject: Re: Apache2, mod_python and nss_ldap: Coredump... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 23:25:48 -0000 On Wed, Nov 09, 2005 at 10:20:26AM +0100, Johan Ström wrote: > Hi > > I got a new 6.0-STABLE box. Rebuilt kernel and world 2 hours ago > (against RELENG_6), so it should be pretty new. > > Im trying to have apache 2.0.55, mod_python 3.1.4 and nss_ldap 239, > all the latest from ports. > The problem I have is this: If i have LoadModule python_module > libexec/apache2/mod_python.so in my httpd.conf, and at the same time > have either > "group: files ldap" and/or "passwd: files ldap" in my nsswitch.conf, > i get Segfaults. Example: > > root@elfi2:~$ apachectl configtest > Syntax OK > Segmentation fault (core dumped) > root@elfi2:~$ > > However, apache itself is running fine, even using mod_python. > If i remove either the LoadModule or both the ldap-entrys in > nsswitch, the segfaults dissappear. I've compiled httpd with debug > symbols, and this is what I found with gdb (httpd -t is same as > apachectl configtest): > [...] > (gdb) where > #0 0x00000000 in ?? () > #1 0x28be6744 in ?? () from /usr/local/lib/nss_ldap.so.1 > #2 0x28bf2200 in ?? () from /usr/local/lib/nss_ldap.so.1 Can you try making sure that nss_ldap gets built and linked with -g, and is not stripped, so that all symbols and debug info are preserved as well? Looks to be atexit(3)-related, from here, but the symbols should clear things up. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\