httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46884] New: Call to apu_dso_load Fails In apr_ldap_stub.c On Older Versions Of HP-UX
Date Fri, 20 Mar 2009 19:46:21 GMT

           Summary: Call to apu_dso_load Fails In apr_ldap_stub.c On Older
                    Versions Of HP-UX
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: minor
          Priority: P3
         Component: mod_ldap

We noticed the following in the error log on one of our Apache 2.2.11

sasl.c:74: failed assertion `ld != NULL'
[Mon Mar 02 09:25:17 2009] [notice] child pid 25633 exit signal Abort (6)

We quickly determined that the file sasl.c referenced above is part of the
OpenLDAP code base.

After exhaustive research that included running Apache inside gdb, I believe
that I have tracked down the cause in what appears to be a minor bug in
apr_ldap_stub.c.  Observe the following code snippet starting in line 48 of

#if defined(NETWARE)
    modname = "aprldap.nlm";
#elif defined(WIN32)
    modname = "apr_ldap-" APU_STRINGIFY(APU_MAJOR_VERSION) ".dll";
    modname = "apr_ldap-" APU_STRINGIFY(APU_MAJOR_VERSION) ".so";
    rv = apu_dso_load(&symbol, modname, "apr__ldap_fns", pool);
    if (rv == APR_SUCCESS) {
        lfn = symbol;

Because we are on a UNIX platform, the variable modname acquires the value
"".  However, because we are on PA-Risc based HP-UX 11.11, the
Apache build process creates this file with the name "".  This
causes the call to apu_dso_load to fail.  This in turn causes Apache to call
OpenLDAP libraries with improperly initialized parameter(s), which is why we
get the failed assertion in sasl.c in the OpenLDAP code base.

Thankfully, the workaround is trivial.  In SERVERROOT/lib/apr-util-1, I
symlinked to, and LDAP authentication works
without the error described above.

A back trace of how execution gets to this point follows:

(gdb) bt
#0  load_ldap (pool=0x40164020) at ldap/apr_ldap_stub.c:53
#1  0x7ade9d30 in apr_ldap_init (pool=0x40164020, ldap=0x40086cc0, 
    hostname=0x40086d68 "REDACTEDHOSTNAME", portno=636, secure=0, 
    result_err=0x7ab47854) at ldap/apr_ldap_stub.c:82
#2  0xc90b4 in uldap_connection_init (r=0x40164060, ldc=0x40086cc0)
    at util_ldap.c:228
#3  0xc93e8 in uldap_connection_open (r=0x40164060, ldc=0x40086cc0)
    at util_ldap.c:353
#4  0xcaa6c in uldap_cache_checkuserid (r=0x40164060, ldc=0x40086cc0, 
    url=0x400ccfd8 "REDACTEDURL", basedn=0x400cd040 "REDACTEDBASEDN", scope=2, 
    filter=0x7ab455d0 "REDACTEDFILTER", 
    bindpw=0x40165560 "REDACTEDBINDPW", binddn=0x7ab475e0, 
    retvals=0x7ab455cc) at util_ldap.c:954
#5  0xb85d8 in authn_ldap_check_password (r=0x40164060, 
    user=0x40165578 "REDACTEDUSER", password=0x40165560 "REDACTEDPASSWORD")
    at mod_authnz_ldap.c:399
#6  0xbbe40 in authenticate_basic_user (r=0x40164060) at mod_auth_basic.c:230
#7  0xa7a50 in ap_run_check_user_id (r=0x40164060) at request.c:71
#8  0xa8c1c in ap_process_request_internal (r=0x40164060) at request.c:190
#9  0x2064e8 in ap_process_request (r=0x40164060) at http_request.c:280
#10 0x20185c in ap_process_http_connection (c=0x40142538) at http_core.c:190
#11 0x9c768 in ap_run_process_connection (c=0x40142538) at connection.c:43
#12 0x9ce24 in ap_process_connection (c=0x40142538, csd=0x40142448)
    at connection.c:178
#13 0x236dbc in process_socket (p=0x40142408, sock=0x40142448, my_child_num=0, 
    my_thread_num=0, bucket_alloc=0x40162010) at worker.c:544
#14 0x237aa4 in worker_thread (thd=0x400d2c50, dummy=0x40141ff8)
    at worker.c:894
#15 0x7ae81f20 in dummy_worker (opaque=0x400d2c50)
    at threadproc/unix/thread.c:142
#16 0x7aecd290 in __pthread_body () from /usr/lib/libpthread.1

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message