PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > PHP 5.2.3 - Segmentation fault (core dumped)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PHP 5.2.3 - Segmentation fault (core dumped)

Réponse
 
LinkBack Outils de la discussion
Vieux 14/09/2007, 14h32   #51
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Jay Blanchard wrote:

> [snip]
> You are right. It segfaults only if the virtual() call comes before
> creating the XSLTProcessor instance.
> [/snip]
>
> I cannot replicate the problem on Linux.
>


So you get the XSLT error messages instead? That's what you should be
seeing.

See also http://bugs.php.net/bug.php?id=42666


/Per Jessen, Zürich
  Réponse avec citation
Vieux 14/09/2007, 14h48   #52
Jay Blanchard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

> [snip]
> You are right. It segfaults only if the virtual() call comes before
> creating the XSLTProcessor instance.
> [/snip]
>
> I cannot replicate the problem on Linux.
>


So you get the XSLT error messages instead? That's what you should be
seeing.
{/snip]

Yep, no segfault. I do not have a windows box handy for testing.
  Réponse avec citation
Vieux 14/09/2007, 14h56   #53
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Jay Blanchard wrote:

>> [snip]
>> You are right. It segfaults only if the virtual() call comes before
>> creating the XSLTProcessor instance.
>> [/snip]
>>
>> I cannot replicate the problem on Linux.
>>

>
> So you get the XSLT error messages instead? That's what you should be
> seeing.
> {/snip]
>
> Yep, no segfault. I do not have a windows box handy for testing.


I'm on Linux too, so never mind Windows for the moment.
So what's the difference between our two environments? Try putting
something in the problem-include file to verify that virtual is doing
what it's supposed to.


/Per Jessen, Zürich
  Réponse avec citation
Vieux 14/09/2007, 14h57   #54
T . Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

On Fri, 14 Sep 2007 08:10:56 -0500, "Jay Blanchard" <jblanchard@pocket.com>
wrote:
> [snip]
> You are right. It segfaults only if the virtual() call comes before
> creating the XSLTProcessor instance.
> [/snip]
>
> I cannot replicate the problem on Linux.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


In one of the other messages i stated the script works fine on linux.
But PHP on windows seems to have a problem with virtual(). Even without
creating an instance of the XSLProcessor class.

But dropping virtual() for include() or require() solves the problem.
  Réponse avec citation
Vieux 14/09/2007, 15h08   #55
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

T.Lensselink wrote:

> In one of the other messages i stated the script works fine on linux.
> But PHP on windows seems to have a problem with virtual(). Even
> without creating an instance of the XSLProcessor class.
>
> But dropping virtual() for include() or require() solves the problem.


Getting rid of the symptoms is easy, solving the problem is not.

include/require are not replacements for virtual(). virtual() creates
an apache sub-request which I need for content-negotiation.


/Per Jessen, Zürich
  Réponse avec citation
Vieux 14/09/2007, 15h17   #56
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Jay Blanchard wrote:

> [snip]
> A core dump or an strace or some debug output at the right time will
> have 99% of the information you need - provided you understand how to
> read it.
> I submit there is generally no need to reproduce a problem in order to
> diagnose it. To fix it, yes, it will undoubtedly if you can
> reproduce it, but once you've diagnosed it, reproducing it is a
> lot easier.
> [/snip]
>
> Wouldn't it be nice to have 100% of the information? That last 1% may
> be the code that caused the problem.


It would be nice, yes. In my previous professional life, I would
probably have asked the customer to set a SLIP trap to provide that
extra info. That trap would be triggered/detriggered given the right
set of circumstances and could give me either a systems trace, maybe a
stand-alone dump or something else to assist me in locating the
problem.

Right now I'm trying to debug what I think is a race condition in spamd
(spamassassin) when it reloads the config. Reproducing is out of the
question except by chance. To me debug, I now run an strace every
time the daemon is sighup'ed. It might be another couple of months
before it happens again.

> [snip]
> What's the purpose of a core dump if it does not provide the key
> information for solving a problem? If I still have to isolate and
> reproduce the issue in user code, there seems to be very little need
> for the core dump, right?
> [/snip]
>
> Not so. A core dump, as you stated before, gives you most of the
> information. Having the code that appeared to have caused the problem
> is definitely welcomed. It s to see what was occurring when the
> segfault happened. Would you not agree?


Oh, definitely. The complete code should always be available to you,
but that's not the same as being able to reproduce the problem.


/Per Jessen, Zürich
  Réponse avec citation
Vieux 14/09/2007, 15h39   #57
Jay Blanchard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

[snip]
I'm on Linux too, so never mind Windows for the moment.
So what's the difference between our two environments? Try putting
something in the problem-include file to verify that virtual is doing
what it's supposed to.
[/snip]

That worked fine. I am sure that there are many differences in our
environments. We are running Suse Linux, PHP 5.2.1, Apache 2.2.4.
  Réponse avec citation
Vieux 14/09/2007, 16h12   #58
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Jay Blanchard wrote:

> [snip]
> I'm on Linux too, so never mind Windows for the moment.
> So what's the difference between our two environments? Try putting
> something in the problem-include file to verify that virtual is doing
> what it's supposed to.
> [/snip]
>
> That worked fine. I am sure that there are many differences in our
> environments. We are running Suse Linux, PHP 5.2.1, Apache 2.2.4.


That's close though - my workstation is openSUSE 10.2, PHP 5.2.4, Apache
2.2.4.


/Per Jessen, Zürich
  Réponse avec citation
Vieux 14/09/2007, 16h21   #59
Jay Blanchard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: RE: RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

[snip]
> That worked fine. I am sure that there are many differences in our
> environments. We are running Suse Linux, PHP 5.2.1, Apache 2.2.4.


That's close though - my workstation is openSUSE 10.2, PHP 5.2.4, Apache
2.2.4.
[/snip]

As this installation is on a development box it has nearly every
extension known loaded, if you have the same then we are nearly
duplicates. I am unsure of the differences in PHP 5.2.1 and 5.2.4 but I
would not think that it would touch virtual().
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h52.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13297 seconds with 17 queries