ID: 22629 Updated by: [EMAIL PROTECTED] Reported By: cs19291 at kaist dot ac dot kr Status: Wont fix Bug Type: Reproducible crash Operating System: RedHat 7.2 PHP Version: 4.3.1 New Comment:
Congratulations, you've discovered a bug, NOT! The code is crashing because you are very effectively overflowing the stack. This is a known an expected behaviour when using unterminated resursive loops. The solution is not to use recursive loops or put hard limits to prevent stack overflows. In the future please review existing bug reports to see if similar issues have already been covered. Previous Comments: ------------------------------------------------------------------------ [2003-03-10 21:31:25] [EMAIL PROTECTED] http://bugs.php.net/search.php?search_for=&limit=10&order_by=&direction=ASC&cmd=display&status=Wont+fix&bug_type=Reproducible+crash&php_os=&phpver=&assign=&bug_age=0 ------------------------------------------------------------------------ [2003-03-10 21:10:45] cs19291 at kaist dot ac dot kr When playing with php 4.1.2 using command-line interpreter, I noticed that the code below generates seg fault and produces core dump. After that, I installed 4.3.1 cgi version for only interpreting purpose, still facing core dump. The one who is interesting at functional programming style will at once understand what the code represents. I know "_map" can be never run under php, because it generates infinite frame stack, not likely under the functional language interpreter. However, it causes a crash. The code: http://tempdoc.ek-project.com/crash.txt Or the simplist version: http://tempdoc.ek-project.com/simple.txt This is also interesting: http://tempdoc.ek-project.com/simple-alt.txt It does not complain of the number of arguments, just dies. The link can be broken sometime. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22629&edit=1
