# PHP6 - x64 SegFault

- Thread: https://externals.io/message/27665
- Original archive: https://news-web.php.net/php.internals/27665
- Started by Chris Malton on 2007-01-26T07:27:17+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

---

## #27665 — Chris Malton — 2007-01-26T07:27:17+00:00

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

Hi,
	I'm new to the newsgroup and I'm trying to debug PHP 6 on a test server
(x64 architecture).  However, for some unknown reason, it segfaults if I
try to run it with any files that work in PHP 5.2.0.

The segfault is at the end of most scripts, at the beginning of others.

The backtrace looks like this:
#0 _zend_mm_free_int (heap=0xb30330, p=0x377cff39f390d7e)
	at /root/php6/Zend/zend_alloc.c:1522
#1 0x00000000006a5cdf in destroy_op_array (op_array=0x2ab2aef29ff8)
	at /root/php6/Zend/zend-opcode.c:265
#2 0x00000000006b06d5 n zend_execute_scripts (type=8,retval=<value
optimised out>, file_count=3)
	at /root/php6/ZendSend.c:1665
#3 0x0000000000662763 in php_execute_script (primary_file=0x7ffffbb9d360)
	at /root/php6/main/main.c:1949
#4 0x000000000073d1c4 in main (argc=2, argv=0x7ffffbb9f5c8)
	at /root/php6/sapi/cgi/cgi_main.c:1656

This looks like a Zend issue trying to clean up after the running of a
program.

Can somebody please find a fix?  I'm willing to test a patch first
before it is committed.

Chris

---

## #27666 — Antony Dovgal — 2007-01-26T08:58:40+00:00

URL: https://externals.io/message/27665#27666 · In reply to: #27665

> Hi,
> 	I'm new to the newsgroup and I'm trying to debug PHP 6 on a test server
> (x64 architecture).  

Why do you do that? 
I mean, PHP6 is not even an alpha and it's too early to test it unless you're a developer.

> However, for some unknown reason, it segfaults if I
> try to run it with any files that work in PHP 5.2.0.
> 
> The segfault is at the end of most scripts, at the beginning of others.

I test it from time to time on both Linux 64bit machines I have and I have to 
say I can't reproduce any crashes.

What kind of OS is that (Solaris?)? What compiler did you use (GCC 4.1?)?

-- 
Wbr, 
Antony Dovgal

---

## #27677 — Andrei Zmievski — 2007-01-26T17:40:43+00:00

URL: https://externals.io/message/27665#27677 · In reply to: #27666

> 
> > […]
>
> Why do you do that? I mean, PHP6 is not even an alpha and it's too 
> early to test it unless you're a developer.

What's wrong with him trying to test it out? Let's not be so exclusive 
here.

-A
