Did this specific test work before I reverted Dmitry's patch?
There were three changes in his patch, maybe one of them caused the crash and one of them fixed the problem you are mentioning.


Andi

At 01:24 AM 12/19/2003 +0100, Johannes Schlueter wrote:
Pierre-Alain Joye wrote:


With --enabled-debug it reports a memory leak but it works again.

/home/johannes/src/php-cvs/php-src/Zend/zend_execute.c(405) : Freeing


Does it crash again without --enabled-debug? That's what I got before. Crash without, works with.

Ah, I didn't run make test - after the last patch it segfaults at the tests/classes/array_access_005.phpt
Backtrace:


(gdb) run tests/classes/array_access_005.phpt
Starting program: /home/johannes/src/php-cvs/php-src/sapi/cli/php tests/classes/array_access_005.phpt
[New Thread 16384 (LWP 14275)]
--TEST--
ZE2 ArrayAccess and sub Arrays
--FILE--
string(3) "Joe"
string(6) "JoeFoo"
string(9) "JoeFooBar"
---ArrayOverloading---
string(3) "Joe"


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 14275)]
0x081ee61a in zend_pzval_unlock_func (z=0x74656700)
   at /home/johannes/src/php-cvs/php-src/Zend/zend_execute.c:64
64              z->refcount--;
(gdb) bt
#0  0x081ee61a in zend_pzval_unlock_func (z=0x74656700)
   at /home/johannes/src/php-cvs/php-src/Zend/zend_execute.c:64
#1  0x081ee88b in _get_zval_ptr_ptr (node=0x40341988, Ts=0xbfffca54)
   at /home/johannes/src/php-cvs/php-src/Zend/zend_execute.c:139
#2  0x081eec9f in get_obj_zval_ptr_ptr (op=0x40341988, Ts=0xbfffca54, type=1)
   at /home/johannes/src/php-cvs/php-src/Zend/zend_execute.c:298
#3  0x081e8637 in zend_assign_dim_handler (execute_data=0xbfffcfa0,
   op_array=0x4033be5c)
   at /home/johannes/src/php-cvs/php-src/Zend/zend_execute.c:2056
#4  0x081e6135 in execute (op_array=0x4033be5c)
   at /home/johannes/src/php-cvs/php-src/Zend/zend_execute.c:1260
#5  0x081c3de4 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
   at /home/johannes/src/php-cvs/php-src/Zend/zend.c:1030
#6  0x08180a19 in php_execute_script (primary_file=0xbffff3e0)
   at /home/johannes/src/php-cvs/php-src/main/main.c:1638
#7  0x081f2b53 in main (argc=2, argv=0xbffff474)
   at /home/johannes/src/php-cvs/php-src/sapi/cli/php_cli.c:910
#8  0x4021690c in __libc_start_main () from /lib/libc.so.6

johannes

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



Reply via email to