ID: 30993 Updated by: [EMAIL PROTECTED] Reported By: sirfan98cs at yahoo dot co dot uk -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: RedHat 9 PHP Version: 5.0.2 New Comment:
Read this manual page and note about openssl: http://www.php.net/manual/en/ref.pfpro.php (this is NOT PHP bug!!!!) Previous Comments: ------------------------------------------------------------------------ [2004-12-15 18:09:21] ucs_whb at shsu dot edu I am seeing this same problem. Red Hat Linux 9 and Fedora Core 2/3 give the same problem. It does appear to be in the version function of Payflow Pro. As soon as I remove the --with-pfpro flags from the compile all is well again. See back trace for details: Version information: httpd-2.0.52 cracklib-2.7 openssl-0.9.7e pdflib-4.0.3 php-4.3.9 pfpro_linuxrh9 glibc-2.3.3-74 gcc-3.4.2-6.fc3 This is on Fedora Core 3, but happens on RH 9 Linux as well. Here is where the cli version of php segfaults on the install of pear with pfpro linked to from the php source. The actual command being run by the pear-installer makefile target is this: /usr/local/src/apache/php-4.3.9/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 /usr/local/src/apache/php-4.3.9/pear/install-pear.php -d /usr/local/php/lib/php/PEAR -b /usr/local/php/bin/ /usr/local/src/apache/php-4.3.9/pear/package-*.xml Here is a back trace of just trying to run /sapi/cli/php, which segfaults without any arguments: GNU gdb Red Hat Linux (6.1post-1.20040607.43rh) Copyright 2004 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-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run Starting program: /usr/local/src/apache/php-4.3.9/sapi/cli/php (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread -151058752 (LWP 22204)] (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -151058752 (LWP 22204)] 0x0096b818 in strcmp () from /lib/tls/libc.so.6 (gdb) bt #0 0x0096b818 in strcmp () from /lib/tls/libc.so.6 #1 0x0087fe34 in PNVersion () from /usr/local/lib/libpfpro.so #2 0x0087defe in PNVersion () from /usr/local/lib/libpfpro.so #3 0x0087dd2a in PNVersion () from /usr/local/lib/libpfpro.so #4 0x0087ffc8 in PNVersion () from /usr/local/lib/libpfpro.so #5 0x00882bd7 in PNVersion () from /usr/local/lib/libpfpro.so #6 0x081ed06d in OpenSSL_add_all_ciphers () #7 0x08241580 in des_cfb8 () #8 0x082489dc in ?? () #9 0xfefff818 in ?? () #10 0x0807b226 in zm_startup_openssl () #11 0x081d2d35 in zend_startup_module () #12 0x0819c780 in php_startup_extensions () #13 0x081e64ac in php_startup_internal_extensions () #14 0x0819cc9e in php_module_startup () #15 0x081e55fe in main () (gdb) quit And here is php segfaulting from the command line after trying to link against pfpro: GNU gdb Red Hat Linux (6.1post-1.20040607.43rh) Copyright 2004 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-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run Starting program: /bin/php (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread -151058752 (LWP 22215)] (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -151058752 (LWP 22215)] 0x0096b818 in strcmp () from /lib/tls/libc.so.6 (gdb) bt #0 0x0096b818 in strcmp () from /lib/tls/libc.so.6 #1 0x00456e34 in PNVersion () from /usr/local/lib/libpfpro.so #2 0x00454efe in PNVersion () from /usr/local/lib/libpfpro.so #3 0x00454d2a in PNVersion () from /usr/local/lib/libpfpro.so #4 0x00456fc8 in PNVersion () from /usr/local/lib/libpfpro.so #5 0x00459bd7 in PNVersion () from /usr/local/lib/libpfpro.so #6 0x081ed06d in OpenSSL_add_all_ciphers () #7 0x08241580 in des_cfb8 () #8 0x082489dc in ?? () #9 0xfefff868 in ?? () #10 0x0807b226 in zm_startup_openssl () #11 0x081d2d35 in zend_startup_module () #12 0x0819c780 in php_startup_extensions () #13 0x081e64ac in php_startup_internal_extensions () #14 0x0819cc9e in php_module_startup () #15 0x081e55fe in main () (gdb) As you can see the back traces are pretty much identical. PHP will work fine from the web side of things, but segfaults every time from the command line. Any help is greatly appreciated. Thanks, --will ------------------------------------------------------------------------ [2004-12-14 22:18:08] ucs_jrc at shsu dot edu We observe the same results when attempting 4.3.9. We are running Fedora Core 2. It appears to be in the pfpro_version command from what we can tell. I'll see about getting a stack trace if that would be useful. ------------------------------------------------------------------------ [2004-12-06 06:18:36] sirfan98cs at yahoo dot co dot uk Description: ------------ Unable to INSTALL PHP with PEAR. Thuogh I am having pear with php distribution. I am getting thins problem from version 5.0.1, 5.0.2 and now with 5.0.3RC1 pls help me out. Reproduce code: --------------- This is a Installation bug happens when I send make install. The problem does'nt arise if I install the php without pear option i.e. in the configuretion i need to give option of --without-php. Installation error comes when I say make install make[1]: *** [install-pear-installer] Segmentation fault make: *** [install-pear] Error 2 my configuretion parameters ./configure --with-apxs=/usr/local/httpd-1.3.31/bin/apxs --with-xml --enable-calendar --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-soap --enable-bcmath --enable-ftp --enable-magic-quotes --with-mysql=/usr/local/mysql-standard-5.0.0-alpha-pc-linux-i686/ --enable-discard-path --enable-sockets --enable-track-vars --enable-versioning --with-zlib --with-pfpro=/usr/local/verisign/payflowpro/linuxrh9 --with-pgsql=/usr/local/pgsql --enable-cli --enable-sockets --enable-pcntl --enable-posix --enable-pcre --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-curl=/usr/local/bin/curl Expected result: ---------------- I need the system sould install perfectly with PEAR. Actual result: -------------- Installing PHP SAPI module: apache [activating module `php5' in /usr/local/httpd-1.3.31/conf/httpd.conf] cp libs/libphp5.so /usr/local/httpd-1.3.31/libexec/libphp5.so chmod 755 /usr/local/httpd-1.3.31/libexec/libphp5.so cp /usr/local/httpd-1.3.31/conf/httpd.conf /usr/local/httpd-1.3.31/conf/httpd.conf.bak cp /usr/local/httpd-1.3.31/conf/httpd.conf.new /usr/local/httpd-1.3.31/conf/httpd.conf rm /usr/local/httpd-1.3.31/conf/httpd.conf.new Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PEAR environment: /usr/local/lib/php/ [PEAR] Archive_Tar - already installed: 1.1 [PEAR] Console_Getopt - already installed: 1.2 make[1]: *** [install-pear-installer] Segmentation fault make: *** [install-pear] Error 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30993&edit=1