Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Lots of php segfaults, how to debug?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
skr  
View profile  
 More options Jun 23, 12:04 pm
From: skr <konrad.rie...@googlemail.com>
Date: Tue, 23 Jun 2009 09:04:19 -0700 (PDT)
Local: Tues, Jun 23 2009 12:04 pm
Subject: Lots of php segfaults, how to debug?
Hi,

Recently I get a lot of dying apache childs, first only in dev mode,
now also in prod mode.
I'm using latest 1.2.8-DEV with propel on two debian machines.
The problem is the same on both.

one request gives always a segfault:
http://10.11.0.21/profiling.php/pdf/formular/formular/Profiling/aufnn...
child pid 32101 exit signal Segmentation fault (11)
phpinfo()
PHP Version => 5.2.6-1+lenny3

another one is always ok:
http://10.11.0.21/profiling.php/pdf/formular/formular/Profiling/aufnn...

in dev mode both of them are working...

Does anybody know how to nail this down to the last executed php line?

with regards

Konrad


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bernhard Schussek  
View profile  
 More options Jun 23, 12:22 pm
From: Bernhard Schussek <bschus...@gmail.com>
Date: Tue, 23 Jun 2009 18:22:14 +0200
Local: Tues, Jun 23 2009 12:22 pm
Subject: Re: [symfony-devs] Lots of php segfaults, how to debug?
Hi,

Do you have XDebug installed? I found that XDebug sometimes gives
useful error messages when plain PHP segfaults.

Bernhard


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabrice B  
View profile  
 More options Jun 24, 5:41 am
From: Fabrice B <fabrice.bernh...@gmail.com>
Date: Wed, 24 Jun 2009 02:41:01 -0700 (PDT)
Local: Wed, Jun 24 2009 5:41 am
Subject: Re: Lots of php segfaults, how to debug?
Having experienced this once, I would also look at PHP bugs linked to
Xcache / Memcache issues. Are you using any of those ?

Fabrice Bernhard
--
http://www.theodo.fr

On Jun 23, 6:22 pm, Bernhard Schussek <bschus...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
skr  
View profile  
 More options Jun 24, 6:37 am
From: skr <konrad.rie...@googlemail.com>
Date: Wed, 24 Jun 2009 03:37:18 -0700 (PDT)
Local: Wed, Jun 24 2009 6:37 am
Subject: Re: Lots of php segfaults, how to debug?

On 23 Jun., 18:22, Bernhard Schussek <bschus...@gmail.com> wrote:

> Hi,

> Do you have XDebug installed? I found that XDebug sometimes gives
> useful error messages when plain PHP segfaults.

Just installed it - but it shows nothing, just 3 segfaults per
request...

[Wed Jun 24 09:32:36 2009] [notice] child pid 9081 exit signal
Segmentation fault (11)
[Wed Jun 24 09:32:37 2009] [notice] child pid 9082 exit signal
Segmentation fault (11)
[Wed Jun 24 09:32:37 2009] [notice] child pid 9083 exit signal
Segmentation fault (11)

So I used the old way of inserting a lot of echo's and found out, that
inserting a  ->__toString() cured this segfault.
(I gave an object to a function wanting a string)

Completely unrelated to symfony....

But xdebug is helpful, thanks for the hint.

Konrad


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jack Bates  
View profile  
 More options Jun 24, 12:56 pm
From: Jack Bates <jack.ba...@gmail.com>
Date: Wed, 24 Jun 2009 09:56:05 -0700 (PDT)
Local: Wed, Jun 24 2009 12:56 pm
Subject: Re: Lots of php segfaults, how to debug?
We're also frustrated with PHP segfaults running our symfony project -
and we're also working around by calling ->__toString() explicitly

We got as far as building PHP with --enable-debug and getting a
backtrace from gdb, http://bugs.php.net/bug.php?id=47522

- but we were unable to create a short example script - it seems
whenever we removed something from our larger symfony project, to
isolate the segfault, the segfault would disappear

Casting the object to a string in a parent function does not produce a
segfault, while calling a function and casting in the called function
does. Even passing the object as the first as opposed to fourth
argument of the function causes the segfault to disappear.

We're not using XCache or Memcache

On Jun 24, 3:37 am, skr <konrad.rie...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Dorgueil  
View profile  
 More options Jun 25, 4:10 pm
From: Romain Dorgueil <romain.dorgu...@symfony-project.com>
Date: Thu, 25 Jun 2009 22:10:12 +0200
Local: Thurs, Jun 25 2009 4:10 pm
Subject: Re: [symfony-devs] Lots of php segfaults, how to debug?
What DBMS are you using? some versions of php's postgresql extensions  
are known to segfault systematically, at a very late stage of php  
process lifetime (ie after everything is done).

One simple symptom for this, if you use the same php and php  
extensions from cli, is to look for a segfault at the end of every  
database cli task.

Anyway, as some pages are ok, it's maybe not this.

Interesting topic indeed, it's pure experience sharing.

Romain

Le 23 juin 09 à 18:04, skr a écrit :


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tonio  
View profile  
 More options Jun 26, 1:03 pm
From: Tonio <brankg...@gmail.com>
Date: Fri, 26 Jun 2009 10:03:13 -0700 (PDT)
Local: Fri, Jun 26 2009 1:03 pm
Subject: Re: Lots of php segfaults, how to debug?
Hi,

> What DBMS are you using? some versions of php's postgresql extensions  
> are known to segfault systematically, at a very late stage of php  
> process lifetime (ie after everything is done).

Ouch, happy to hear that, I didn't find much information about this
problem that I have very often.
Are there workarounds for this ? Any links where I can find
informations about ?

Thanks in advance,

Tonio


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gabriel D  
View profile  
 More options Jun 28, 5:43 pm
From: Gabriel D <dias...@gmail.com>
Date: Sun, 28 Jun 2009 14:43:25 -0700 (PDT)
Local: Sun, Jun 28 2009 5:43 pm
Subject: Re: Lots of php segfaults, how to debug?
I have the same problem than Romain. I'm using the last symfony
version with postgres 8.3 and doctrine. Think i read the problem could
be the encoding or sh related to that, can it be possible??.

On 26 jun, 14:03, Tonio <brankg...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google