Re: Re: PHP4.0.7RC1 memory problem

From: Date: Fri, 07 Sep 2001 10:14:05 +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-65325@lists.php.net to get a copy of this message
At 07:39 07-09-01, Yasuo Ohgaki wrote:
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.
What do you mean by the stack doesn't add up? By the way, if you have a big script that reproduces the problem, and has no external dependencies (i.e., does not rely on a database, special library, etc.) it will also help. Zeev

Thread (13 messages)

« previous php.dev (#65325) next »