Likely Bug in apr_ldap_stub.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

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

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

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";
#else
    modname = "apr_ldap-" APU_STRINGIFY(APU_MAJOR_VERSION) ".so";
#endif
    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 "apr_ldap-1.so".  However, because we are on PA-Risc based HP-UX
11.11, the Apache build process creates this file with the name
"apr_ldap-1.sl".  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 apr_ldap-1.so to apr_ldap-1.sl, and LDAP authentication works
without the error described above.

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

Thanks,
Patrick

--
Patrick Heckenlively
Patrick.Heckenlively.ctr@xxxxxxx
Northrop Grumman Information Technology




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux