ID:               22629
 User updated by:  cs19291 at kaist dot ac dot kr
 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:

Okay, I finally decided that this is not a bug. Anonyone who sees this
page doesn't have to look deep inside.


Previous Comments:
------------------------------------------------------------------------

[2003-03-10 22:04:20] cs19291 at kaist dot ac dot kr

Thank you for your feedbacks.

But, the first code I supplied (the longest one) doesn't have any
logical infinite loop. It really terminates. The first version of "map"
correctly outputs the sum of 1 through 10. It has obviously a hard
limit.

------------------------------------------------------------------------

[2003-03-10 21:34:22] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[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

Reply via email to