httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor Murphy <chuckie...@hotmail.com>
Subject [users@httpd] Segmentation fault when calling ldap_connect from PHP page
Date Wed, 26 Apr 2006 10:17:34 GMT
Hi, 
 I'm trying to connect to an LDAP server from a PHP page. 
If I use the php cli to execute the page, 
everything works okay. However, when I access the same page
through httpd, I get a blank response and the 
error_log contains an entry like
child pid 3552 exit signal Segmentation fault (11). The page 
just looks like

<?php
$ldapServer = "myhost";
echo "<p>Connecting</p>\n";
$ds=ldap_connect($ldapServer);
echo "<p>Disconnecting</p>\n";
ldap_close($ds);
?>

Any ideas?

/Conor

gdb where on the core file gives
#0  0x00002aaaab1f2151 in ldap_unbind_ext () 
from /usr/lib64/libldap-2.3.so.0
#1  0x00002aaab282e38e in zm_startup_ldap () from 
/usr/lib64/php/modules/ldap.so
#2  0x00002aaab0aaffae in list_entry_destructor () from
/etc/httpd/modules/libphp5.so
#3  0x00002aaab0aaf551 in zend_hash_del_key_or_index () from
/etc/httpd/modules/libphp5.so
#4  0x00002aaab0ab0229 in _zend_list_delete () 
from /etc/httpd/modules/libphp5.so
#5  0x00002aaab282dc8b in zif_ldap_unbind () 
from /usr/lib64/php/modules/ldap.so
#6  0x00002aaab0acea6e in execute () 
from /etc/httpd/modules/libphp5.so
#7  0x00002aaab0ac03dc in execute () 
from /etc/httpd/modules/libphp5.so
#8  0x00002aaab0aa37ae in zend_execute_scripts () 
from /etc/httpd/modules/libphp5.so


The server is running FC5 (2.6.16-1.2096_FC5 #1 SMP 
Wed Apr 19 05:14:26 EDT 2006 x86_64)

/usr/sbin/httpd -V
Server version: Apache/2.2.0
Server built:   Feb 11 2006 17:41:05
Server's Module Magic Number: 20051115:0
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/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"



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message