ID:               40474
 User updated by:  zesigur at free dot fr
 Reported By:      zesigur at free dot fr
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Redhat 7.3 (2.4.29)
 PHP Version:      5.2.1
 New Comment:

make install was different with this version but fails too : 
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/
--13:52:33--  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    165.76K/s    ETA 00:00

13:52:54 (167.66 KB/s) - « pear/install-pear-nozlib.phar » sauvegardé
[3551864/3551864]

make[1]: *** [install-pear-installer] Erreur de segmentation
make: *** [install-pear] Erreur 2

and GDB on sapi/cli/php :

Starting program:
/var/tmp/apache_1.3.34/php5.2-200702141130/sapi/cli/php
/var/tmp/apache_1.3.34/php5.2-200702141130/pear/install-pear-nozlib.phar
[New Thread 1024 (LWP 17186)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 17186)]
0x082cb70a in _zval_ptr_dtor ()
(gdb) bt
#0  0x082cb70a in _zval_ptr_dtor ()
#1  0x086888a0 in ?? ()
#2  0x40007274 in _dl_lookup_symbol_internal () from
/lib/ld-linux.so.2
Cannot access memory at address 0x73627573


Previous Comments:
------------------------------------------------------------------------

[2007-02-14 11:07:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



------------------------------------------------------------------------

[2007-02-14 09:00:16] zesigur at free dot fr

Sorry :)

(gdb) bt
#0  0x082c9e0a in _zval_ptr_dtor ()
#1  0x08686550 in ?? ()
#2  0x40007274 in _dl_lookup_symbol_internal () from
/lib/ld-linux.so.2
Cannot access memory at address 0x73627573

------------------------------------------------------------------------

[2007-02-14 08:55:59] [EMAIL PROTECTED]

This trace ain't useful, you need to type "bt" on the GDB prompt before
you quit.

------------------------------------------------------------------------

[2007-02-14 08:28:17] zesigur at free dot fr

If this can Help, I've used GDB, here is the trace : 
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) /var/tmp/apache_1.3.34/php-5.2.1/pear/install-pear-nozlib.phar
Undefined command: "".  Try "help".
(gdb) run
/var/tmp/apache_1.3.34/php-5.2.1/pear/install-pear-nozlib.phar
Starting program: /var/tmp/apache_1.3.34/php-5.2.1/sapi/cli/php
/var/tmp/apache_1.3.34/php-5.2.1/pear/install-pear-nozlib.phar
[New Thread 1024 (LWP 24857)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 24857)]
0x082c9e0a in _zval_ptr_dtor ()
(gdb) quit

------------------------------------------------------------------------

[2007-02-14 08:10:41] zesigur at free dot fr

Description:
------------
Make install of php-5.2 and php-5.2.1 seems not to work on all our
servers running redhat 7.3 (gcc 2.96, kernel 2.4.29). Configure goes
well, make seems to work also, but we've got a segmentation fault
during make install. 
Everything was OK on these systems with PHP 5.1.6 for instance.

Reproduce code:
---------------
CFLAGS="-O2 -march=i686 -funroll-loops -fomit-frame-pointer
-I/usr/include/openssl/" ./configure --prefix=/usr
--with-exec-dir=/usr/bin --with-apache=../
--with-config-file-path=/servers/apache/conf --enable-track-vars
--disable-debug --enable-safe-mode --enable-inline-optimization
--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

Actual result:
--------------
make install : 
Installing man pages:             /usr/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/lib/php/
make[1]: *** [install-pear-installer] Erreur de segmentation
make: *** [install-pear] Erreur 2


The issue seems to be with the sapi/cli/php binary, when "make install"
launch this line : 
"/var/tmp/php-5.2.1/sapi/cli/php
/var/tmp/php-5.2.1/pear/install-pear-nozlib.phar"
I've got a segmentation fault.

When I run /var/tmp/php-5.1.6/sapi/cli/php
/var/tmp/php-5.2.1/pear/install-pear-nozlib.phar" I don't have
Segmentation fault. So I think it is because of the php cli.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40474&edit=1

Reply via email to