Hi All,
I've just come across a problem with my Drupal 7 installation when trying to add a new Theme (Zen) using the "+ Install new theme" feature as part of the Appearance admin configuration.
My System: - CentOS 5.5 - PHP 5.2.10 (installed from CentOS testing) - Apache 2.2.3
Just in case I can't quite explain myself fully on how to recreate it here is a demo: http://www.youtube.com/watch?v=K78koI0ovJ4
How to recreate: * Open the appearance tab in the Drupal 7 administration * click "+ Install new theme" * Paste the url of the Zen theme into the text box (this bug also happens if you upload the package using the "choose file" option) * Click "Install" and you will be presented with the authorize.php screen prompting you for your ftp login and password * click "Continue"
Then you will get an empty response.
Checking in the apache logs I get a line like the following: [Thu Nov 18 15:52:07 2010] [notice] child pid 7412 exit signal Segmentation fault (11)
As one of my colleagues suggested I then ran apache in gdb so that we could get a backtrace and see what the problem is. We ran:
gdb --args httpd -X 2>&1 | tee gdb-httpd.txt
the gdb-httpd.txt file has been attached. the only things that I did were to run the program and then when it crashed i ran "bt full" and then just "bt", the output of the latter is included below. You will see that the error is caused by the internal php function zif_call_user_func_array and it may not be relevant but we notice that the "this_ptr" is set to null which might be what is causing the problem.
If someone could please let me know what the best way to resolve this issue is that would be very helpful. Also if you would like to request any further information please let me know what to do and I will cooperate fully to try and get this issue resolved.
Kind Regards, Andrew Manson Graticule www.graticule.com
The backtrace:
#0 0xb7bc3b46 in zif_call_user_func_array (ht=2, return_value=0xb4ae9660, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /usr/src/debug/php-5.2.10/ext/standard/basic_functions.c:5180 #1 0xb7cabf40 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfff8bd8) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:200 #2 0xb7c9fa78 in execute (op_array=0xb4f94180) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #3 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfff8f28) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #4 0xb7c9fa78 in execute (op_array=0xb4f93ef8) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #5 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfff92f8) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #6 0xb7c9fa78 in execute (op_array=0xb4b86c88) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #7 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffa058) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #8 0xb7c9fa78 in execute (op_array=0xb4b86bb8) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #9 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffa6b8) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #10 0xb7c9fa78 in execute (op_array=0xb4b824b0) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #11 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffafd8) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #12 0xb7c9fa78 in execute (op_array=0xb4b82310) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #13 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffb508) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #14 0xb7c9fa78 in execute (op_array=0xb4b81ca0) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #15 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffb738) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #16 0xb7c9fa78 in execute (op_array=0xb4b81bd0) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #17 0xb7cab90e in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffc358) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:234 #18 0xb7c9fa78 in execute (op_array=0xb764a920) at /usr/src/debug/php-5.2.10/Zend/zend_vm_execute.h:92 #19 0xb7c7e7ea in zend_execute_scripts (type=8, retval=<value optimized out>, file_count=3) at /usr/src/debug/php-5.2.10/Zend/zend.c:1134 #20 0xb7c38a26 in php_execute_script (primary_file=0xbfffe608) at /usr/src/debug/php-5.2.10/main/main.c:2025 #21 0xb7d07aad in php_handler (r=0xb4f30108) at /usr/src/debug/php-5.2.10/sapi/apache2handler/sapi_apache2.c:632 #22 0x00dbba4d in ap_run_handler () #23 0x00dbf413 in ap_invoke_handler () #24 0x00dcb52e in ap_process_request () #25 0x00dc82cf in ?? () #26 0x00dc394d in ap_run_process_connection () #27 0x00dc3a4c in ap_process_connection () #28 0x00dcfe14 in ?? () #29 0x00dd0084 in ?? () #30 0x00dd0f99 in ap_mpm_run () #31 0x00da7157 in main ()