#40474 [Opn->Fbk]: Segmentation fault during install-pear-installer
| From: | tony2001@php.net | Date: | Wed, 14 Feb 2007 16:39:34 +0000 |
| Subject: | #40474 [Opn->Fbk]: Segmentation fault during install-pear-installer | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108910@lists.php.net to get a copy of this message | ||
ID: 40474
Updated by: tony2001@php.net
Reported By: zesigur at free dot fr
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Redhat 7.3 (2.4.29)
PHP Version: 5.2.1
New Comment:
Could you try to run it with valgrind and see if there are any errors?
Try this command:
USE_ZEND_ALLOC=0 valgrind --tool=memcheck ./sapi/cli/php -n
-dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir=
-derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0
pear/install-pear-nozlib.phar -d "/usr/local/lib/php" -b
"/usr/local/bin"
You should not see any errors except maybe for some OpenSSL warnings,
which we obviously can't fix..
Previous Comments:
------------------------------------------------------------------------
[2007-02-14 16:13:56] zesigur at free dot fr
strange...
With the last snapshot :
without CLAGS, enable inline optimization and this :
./configure \
--prefix=/usr \
--with-exec-dir=/usr/bin \
--with-apache=../ \
--with-config-file-path=/servers/apache/conf \
--enable-track-vars \
--enable-safe-mode \
--with-gd=/usr/local/gd \
--with-ttf \
--with-jpeg \
--with-jpeg-dir \
--with-png \
--with-mm \
--with-gnu-ld \
--with-gettext \
--enable-mbstring \
--with-curl=/usr/local/curl \
--with-zlib \
--enable-bcmath \
--enable-memory-limit \
--enable-libxml \
--with-libxml-dir=/usr/local/libxml2 \
--with-freetype-dir=/usr/local/freetype \
--with-mysql=/usr/include/mysql \
--with-imap \
--with-kerberos \
--with-imap-ssl
It fails with the same error.
If I just add : --enable-debug, it works......
make install
Installing PHP SAPI module: apache
Installing PHP CLI binary: /usr/bin/
Installing PHP CLI man page: /usr/man/man1/
Installing build environment: /usr/lib/php/build/
Installing header files: /usr/include/php/
Installing helper programs: /usr/bin/
program: phpize
program: php-config
Installing man pages: /usr/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/lib/php/
--17:10:48-- http://pear.php.net/install-pear-nozlib.phar
=> `pear/install-pear-nozlib.phar'
Résolution de pear.php.net... 216.92.131.66
Connexion vers pear.php.net[216.92.131.66]:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 3,551,864 [text/plain]
100%[=======================================================>]
3,551,864 191.96K/s ETA 00:00
17:11:17 (118.68 KB/s) - « pear/install-pear-nozlib.phar » sauvegardé
[3551864/3551864]
[PEAR] Console_Getopt - already installed: 1.2.1
[PEAR] Archive_Tar - already installed: 1.3.2
[PEAR] Structures_Graph- already installed: 1.0.2
[PEAR] PEAR - already installed: 1.5.0
Wrote PEAR system config file at: /usr/etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
Installing PDO headers: /usr/include/php/ext/pdo/
------------------------------------------------------------------------
[2007-02-14 15:34:03] tony2001@php.net
No, please use the snapshot.
------------------------------------------------------------------------
[2007-02-14 15:25:18] zesigur at free dot fr
OK no problem to help you! I've tried with the original php-5.2.1
version. with that :
./configure \
--prefix=/usr \
--with-exec-dir=/usr/bin \
--with-apache=../ \
--with-config-file-path=/servers/apache/conf \
--enable-track-vars \
--enable-safe-mode \
--with-gd=/usr/local/gd \
--with-ttf \
--with-jpeg \
--with-jpeg-dir \
--with-png \
--with-mm \
--with-gnu-ld \
--with-gettext \
--enable-mbstring \
--with-curl=/usr/local/curl \
--with-zlib \
--enable-bcmath \
--enable-memory-limit \
--enable-libxml \
--with-libxml-dir=/usr/local/libxml2 \
--with-freetype-dir=/usr/local/freetype \
--with-mysql=/usr/include/mysql \
--with-imap \
--with-kerberos \
--with-imap-ssl
So, without the CFLAGS, and without --enable-inline-optimization . The
problem is the same.
Installing PEAR environment: /usr/lib/php/
make[1]: *** [install-pear-installer] Erreur de segmentation
make: *** [install-pear] Erreur 2
You can tell me what to try next..
------------------------------------------------------------------------
[2007-02-14 14:42:56] tony2001@php.net
Well, I would appreciate if you help us to find the roots of the
problem.
First of all, please remove all these custom CFLAGS and see if it works
without them.
Then remove --enable-inline-optimization and check it once again.
If that doesn't help, tell me. I'll show you what to do after that.
------------------------------------------------------------------------
[2007-02-14 14:34:31] zesigur at free dot fr
OK, so I will use this snapshot on these servers, that's OK. Thank you
very much for your help !
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40474
--
Edit this bug report at http://bugs.php.net/?id=40474&edit=1