httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51884] Apache child segfaults when PHP makes LDAP calls
Date Fri, 23 Sep 2011 15:16:26 GMT

--- Comment #1 from Rainer Jung <> 2011-09-23 15:16:26 UTC ---
It looks like you build Apache against Solaris LDAP and PHP against OpenLDAP.
When running the Apache with PHP, the runtime linker will first load system
LDAP (the Apache dependency) and then OpenLDAP (when loading the PHP module).

Now when calling actual LDAP functions from within mod_php, the runtime linker
will not resolve the symbols first in OpenLDAP, but will search all libs in the
original loading order, so system LDAP first. If it finds a symbol there, it
will use it there, if not then in OpenLDAP. This can easily lead to
inconsistencies and crashes.

Check, whether it is true, that your Apache including mod_php loads different
versions of LDAP. Use e.g. Solaris "pldd". Then try to produce a core for the
crash and check with "pstack" or a debugger, where the crash happens, e.g. if
it happens inside an LDAP function. If so, the above situation is likely the

Think about building PHP against the system LDAP. As an alternative, you can
try the so-called "direct" linking (linker flag -Bdirect), which changes the
runtime linker search order. But that might lead to a tedious exercise in
changing build files.



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