httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heckenlively, Patrick (Contractor) (DLIS)" <>
Subject [users@httpd] Likely Bug in apr_ldap_stub.c
Date Mon, 16 Mar 2009 15:36:11 GMT

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

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 apr_ldap_stub.c:

#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 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.

Am I missing something, or should I report this as a bug in bugzilla?


Patrick Heckenlively
Northrop Grumman Information Technology

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message