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 12/09/2007, 10h56   #1 (permalink)
Zbigniew Szalbot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PHP 5.2.3 - Segmentation fault (core dumped)

Dear all,

I hope you can me. I am running FreeBSD 6.2 and I decided to
upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4
and installing php5 and php5-extensions I am unable to start apache.

php -v:

PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 12 2007 08:59:52)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Segmentation fault (core dumped)

pkg_info | grep php5
php5-5.2.3_1 PHP Scripting Language (Apache Module and CLI)
php5-bcmath-5.2.3_1 The bcmath shared extension for php
php5-bz2-5.2.3_1 The bz2 shared extension for php
php5-calendar-5.2.3_1 The calendar shared extension for php
php5-ctype-5.2.3_1 The ctype shared extension for php
php5-curl-5.2.3_1 The curl shared extension for php
php5-dbase-5.2.3_1 The dbase shared extension for php
php5-dom-5.2.3_1 The dom shared extension for php
php5-exif-5.2.3_1 The exif shared extension for php
php5-extensions-1.1 A "meta-port" to install PHP extensions
php5-ftp-5.2.3_1 The ftp shared extension for php
php5-gd-5.2.3_1 The gd shared extension for php
php5-gettext-5.2.3_1 The gettext shared extension for php
php5-gmp-5.2.3_1 The gmp shared extension for php
php5-iconv-5.2.3_1 The iconv shared extension for php
php5-imap-5.2.3_1 The imap shared extension for php
php5-mbstring-5.2.3_1 The mbstring shared extension for php
php5-mcrypt-5.2.3_1 The mcrypt shared extension for php
php5-mhash-5.2.3_1 The mhash shared extension for php
php5-mysql-5.2.3_1 The mysql shared extension for php
php5-mysqli-5.2.3_1 The mysqli shared extension for php
php5-openssl-5.2.3_1 The openssl shared extension for php
php5-pcre-5.2.3_1 The pcre shared extension for php
php5-pdo-5.2.3_1 The pdo shared extension for php
php5-pdo_sqlite-5.2.3_1 The pdo_sqlite shared extension for php
php5-posix-5.2.3_3 The posix shared extension for php
php5-pspell-5.2.3_1 The pspell shared extension for php
php5-session-5.2.3_1 The session shared extension for php
php5-simplexml-5.2.3_1 The simplexml shared extension for php
php5-soap-5.2.3_1 The soap shared extension for php
php5-sockets-5.2.3_1 The sockets shared extension for php
php5-spl-5.2.3_1 The spl shared extension for php
php5-sqlite-5.2.3_1 The sqlite shared extension for php
php5-tokenizer-5.2.3_1 The tokenizer shared extension for php
php5-xml-5.2.3_1 The xml shared extension for php
php5-xmlreader-5.2.3_1 The xmlreader shared extension for php
php5-xmlrpc-5.2.3_1 The xmlrpc shared extension for php
php5-xmlwriter-5.2.3_1 The xmlwriter shared extension for php
php5-zlib-5.2.3_1 The zlib shared extension for php

httpd -v
Server version: Apache/1.3.39 (Unix)
Server built: Sep 11 2007 20:48:37

Many thanks for your !

Zbigniew Szalbot
  Réponse avec citation
Vieux 12/09/2007, 11h03   #2 (permalink)
Edward Kay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)


> Dear all,
>
> I hope you can me. I am running FreeBSD 6.2 and I decided to
> upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4
> and installing php5 and php5-extensions I am unable to start apache.


What do the Apache error logs say?

Edward
  Réponse avec citation
Vieux 12/09/2007, 11h07   #3 (permalink)
Zbigniew Szalbot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Hello,

2007/9/12, Edward Kay <edward@labhut.com>:
>
> > Dear all,
> >
> > I hope you can me. I am running FreeBSD 6.2 and I decided to
> > upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4
> > and installing php5 and php5-extensions I am unable to start apache.

>
> What do the Apache error logs say?


Nothing that would be of :

httpd-error.log
[Wed Sep 12 09:04:17 2007] [notice] mod_security/1.9.4 configured

A new such line is added when I try to start apache. Apache does not
start even when I use non-ssl option (apachectl start).

messages:
Sep 12 12:04:44 szalbot kernel: pid 26602 (httpd), uid 0: exited on
signal 11 (core dumped)

Many thanks!
  Réponse avec citation
Vieux 12/09/2007, 11h38   #4 (permalink)
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Zbigniew Szalbot wrote:

> Hello,
>
> 2007/9/12, Edward Kay <edward@labhut.com>:
>>
>> What do the Apache error logs say?

>
> Nothing that would be of :
>
> httpd-error.log
> [Wed Sep 12 09:04:17 2007] [notice] mod_security/1.9.4 configured
>
> A new such line is added when I try to start apache. Apache does not
> start even when I use non-ssl option (apachectl start).
>
> messages:
> Sep 12 12:04:44 szalbot kernel: pid 26602 (httpd), uid 0: exited on
> signal 11 (core dumped)


Migrating from v4 to v5 is not necessarily straight forward.
Depending on what features you've used, you may have to rewrite some of
your code. For instance, we used the xslt sablotron interface, which
no longer exists in php5. Had to rewrite, which as it turns out was
not too much effort, but I'm sure there are other more complex
examples.


/Per Jessen, Zürich
  Réponse avec citation
Vieux 12/09/2007, 12h07   #5 (permalink)
Zbigniew Szalbot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Hi there,

2007/9/12, Per Jessen <per@computer.org>:
> Zbigniew Szalbot wrote:
>
> > Hello,
> >
> > 2007/9/12, Edward Kay <edward@labhut.com>:
> >>
> >> What do the Apache error logs say?

> >
> > Nothing that would be of :
> >
> > httpd-error.log
> > [Wed Sep 12 09:04:17 2007] [notice] mod_security/1.9.4 configured
> >
> > A new such line is added when I try to start apache. Apache does not
> > start even when I use non-ssl option (apachectl start).
> >
> > messages:
> > Sep 12 12:04:44 szalbot kernel: pid 26602 (httpd), uid 0: exited on
> > signal 11 (core dumped)

>
> Migrating from v4 to v5 is not necessarily straight forward.
> Depending on what features you've used, you may have to rewrite some of
> your code. For instance, we used the xslt sablotron interface, which
> no longer exists in php5. Had to rewrite, which as it turns out was
> not too much effort, but I'm sure there are other more complex
> examples.


No, basically I just use wordpress on this site and that's all. No
fancy or advanced scripting, etc. It is family machine for family
issues. I can try and go back to v4 but I do think v5 should work just
as fine. At least I hope so.

Thank you!
  Réponse avec citation
Vieux 12/09/2007, 12h29   #6 (permalink)
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Zbigniew Szalbot wrote:

> No, basically I just use wordpress on this site and that's all. No
> fancy or advanced scripting, etc. It is family machine for family
> issues. I can try and go back to v4 but I do think v5 should work just
> as fine. At least I hope so.


Hi Zbigniew

Maybe it's worth doing some googling for wordpress and php5? If it's
not your code, it's not easy to debug. I have seen the apache core
dump many times, sometimes caused by obvious errors, other times by
something obscure and difficult to find.



/Per Jessen, Zürich
  Réponse avec citation
Vieux 12/09/2007, 12h50   #7 (permalink)
Martin Marques
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Zbigniew Szalbot wrote:
> Hi there,
>
> No, basically I just use wordpress on this site and that's all. No
> fancy or advanced scripting, etc. It is family machine for family
> issues. I can try and go back to v4 but I do think v5 should work just
> as fine. At least I hope so.


Does phpinfo work? What does it say?

Also, when you have problems like this, he best to do is put error
reporting to E_ALL and display_errors=on.

--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------
  Réponse avec citation
Vieux 12/09/2007, 13h21   #8 (permalink)
Stut
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

Per Jessen wrote:
> Zbigniew Szalbot wrote:
>
>> No, basically I just use wordpress on this site and that's all. No
>> fancy or advanced scripting, etc. It is family machine for family
>> issues. I can try and go back to v4 but I do think v5 should work just
>> as fine. At least I hope so.

>
> Hi Zbigniew
>
> Maybe it's worth doing some googling for wordpress and php5? If it's
> not your code, it's not easy to debug. I have seen the apache core
> dump many times, sometimes caused by obvious errors, other times by
> something obscure and difficult to find.


Come on guys, use your heads. PHP is segfaulting when trying to display
its version number - that's not going to have anything to do with Wordpress.

To the OP: This probably means you've got a rogue extension in the mix.
Edit /usr/local/etc/php/extensions.ini and put a # in front of every
line. Try php -v again. If it works then you need to uncomment (remove
the #) each line in that file one by one checking php -v each time until
you find the one that's a problem.

If it's an extension you need I suggest you uninstall and rebuild it. If
not then just leave it commented and move on to the next.

If php -v still segfaults with all the extensions disabled then you need
to uninstall PHP and all the extensions completely and start again
because something obviously went wrong when you built them.

-Stut

--
http://stut.net/
  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 03h11.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14223 seconds with 16 queries