# segfault with HEAD

- Thread: https://externals.io/message/7666
- Original archive: https://news-web.php.net/php.internals/7666
- Started by Greg Beaver on 2004-02-09T15:50:27+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #7666 — Greg Beaver — 2004-02-09T15:50:27+00:00

URL: https://externals.io/message/7666#7666

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

---

## #7669 — Greg Beaver — 2004-02-09T16:20:44+00:00

URL: https://externals.io/message/7666#7669 · In reply to: #7666

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:

> 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

---

## #7679 — Pierre-Alain Joye — 2004-02-09T18:44:19+00:00

URL: https://externals.io/message/7666#7679 · In reply to: #7666

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
