ID: 42597 User updated by: hostmaster at taunusstein dot net Reported By: hostmaster at taunusstein dot net -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Debian 4.0r0 PHP Version: 5.2.4 New Comment:
Hello, this is minimum configuration that causes that bug: #!/bin/sh ./configure --prefix=/opt/apache-2.2.6 \ --with-apxs2=/opt/apache-2.2.6/apache/bin/apxs \ --enable-mbstring=all \ --with-zlib \ --with-mysql=/opt/mysql \ --with-mysql-sock=/tmp/mysqld.sock \ --with-mysqli=/opt/mysql/bin/mysql_config \ Without --with-mysqli=/opt/mysql/bin/mysql_config make install does not hang. Obviously there is a problem with mysqli. Previous Comments: ------------------------------------------------------------------------ [2007-09-11 12:29:59] [EMAIL PROTECTED] Try cut down your configure line to bare minimum which is needed to reproduce this. And this is totally unnecessary: --with-tsrm-pthreads Also, after you run configure, with that configure line you should see several warnings about unknown configure options. ------------------------------------------------------------------------ [2007-09-11 12:27:57] [EMAIL PROTECTED] [EDIT: removed unrelated information] # gdb ./sapi/cli/php GNU gdb 6.4.90-debian Copyright (C) 2006 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 "x86_64-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". warning: not using untrusted file "/usr/src/php-5.2.4/.gdbinit" (gdb) r -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 /opt/apache-2.2.6-test/lib/php -b /opt/apache-2.2.6-test/bin Starting program: /usr/src/php-5.2.4/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 /opt/apache-2.2.6-test/lib/php -b /opt/apache-2.2.6-test/bin [Thread debugging using libthread_db enabled] [New Thread 47016115236496 (LWP 8206)] [PEAR] Console_Getopt: upgrade to a newer version (1.2.3 is not newer than 1.2.3) [PEAR] Archive_Tar: upgrade to a newer version (1.3.2 is not newer than 1.3.2) [PEAR] Structures_Graph: upgrade to a newer version (1.0.2 is not newer than 1.0.2) [PEAR] PEAR: upgrade to a newer version (1.6.1 is not newer than 1.6.1) Program received signal SIGINT, Interrupt. [Switching to Thread 47016115236496 (LWP 8206)] 0x00002ac2c9effeeb in __lll_mutex_lock_wait () from /lib/libpthread.so.0 (gdb) bt #0 0x00002ac2c9effeeb in __lll_mutex_lock_wait () from /lib/libpthread.so.0 #1 0x0000000000000016 in ?? () #2 0x0000000000000011 in ?? () #3 0x00002ac2c9efd98c in pthread_cond_destroy@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #4 0x0000000000000000 in ?? () (gdb) Problem does not occur, when I used a minimum PHP configuration like ./configure --prefix=/opt/apache-2.2.6-test \ --with-apxs2=/opt/apache-2.2.6-test/apache/bin/apxs \ ------------------------------------------------------------------------ [2007-09-10 10:18:55] [EMAIL PROTECTED] I can't reproduce it on 64bit Linux. Try to get the place where it hangs: # gdb ./sapi/cli/php gdb> r -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 /opt/apache-2.2.6/lib/php -b /opt/apache-2.2.6/bin Press Ctrl-C when it hangs and 'bt' to get the backtrace. Are ALL these configure options required to replicate it? Would be good to squeeze this list to the minimum. ------------------------------------------------------------------------ [2007-09-10 09:49:52] [EMAIL PROTECTED] Possibly related to bug #42491 ------------------------------------------------------------------------ [2007-09-10 05:59:54] hostmaster at taunusstein dot net make install does not hang in prefork mode. On 32 bit it does compile and install in prefork and worker mode. Further tests on 64 bit environment (worker) yielded into following msgs: # make install Installing PHP SAPI module: apache2handler /opt/apache-2.2.6-test/apache/build/instdso.sh SH_LIBTOOL='/opt/apache-2.2.6-test/apache/build/libtool' libphp5.la /opt/apache-2.2.6-test/apache/modules /opt/apache-2.2.6-test/apache/build/libtool --mode=install cp libphp5.la /opt/apache-2.2.6-test/apache/modules/ cp .libs/libphp5.so /opt/apache-2.2.6-test/apache/modules/libphp5.so cp .libs/libphp5.lai /opt/apache-2.2.6-test/apache/modules/libphp5.la libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.2.4/libs' chmod 755 /opt/apache-2.2.6-test/apache/modules/libphp5.so [activating module `php5' in /opt/apache-2.2.6-test/apache/conf/httpd.conf] Installing PHP CLI binary: /opt/apache-2.2.6-test/bin/ Installing PHP CLI man page: /opt/apache-2.2.6-test/man/man1/ Installing build environment: /opt/apache-2.2.6-test/lib/php/build/ Installing header files: /opt/apache-2.2.6-test/include/php/ Installing helper programs: /opt/apache-2.2.6-test/bin/ program: phpize program: php-config Installing man pages: /opt/apache-2.2.6-test/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /opt/apache-2.2.6-test/lib/php/ Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 720 Warning: Invalid argument supplied for foreach() in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 1207 Notice: Undefined variable: ret in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 1269 Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 720 Warning: Invalid argument supplied for foreach() in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 1207 Notice: Undefined variable: ret in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 1269 Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 720 Warning: Invalid argument supplied for foreach() in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 1207 Notice: Undefined variable: ret in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 1269 Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 740 Warning: array_merge(): Argument #2 is not an array in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 766 Notice: Undefined index: pearinstaller in phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on line 777 [PEAR] Console_Getopt: upgrade to a newer version (1.2.3 is not newer than 1.2.3) [PEAR] Archive_Tar: upgrade to a newer version (1.3.2 is not newer than 1.3.2) [PEAR] Structures_Graph: upgrade to a newer version (1.0.2 is not newer than 1.0.2) [PEAR] PEAR: upgrade to a newer version (1.6.1 is not newer than 1.6.1) ---hangs here--- ------------------------------------------------------------------------ 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/42597 -- Edit this bug report at http://bugs.php.net/?id=42597&edit=1