Welcome! Log In Create A New Profile

Advanced

Segmentation fault while using APC with php-fpm

Posted by khizar 
Segmentation fault while using APC with php-fpm
June 07, 2011 08:28AM
hello guys,
i am using php 5.3.6 with opcode caching APC

i have checked php-fpm.log and it shows that child processes are
dieing due to Signal 11 (segmentation fault)

what should i have to do to avoid segfault ...

any help will be appreciated...

thank you
Re: Segmentation fault while using APC with php-fpm
June 07, 2011 10:47AM
Did you try eaccelerator?
Clark Freifeld
Re: Segmentation fault while using APC with php-fpm
June 07, 2011 10:56AM
I have also seen seg faults from php-fpm once or twice over the past
few months of running it. Doesn't seem to have impacted application
performance much; I assume that the process manager just spawns a new
process to replace the one that died. Are you seeing A LOT of seg
faults?

Presumably it's due to a memory management bug in php-fpm (or php
potentially) and will go away as the product matures...

Clark

On Tue, Jun 7, 2011 at 8:21 AM, myuniverso.com <khizarsonu@gmail.com> wrote:
> hello guys,
> i am using php 5.3.6 with opcode caching APC
>
> i have checked php-fpm.log and it shows that child processes are
> dieing due to Signal 11 (segmentation fault)
>
> what should i have to do to avoid segfault ...
>
> any help will be appreciated...
>
> thank you
Re: Segmentation fault while using APC with php-fpm
June 09, 2011 10:28AM
i am seeing a lot of seg fault ..

i have turned off opcode caching but i am using apc for user data
caching only (i have tried memcache for user data caching but miss
rate was too high so i am not using it)

is there any solution to avoid seg fault......

On Jun 7, 7:54 pm, Clark Freifeld <clark.freif...@gmail.com> wrote:
> I have also seen seg faults from php-fpm once or twice over the past
> few months of running it. Doesn't seem to have impacted application
> performance much; I assume that the process manager just spawns a new
> process to replace the one that died. Are you seeing A LOT of seg
> faults?
>
> Presumably it's due to a memory management bug in php-fpm (or php
> potentially) and will go away as the product matures...
>
> Clark
>
> On Tue, Jun 7, 2011 at 8:21 AM, myuniverso.com <khizars...@gmail.com> wrote:
> > hello guys,
> > i am using php 5.3.6 with opcode caching APC
>
> > i have checked php-fpm.log and it shows that child processes are
> > dieing due to Signal 11 (segmentation fault)
>
> > what should i have to do to avoid segfault ...
>
> > any help will be appreciated...
>
> > thank you
>
>
Re: Segmentation fault while using APC with php-fpm
June 09, 2011 12:56PM
i completely removed APC then also am getting seg fault

any one have an idea that what is the reason behind this segfault..


On Jun 9, 7:22 pm, "myuniverso.com" <khizars...@gmail.com> wrote:
> i am seeing a lot of seg fault ..
>
> i have turned off opcode caching but i am using apc for user data
> caching only (i have tried memcache for user data caching but miss
> rate was too high so i am not using it)
>
> is there any solution to avoid seg fault......
>
> On Jun 7, 7:54 pm, Clark Freifeld <clark.freif...@gmail.com> wrote:
>
> > I have also seen seg faults from php-fpm once or twice over the past
> > few months of running it. Doesn't seem to have impacted application
> > performance much; I assume that the process manager just spawns a new
> > process to replace the one that died. Are you seeing A LOT of seg
> > faults?
>
> > Presumably it's due to a memory management bug in php-fpm (or php
> > potentially) and will go away as the product matures...
>
> > Clark
>
> > On Tue, Jun 7, 2011 at 8:21 AM, myuniverso.com <khizars...@gmail.com> wrote:
> > > hello guys,
> > > i am using php 5.3.6 with opcode caching APC
>
> > > i have checked php-fpm.log and it shows that child processes are
> > > dieing due to Signal 11 (segmentation fault)
>
> > > what should i have to do to avoid segfault ...
>
> > > any help will be appreciated...
>
> > > thank you
>
>
Antony Dovgal
Re: Segmentation fault while using APC with php-fpm
June 09, 2011 01:14PM
On 06/09/2011 08:28 PM, myuniverso.com wrote:
> i completely removed APC then also am getting seg fault
>
> any one have an idea that what is the reason behind this segfault..

No, of course not. And nobody ever will.
But you can ask that question again when you have the backtrace:
http://bugs.php.net/bugs-generating-backtrace.php

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP
Juan Fco. Giordana
Re: Segmentation fault while using APC with php-fpm
June 09, 2011 05:52PM
On 06/09/2011 02:11 PM, Antony Dovgal wrote:
> On 06/09/2011 08:28 PM, myuniverso.com wrote:
>> i completely removed APC then also am getting seg fault
>>
>> any one have an idea that what is the reason behind this segfault..
>
> No, of course not. And nobody ever will.
> But you can ask that question again when you have the backtrace:
> http://bugs.php.net/bugs-generating-backtrace.php
>

Or send some basic configurations and the webserver and fpm logs...
Re: Segmentation fault while using APC with php-fpm
November 21, 2011 04:44PM
Not directly a solution to your problems but I had segmentation faults all the time when using APC on Apache and I fixed it by rebuilding Apache using not the default "worker" MPM but the "prefork" one.
It took me a long time to identify this cause so I posted here the details: http://www.blah-blah.ch/it/webserver/php-acceleration-for-apache/
Bye
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready