PHP6 - x64 SegFault

php.internals

Chris Malton

19 years ago
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

Antony Dovgal

19 years ago
On 01/26/2007 10:27 AM, Chris Malton wrote:
> 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

Andrei Zmievski

19 years ago
On Jan 26, 2007, at 12:58 AM, Antony Dovgal wrote:
> On 01/26/2007 10:27 AM, Chris Malton wrote: >> 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.
What's wrong with him trying to test it out? Let's not be so exclusive here. -A

Andi Gutmans

19 years ago
Yeah. The earlier we get reports the better. Andi