segfault with HEAD

php.internals

Greg Beaver

22 years ago
Hi, When I try to run phpDocumentor with HEAD in win32/apache 1.3 checked out a few minutes ago, I get a segfault, here's a stack trace grabbed from VS: php5ts_debug.dll!execute(_zend_op_array * op_array=0x0109f020, void * * * tsrm_ls=0x010925d8) Line 1270 + 0x15 C php5ts_debug.dll!execute_new_code(void * * * tsrm_ls=0x010925d8) Line 977 + 0x21 C php5ts_debug.dll!zendparse(void * tsrm_ls=0x010925d8) Line 151 + 0x21 C php5ts_debug.dll!compile_file(_zend_file_handle * file_handle=0x0160fbb4, int type=2, void * * * tsrm_ls=0x010925d8) Line 366 + 0x9 C php5ts_debug.dll!zend_execute_scripts(int type=8, void * * * tsrm_ls=0x010925d8, _zval_struct * * retval=0x00000000, int file_count=3, ...) Line 1047 + 0x12 C php5ts_debug.dll!php_execute_script(_zend_file_handle * primary_file=0x0160fbb4, void * * * tsrm_ls=0x010925d8) Line 1645 + 0x1b C php5apache.dll!apache_php_module_main(request_rec * r=0x00ee06f0, int display_source_mode=0, void * * * tsrm_ls=0x010925d8) Line 54 + 0x10 C php5apache.dll!send_php(request_rec * r=0x00ee06f0, int display_source_mode=0, char * filename=0x00ee1768) Line 621 + 0x11 C php5apache.dll!send_parsed_php(request_rec * r=0x00ee06f0) Line 636 + 0xd C I'm a bit new at this, please let me know if I can supply any other useful information. The actual location of the segfault appears to be in zend_execute.c on line 1270 Greg

Greg Beaver

22 years ago
I decided to delete everything and do a new cvs checkout, and now the segfault has disappeared. Not sure what was going on. Thanks, Greg Greg Beaver wrote:

Pierre-Alain Joye

22 years ago
Hi Greg, Do you have a short script to reproduce it or at least the last working line in phpdocumentor? I'm working a bit in ZE2 these days for a project, should be a good exercise, aka a 2nd bugfixe :) hth pierre