You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/04/30 18:32:21 UTC

DO NOT REPLY [Bug 28716] New: - Child dies when LDAP auth is enabled

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28716>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28716

Child dies when LDAP auth is enabled

           Summary: Child dies when LDAP auth is enabled
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: mod_auth_ldap
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: somme@oslo.westerngeco.slb.com


I have set up a web server that works OK when ldap authentication is not
enabled. When I enable it, I am prompted for the userid/password but then
consistently just gets 'The document contains no data'. Below I have added 
a lot of config information that might be useful for understanding the problem
and hopefully also in helping me make this work:

error log output:
[Fri Apr 30 16:04:19 2004] [warn] Init: Session Cache is not configured [hint:
SSLSessionCache]
[Fri Apr 30 16:04:19 2004] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Fri Apr 30 16:04:19 2004] [notice] LDAP: SSL support unavailable
[Fri Apr 30 16:04:21 2004] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Fri Apr 30 16:04:21 2004] [notice] LDAP: SSL support unavailable
[Fri Apr 30 16:04:21 2004] [notice] Apache/2.0.48 (Unix) DAV/2 mod_ssl/2.0.48
OpenSSL/0.9.7d configured -- resuming normal operations
[Fri Apr 30 16:07:22 2004] [notice] child pid 4430 exit signal Segmentation
fault (11)
[Fri Apr 30 16:08:10 2004] [notice] child pid 4431 exit signal Bus error (10)

xxxx# uname -a
SunOS xxxx 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-4

All recommended Solaris patches added.


httpd output:
------------
Server version: Apache/2.0.48
Server built:   Apr 30 2004 16:14:03
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/nett/superv/sv/apache_vsl104/install/httpd-2.0.48"
 -D SUEXEC_BIN="/nett/superv/sv/apache_vsl104/install/httpd-2.0.48/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  util_ldap.c
  mod_auth_ldap.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_dav.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_dav_fs.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

ldd output:
-----------
        libaprutil-0.so.0 =>    
/apps/basecamp/3rdParty/apache/httpd-2.0.48/lib/libaprutil-0.so.0
        libldap.so.2 => 
/apps/basecamp/3rdParty/openldap/openldap-2.1.30/lib/libldap.so.2
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libssl.so.0.9.7 =>      
/apps/basecamp/3rdParty/openssl/openssl-0.9.7d/lib/libssl.so.0.9.7
        libcrypto.so.0.9.7 =>   
/apps/basecamp/3rdParty/openssl/openssl-0.9.7d/lib/libcrypto.so.0.9.7
        liblber.so.2 => 
/apps/basecamp/3rdParty/openldap/openldap-2.1.30/lib/liblber.so.2
        libexpat.so.0 =>        
/apps/basecamp/3rdParty/apache/httpd-2.0.48/lib/libexpat.so.0
        libapr-0.so.0 =>        
/apps/basecamp/3rdParty/apache/httpd-2.0.48/lib/libapr-0.so.0
        libsendfile.so.1 =>      /usr/lib/libsendfile.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libthread.so.1 =>        /usr/lib/libthread.so.1
        /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
        /usr/platform/SUNW,Ultra-4/lib/libmd5_psr.so.1


truss outout:
-------------
read(9, "01\004\004\0", 6)                      = 6
time()                                          = 1083337431
time()                                          = 1083337431
write(9, " 0 F020103 ` A02010304 -".., 72)      = 72
poll(0xFFBFCB40, 1, -1)                         = 1
read(9, " 0\f020103 a07\n", 8)                  = 8
read(9, "01\004\004\0", 6)                      = 6
time()                                          = 1083337431
    Incurred fault #5, FLTACCESS  %pc = 0x0002FD34
      siginfo: SIGBUS BUS_ADRALN addr=0xFEAA14BC
    Received signal #10, SIGBUS [caught]
      siginfo: SIGBUS BUS_ADRALN addr=0xFEAA14BC


gdb output:
-----------
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...
Core was generated by `/apps/basecamp/3rdParty/apache/httpd-2.0.48/bin/httpd -k
start -d /apps/basecam'.
Program terminated with signal 10, Bus Error.
#0  0x2fd34 in util_ald_cache_insert (cache=0xfeaa01b0, payload=0xffbfd700) at
util_ldap_cache_mgr.c:396
396         node->add_time = apr_time_now();
(gdb) bt
#0  0x2fd34 in util_ald_cache_insert (cache=0xfeaa01b0, payload=0xffbfd700) at
util_ldap_cache_mgr.c:396
#1  0x2e9d4 in util_ldap_cache_checkuserid (r=0x17cf88, ldc=0x12bc40, url=0x1
"T", basedn=0x17e5a0 "somme", scope=0, 
    attrs=0x164d60, filter=0xffbfd818 "(&(objectclass=*)(alias=somme))",
bindpw=0x17e56e "Zaiberhaip4mi", binddn=0xffbfd810, 
    retvals=0xffbfd80c) at util_ldap.c:923
#2  0x30748 in mod_auth_ldap_check_user_id (r=0x17cf88) at mod_auth_ldap.c:366
#3  0x8d15c in ap_run_check_user_id (r=0x17cf88) at request.c:112
#4  0x8daa8 in ap_process_request_internal (r=0x17cf88) at request.c:235
#5  0x534dc in ap_process_request (r=0x17cf88) at http_request.c:286
#6  0x4e8e0 in ap_process_http_connection (c=0x179030) at http_core.c:293
#7  0x81320 in ap_run_process_connection (c=0x179030) at connection.c:85
#8  0x8160c in ap_process_connection (c=0x179030, csd=0x178f78) at
connection.c:211
#9  0x74418 in child_main (child_num_arg=0) at prefork.c:694
#10 0x74598 in make_child (s=0xde1c8, slot=0) at prefork.c:788
#11 0x74614 in startup_children (number_to_start=1) at prefork.c:806
#12 0x749f4 in ap_mpm_run (_pconf=0x1, plog=0x118db8, s=0xde1c8) at
prefork.c:1022
#13 0x7adfc in main (argc=5, argv=0xffbffdf4) at main.c:660

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org