Re: PHP causing seg fault
| From: | Glenn Richmond | Date: | Mon, 16 Oct 2006 00:42:51 +0000 |
| Subject: | Re: PHP causing seg fault | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243173@lists.php.net to get a copy of this message | ||
Hi guys,
I'm running Fedora Core 5 - so yes, a red hat system. I'm told it
doesn't happen on FC4 and PHP5.04 though.
I'm definitely not causing an infinite loop directly in the PHP code,
though I agree that it sounds like that. I think that maybe PHP is
getting into a loop internally though as a result of the return call.
Any ideas?
Glenn.
Richard Lynch wrote:
> On Thu, October 12, 2006 3:44 am, Glenn Richmond wrote:
>
>> I'm attempting to run a SugarCRM variant that uses SOAP to access
>> information from the database. The code is causing a seg fault when
>> executing a particular line of code. The code executes properly until
>> it
>> calls a generic function in the parent class that causes a seg fault
>> on
>> the return command. The line of code is:
>>
>> return $this;
>>
>> I've found this to be a problem in PHP version 5.1.4 and 5.2.0rc4. Is
>> this statement illegal in PHP5? When I set a memory limit for the
>> script, the error changes to indicating that it has exceeded its
>> memory
>> allocation, so it seems to be allocating memory over and over.
>>
>> Note that this code runs fine on most other combinations of functions
>> calling this same parent method. Any suggestions are appreciated.
>>
>
> Are you sure you are not causing an infinite loop or a circular data
> reference that PHP is attempting to iterate through?
>
> It sure *sounds* like that might be the case, from the symptoms
> presented.
>
>