Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uopz+phpunit: Fatal error or seagfault when repeat run script with uopz_function() more than once #18

Closed
advolkov opened this issue Apr 21, 2015 · 3 comments

Comments

@advolkov
Copy link

Hi Joe,

I've got "Fatal error: Cannot call overloaded function for non-object in UopzTest.php on line 10" when run this script https://gist.github.com/antonvolkov/86626df547bc4395d837 using command like "phpunit --repeat=10 UopzTest.php", valgrind log is below

==30651== Invalid read of size 8                                                                                                                             
==30651==    at 0x635F6F: ZEND_SEND_VAL_SPEC_CONST_HANDLER (zend_vm_execute.h:2499)                                                                          
==30651==    by 0x67B197: execute_ex (zend_vm_execute.h:363)                                                                                                 
==30651==    by 0x5EEFBB: zend_call_function (zend_execute_API.c:939)                                                                                        
==30651==    by 0x4D67B8: zim_reflection_method_invokeArgs (php_reflection.c:3015)                                                                           
==30651==    by 0x681288: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)                                                                           
==30651==    by 0x67B197: execute_ex (zend_vm_execute.h:363)                                                                                                 
==30651==    by 0x5FC251: zend_execute_scripts (zend.c:1449)                                                                                                 
==30651==    by 0x597548: php_execute_script (main.c:2573)                                                                                                   
==30651==    by 0x6B0214: do_cli (php_cli.c:994)                                                                                                             
==30651==    by 0x6B09D4: main (php_cli.c:1380)                                                                                                              
==30651==  Address 0xcdb82f0 is 48 bytes inside a block of size 248 free'd                                                                                   
==30651==    at 0x4C2970C: free (vg_replace_malloc.c:468)                                                                                                    
==30651==    by 0x61FC80: free (zend_signal.c:101)                                                                                                           
==30651==    by 0x60D518: zend_hash_del_key_or_index (zend_hash.c:535)                                                                                       
==30651==    by 0xD5751C2: zif_uopz_delete (uopz.c:1329)                                                                                                     
==30651==    by 0x681288: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)                                                                           
==30651==    by 0x67B197: execute_ex (zend_vm_execute.h:363)                                                                                                 
==30651==    by 0x5EEFBB: zend_call_function (zend_execute_API.c:939)                                                                                        
==30651==    by 0x4D67B8: zim_reflection_method_invokeArgs (php_reflection.c:3015)                                                                           
==30651==    by 0x681288: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550)                                                                           
==30651==    by 0x67B197: execute_ex (zend_vm_execute.h:363)                                                                                                 
==30651==    by 0x5FC251: zend_execute_scripts (zend.c:1449)                                                                                                 
==30651==    by 0x597548: php_execute_script (main.c:2573)                                                                                                   
==30651==    by 0x6B0214: do_cli (php_cli.c:994)                                                                                                             
==30651==    by 0x6B09D4: main (php_cli.c:1380)

I've got "seagfault (core dumped)" when run this script https://gist.github.com/antonvolkov/b1ac2e4faad546d7278d with the same command "phpunit --repeat=10 UopzTest2.php"

By the way could you please clarify are you planning to make Uopz works with php7?

Thank you in advance

@anton-povarov
Copy link

@krakjoe Hey. Just wondering if this project is still being maintained and is php7 support planned. thanks.

@kornrunner
Copy link
Contributor

I can't reproduce this with current master branch

@krakjoe
Copy link
Owner

krakjoe commented Apr 9, 2016

No longer a problem.

@krakjoe krakjoe closed this as completed Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants