Edit report at https://bugs.php.net/bug.php?id=63084&edit=1
ID: 63084 Updated by: larue...@php.net Reported by: itsgoingd at luzer dot sk Summary: Segfault when __callStatic causes infinite function call loop -Status: Open +Status: Wont fix Type: Bug Package: Reproducible crash Operating System: FreeBSD PHP Version: 5.4.6 Block user comment: N Private report: N New Comment: this is because of stack overflow, a knew issue. Previous Comments: ------------------------------------------------------------------------ [2012-09-13 21:37:59] itsgoingd at luzer dot sk Description: ------------ Calling non-existent or private static method in __callStatic magic method (infinite function call loop) causes segfault. Also reproducible on older 5.3.x versions on all platforms. Test script: --------------- <?php class Foo { public static function __callStatic($a, $b) { self::bar(); } } Foo::bar(); Expected result: ---------------- Fatal error: Allowed memory size of xxx bytes exhausted Actual result: -------------- Segmentation fault. Backtrace from cordeump: #0 0x00000000006e46f6 in instanceof_function () #1 0x00000000006fbfae in zend_call_method () #2 0x00000000007081b4 in zend_std_callstatic_user_call () #3 0x00000000007538bd in zend_do_fcall_common_helper_SPEC () #4 0x000000000070bdd8 in execute () #5 0x00000000006db8b1 in zend_call_function () #6 0x00000000006fbfeb in zend_call_method () #7 0x00000000007081b4 in zend_std_callstatic_user_call () #8 0x00000000007538bd in zend_do_fcall_common_helper_SPEC () #9 0x000000000070bdd8 in execute () ... last 5 lines repeat ... #23750 0x00000000006db8b1 in zend_call_function () #23751 0x00000000006fbfeb in zend_call_method () #23752 0x00000000007081b4 in zend_std_callstatic_user_call () #23753 0x00000000007538bd in zend_do_fcall_common_helper_SPEC () #23754 0x000000000070bdd8 in execute () #23755 0x00000000006e82ed in zend_execute_scripts () #23756 0x000000000068dffc in php_execute_script () #23757 0x0000000000774012 in do_cli () #23758 0x000000000077302d in main () ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63084&edit=1