Hi,

Building PHP and running a test script with the CGI or CLI on my MacOSX
machine results in a a Bus Error upon script completion.

I have made a fresh checkout, built clean (with a cvsclean and buildconf),
yet the problem continues.  Find a backtrace below, and the error.  Any
suggestions/ideas are welcome to be heard.

./configure --enable-debug --without-mysql
--with-imap=/Users/dank/Development/imap-2001a

Script (but it's really any script):
<?php
if (!is_dir("/tmp/reports")) mkdir("/tmp/reports", 0777);

if (touch("/tmp/reports/test.txt")) {
        print "file modification time has been updated \n";
} else {
        print "could not modify time \n";
}

$fp = fopen("/tmp/reports/test.txt", "w");
fwrite($fp, "some stuff\n");
fclose($fp);

print "end of script \n";
?>

backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x0017dba4 in _zval_dtor (zvalue=0x664f78, __zend_filename=0x2015f4
"/Users/dank/Development/php4-cvs/Zend/zend_execute_API.c",
__zend_lineno=277) at
/Users/dank/Development/php4-cvs/Zend/zend_variables.c:43
43                              CHECK_ZVAL_STRING_REL(zvalue);

(gdb) bt
#0  0x0017dba4 in _zval_dtor (zvalue=0x664f78, __zend_filename=0x2015f4
"/Users/dank/Development/php4-cvs/Zend/zend_execute_API.c",
__zend_lineno=277) at
/Users/dank/Development/php4-cvs/Zend/zend_variables.c:43
#1  0x001704dc in _zval_ptr_dtor (zval_ptr=0x667d84,
__zend_filename=0x2019f0
"/Users/dank/Development/php4-cvs/Zend/zend_variables.c",
__zend_lineno=158) at
/Users/dank/Development/php4-cvs/Zend/zend_execute_API.c:277
#2  0x0017e0bc in _zval_ptr_dtor_wrapper (zval_ptr=0x667d84) at
/Users/dank/Development/php4-cvs/Zend/zend_variables.c:158
#3  0x001881dc in zend_hash_destroy (ht=0x667cc8) at
/Users/dank/Development/php4-cvs/Zend/zend_hash.c:543
#4  0x0017dc5c in _zval_dtor (zvalue=0x667c88, __zend_filename=0x2015f4
"/Users/dank/Development/php4-cvs/Zend/zend_execute_API.c",
__zend_lineno=277) at
/Users/dank/Development/php4-cvs/Zend/zend_variables.c:51
#5  0x001704dc in _zval_ptr_dtor (zval_ptr=0x667de4,
__zend_filename=0x2019f0
"/Users/dank/Development/php4-cvs/Zend/zend_variables.c",
__zend_lineno=158) at
/Users/dank/Development/php4-cvs/Zend/zend_execute_API.c:277
#6  0x0017e0bc in _zval_ptr_dtor_wrapper (zval_ptr=0x667de4) at
/Users/dank/Development/php4-cvs/Zend/zend_variables.c:158
#7  0x001881dc in zend_hash_destroy (ht=0x290004) at
/Users/dank/Development/php4-cvs/Zend/zend_hash.c:543
#8  0x0016ffa8 in shutdown_executor () at
/Users/dank/Development/php4-cvs/Zend/zend_execute_API.c:173
#9  0x0017f6d8 in zend_deactivate () at
/Users/dank/Development/php4-cvs/Zend/zend.c:596
#10 0x00139e38 in php_request_shutdown (dummy=0x0) at
/Users/dank/Development/php4-cvs/main/main.c:788
#11 0x0019f8e8 in main (argc=2, argv=0xbffff9fc) at
/Users/dank/Development/php4-cvs/sapi/cgi/cgi_main.c:1100
#12 0x0000244c in _start ()
#13 0x0000227c in start ()
(gdb)


>---------------------------------------------------------------<
Dan Kalowsky                    "A little less conversation,
http://www.deadmime.org/~dank    a little more action."
[EMAIL PROTECTED]        - "A Little Less Conversation",
[EMAIL PROTECTED]                        Elvis Presley



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to