#22629 [WFx]: Run-time seg fault with core dump
| From: | iliaa@php.net | Date: | Tue, 11 Mar 2003 03:34:23 +0000 |
| Subject: | #22629 [WFx]: Run-time seg fault with core dump | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35319@lists.php.net to get a copy of this message | ||
ID: 22629
Updated by: iliaa@php.net
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] sniper@php.net
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