Edit report at http://bugs.php.net/bug.php?id=41130&edit=1

 ID:                 41130
 Comment by:         mm at mxs dot de
 Reported by:        mumu at seznam dot cz
 Summary:            PHP crashes in infinite loop (zend_vm_execute.h)
 Status:             Bogus
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   FreeBSD
 PHP Version:        5CVS-2007-04-18 (snap)
 Block user comment: N

 New Comment:

That's no infinite recursion. There's a different op_array each time.



#0  0x081aac97 in execute (op_array=0x84a846c) at zend_vm_execute.h:53

#3  0x081aad6e in execute (op_array=0x84a0254) at zend_vm_execute.h:92

#6  0x081aad6e in execute (op_array=0x84d6020) at zend_vm_execute.h:92

#9  0x081aad6e in execute (op_array=0x8566e70) at zend_vm_execute.h:92


Previous Comments:
------------------------------------------------------------------------
[2007-04-18 13:18:28] [email protected]

>I am still not convinced that I have an infinite loop in my very code.



It's obvious looking at the backtrace.



>The infinite loop is caused by an assignement command from a

>variable to another variable, which would not cause any cycle.



You showed use only 1 (one) line of your code and we have now idea how
it is supposed to work without having all the missing code.

Though, looking at the backtrace I can guarantee that the cause it an
infinite loop inside your code, whether you see it or not.



Please reopen the report when/if you have a short but complete reproduce
case (without an infinite loop) which demonstrates the problem. Until
then please keep this report closed. 

Thank you.

------------------------------------------------------------------------
[2007-04-18 13:13:14] mumu at seznam dot cz

I am still not convinced that I have an infinite loop in my very code.



Please follow with me the following. The PHP crashes in the infinite
loop; presume, that I have the infinite loop in the code. Now, I am
moving with the "exit;" inside the same loop (you can see, there is no
loop on command "$a = $b"). Therefore, the server would either crash
everytime nor anytime, because whenever the interpret reaches the
"exit;" command it ends whole the script, not depending on the cycles.
However, the server crashes after, but not before the command.
Therefore, the only one line which would cause the infinite loop might
in my code is the "$a = $b;" line; unfortunately, this command does not
make any cycle. This is the contradiction to the presumption.



Let me give you the summary of the contradiction:

The infinite loop is caused by an assignement command from a variable to
another variable, which would not cause any cycle.

------------------------------------------------------------------------
[2007-04-18 12:59:32] [email protected]

Infinite recursion in the code is expected to eat the stack and that
might result in crash.

------------------------------------------------------------------------
[2007-04-18 12:54:51] mumu at seznam dot cz

Please double-check the information provided in the Reproduce code
section. From my point of view it does not seem to be the infinite loop
in my code. The provided executed command is assignement a simple
variable to another variable without any loop.



Moreover, please provide me with the information, how to get the place
in my code where the infinite loop occurs. I could not find it in the
manual or web. Thank you.

------------------------------------------------------------------------
[2007-04-18 12:47:14] [email protected]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Your code has infinite recursion...

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=41130


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=41130&edit=1

Reply via email to