Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2005 18:25:46 -0500
From:      Brian Fundakowski Feldman <green@freebsd.org>
To:        Johan =?iso-8859-1?Q?Str=F6m?= <johan@stromnet.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Apache2, mod_python and nss_ldap: Coredump...
Message-ID:  <20051109232546.GP37350@green.homeunix.org>
In-Reply-To: <89E441A8-CC50-4F11-BE3E-AE6C384F5305@stromnet.org>
References:  <89E441A8-CC50-4F11-BE3E-AE6C384F5305@stromnet.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.                       \,,,,,,,,,,,,,,,,,,,,,,\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051109232546.GP37350>