Re: Re: PHP4.0.7RC1 memory problem

From: Date: Fri, 07 Sep 2001 04:39:02 +0000
Subject: Re: Re: PHP4.0.7RC1 memory problem
References: 1 2 3 4  Groups: php.dev php.qa 
Request: Send a blank email to php-dev+get-65308@lists.php.net to get a copy of this message
Yasuo Ohgaki wrote:

I gave up tring to make reproducible script. For the record, PHP does not execute script properly under very limmited circumstance that I can't find out exactly. Under normal execution, calling function over and over should exhoust memory, since new stack is needed for each new function call. I can see they are called over and over, but stack does not add up. Execution results in segfault instead of reaching memory limit. At least gdb/ddd tells so. Anyway, I think most of users will not be affected by this. If I find anything concrete, I'll post it here again. I noticed imcomplete description.
I have following code // Pesudo code function handle_input1() { switch(input1) {
    case a:
     handle_input2();
     break;
    case b:
    ...
} } function handle_input2() { switch (input2) { case x:
    if (some inputs are wrong) {
     input1 = b;
     handle_input1();
    }
    else {
     // do other thing
    }
    break;
case y: .... } } gdb tells handle_input1() and handle_input2() is calling each other over and over, but stack does not add up. It works well for all most of all scripts. Yasuo Ohgaki _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Thread (13 messages)

« previous php.dev (#65308) next »