ID: 38882 Updated by: [EMAIL PROTECTED] Reported By: d dot wynne at ljmu dot ac dot uk -Status: Open +Status: Feedback Bug Type: LDAP related Operating System: SuSE 10.1 x86_64 PHP Version: 4.4.4 New Comment:
Does valgrind show you anything useful? A segfault somewhere in OpenLDAP doesn't look like PHP problem so far. Previous Comments: ------------------------------------------------------------------------ [2006-09-29 08:53:59] d dot wynne at ljmu dot ac dot uk This is my php-4.4.4 --without-mysql variant. The production apache module I normally use obviously has MySQL support Using browser to test MySQL connections PEAR DB Error: extension not found Standard Fatal error: Call to undefined function: mysql_connect() in /home/ftpserver/www/homepage/staff/cmsdwynn/php/mysqlconn.php on line 2 Backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47225668576928 (LWP 31755)] 0x00002af39405c481 in ldap_unbind_ext () from /usr/lib64/libldap-2.3.so.0 (gdb)bt #0 0x00002af39405c481 in ldap_unbind_ext () from /usr/lib64/libldap-2.3.so.0 #1 0x00002af396202c9e in _close_ldap_link (rsrc=<value optimized out>) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/ldap/ldap.c:175 #2 0x00002af3962c46fe in list_entry_destructor (ptr=<value optimized out>) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend_list.c:177 #3 0x00002af3962c403a in zend_hash_del_key_or_index (ht=0x2af396449268, arKey=0x0, nKeyLength=0, h=6, flag=<value optimized out>) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend_hash.c:529 #4 0x00002af3962c4907 in _zend_list_delete (id=<value optimized out>) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend_list.c:56 #5 0x00002af3962b4a76 in _zval_ptr_dtor (zval_ptr=0x555555931330) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend_execute_API.c:289 #6 0x00002af3962c2688 in zend_hash_clean (ht=0x5555559030e8) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend_hash.c:584 #7 0x00002af3962d2d69 in execute (op_array=0x555555911b98) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend_execute.c:1736 #8 0x00002af3962d0a29 in execute (op_array=0x5555558e3ff8) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend_execute.c:1719 #9 0x00002af3962bd2a9 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/Zend/zend.c:934 #10 0x00002af39628ee57 in php_execute_script (primary_file=0x7fff16f175d0) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/main/main.c:1752 #11 0x00002af3962dafc1 in php_handler (r=0x5555558e81d8) at /home/cmstechs/cmsdwynn/SuSE/php-4.4.4/sapi/apache2handler/sapi_apache2.c:581 #12 0x000055555558c6ba in ap_run_handler () from /usr/sbin/httpd2-prefork #13 0x000055555558faa2 in ap_invoke_handler () from /usr/sbin/httpd2-prefork #14 0x000055555559a1c8 in ap_process_request () from /usr/sbin/httpd2-prefork #15 0x0000555555597409 in ap_register_input_filter () from /usr/sbin/httpd2-prefork #16 0x0000555555593772 in ap_run_process_connection () from /usr/sbin/httpd2-prefork #17 0x000055555559dc09 in ap_graceful_stop_signalled () from /usr/sbin/httpd2-prefork #18 0x000055555559de0e in ap_graceful_stop_signalled () from /usr/sbin/httpd2-prefork #19 0x000055555559e911 in ap_mpm_run () from /usr/sbin/httpd2-prefork #20 0x0000555555579cb8 in main () from /usr/sbin/httpd2-prefork (gdb) ------------------------------------------------------------------------ [2006-09-28 16:16:36] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2006-09-28 16:08:29] d dot wynne at ljmu dot ac dot uk Now I've implicitly rebuilt php-4.4.4 --without-mysql. Installed and tested that indeed MySQL connections fail, and they do. Still Segmentation fault on ldap_connect. ------------------------------------------------------------------------ [2006-09-27 16:16:17] d dot wynne at ljmu dot ac dot uk Right I've now compiled MySQL from source code. I'm using the mysql-5.0.18-src RPM as this matches exacly the binary RPM that comes with SuSE 10.1. Configure MySQL: ./configure --prefix=/usr --without-yassl --enable-thread-safe-client --with-gnu-ld --without-server --with-named-curses-libs=/usr/lib64/curses/libcurses.a --without-yassl I believe is the significant part. Built & installed Checked the libraries & header files are in the right place: ldconfig Re-built php from scratch. Configure as before. Installed & restarted Apache2. Same result. Segmentation fault on ldap_connect. Please help. ------------------------------------------------------------------------ [2006-09-20 09:54:42] d dot wynne at ljmu dot ac dot uk Upgraded all 3 MySQl packages to version 5.0.24a. Re-built php-4.4.4 from scratch by deleting top level directoty and re-extracting tar file. Ran configure as beforw. Built no problem. make install /etc/init.d/apache2 restart Same problem when using ldap_connect: [Wed Sep 20 10:38:25 2006] [notice] child pid 21744 exit signal Segmentation fault (11) I can try and get a backtrace if you think it would help. Never done this before but the instructions seem straightforward. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38882 -- Edit this bug report at http://bugs.php.net/?id=38882&edit=1