ID: 25242
Updated by: [email]iliaaphp.net[/email]
Reported By: [email]shimiphp.net[/email]
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux 2.4.18-27.7.x (RH7.2)
PHP Version: 4.3.3
New Comment:

Could you provide a small sample script (besides PEAR make install)
that could be used to te the crash and generate a backtrace of
the crash.


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

[2003-08-26 13:10:21] [email]shimiphp.net[/email]

Just checked with PHP4.3.3RC4. The problem does not exist there. Most
probably it's something that changed between 4.3.3RC4 and the final
release, then...

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

[2003-08-26 09:08:53] [email]shimiphp.net[/email]

Appears that the problem is with PHP scripts that run through the CLI
in general. I have a few scripts who run from the commandline via
crond, and some of them now segfault as well, so if the PEAR installer
uses some PHP code, it could be that they both fail for the same
reason...

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

[2003-08-25 21:27:00] [email]shimiphp.net[/email]

Description:
------------
I compiled PHP4.3.3 with the same configure line that I had for
PHP4.3.2 and PHP4.3.3RC2 that used to work.

Appears that now, it does not.

[root php-4.3.3]# make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing shared extensions:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2

The configure line is as follows:
[root php-4.3.3]# php -i | grep configure
Configure Command => './configure' '--enable-memory-limit'
'--enable-zend-multibyte' '--with-tsrm-pthreads' '--with-tsrm-pth'
'--with-gzip' '--enable-yp' '--with-sablot-js' '--enable-wddx'
'--enable-snmp' '--enable-shmop' '--with-mysql' '--enable-mbregex'
'--enable-mbstring' '--with-ldap' '--with-imap-ssl' '--with-iconv'
'--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv'
'--enable-ftp' '--with-dba' '--enable-calendar' '--enable-bcmath'
'--with-bz2' '--with-zlib' '--with-openssl' '--enable-fastcgi'
'--with-apxs' '--with-imap' '--with-gettext' '--with-kerberos'

As mentioned before, it's the same configure line from the previous
versions, which always worked.

I would attach a gdb backtrace, just that I don't know what exactly did
segfault...

I

Actual result:
--------------
make install not completeing it's job (it is to be noted that PHP was
installed as an apache SAPI module, and the CLI was, too, and even the
SQLite extension that runs on PEAR, is loaded into PHP, but I still
don't like the fact it didn't finish the installation process).


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


--
Edit this bug report at [url]http://bugs.php.net/?id=25242&edit=1[/url]