#42597 [Fbk-Opn]: make install hangs in 64bit system when ZTS is enabled.
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)] 0x2ac2c9effeeb in __lll_mutex_lock_wait () from /lib/libpthread.so.0 (gdb) bt #0 0x2ac2c9effeeb in __lll_mutex_lock_wait () from /lib/libpthread.so.0 #1 0x0016 in ?? () #2 0x0011 in ?? () #3 0x2ac2c9efd98c in pthread_cond_destroy@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #4 0x 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
#42597 [Fbk-Opn]: make install hangs in 64bit system when ZTS is enabled.
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, I did gdb test, as you recommended: # 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)] 0x2ac2c9effeeb in __lll_mutex_lock_wait () from /lib/libpthread.so.0 (gdb) bt #0 0x2ac2c9effeeb in __lll_mutex_lock_wait () from /lib/libpthread.so.0 #1 0x0016 in ?? () #2 0x0011 in ?? () #3 0x2ac2c9efd98c in pthread_cond_destroy@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #4 0x 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 \ It seems also to be Debian specific, I did a plain vanilla Debian Etch x86_64 installation with following packages (so system is really like production server): # cat ~/pakete.txt Status=Nicht/Installiert/Config/U=Entpackt/Fehlgeschl. Fehler?=(kein)/Halten/R=Neuinst Name acpi acpid adduser amavisd-new apt apt-listchanges apt-utils aptitude arj at autoconf base-files base-passwd bash bcrelay bind9 bind9-host binutils bison bridge-utils bsdmainutils bsdutils build-essential busybox bzip2 ca-certificates cabextract clamav clamav-base clamav-daemon clamav-freshclam comerr-dev console-common console-data console-tools coreutils cpio cpp cpp-4.1 cron cron-apt curl curlftpfs cyrus-admin-2.2 cyrus-clients-2.2 cyrus-common-2.2 cyrus-doc-2.2 cyrus-imapd-2.2 cyrus-murder-2.2 cyrus-pop3d-2.2 cyrus-sasl2-doc cyrus21-admin daemon daemontools db4.4-util debconf debconf-i18n debhelper debian-archive-keyring debianutils debootstrap defoma dhcp3-client dhcp3-common dictionaries-common diff ding djbdns dmidecode dnsutils doc-linux-de dpkg dpkg-dev dselect e2fslibs e2fsprogs ed eggdrop eggdrop-data ethtool exim4-base exim4-config exim4-daemon-heavy fakeroot file findutils flex fontconfig-config ftp fuse-utils g++ g++-4.1 gawk gcc gcc-4.1 gcc-4.1-base gettext gettext-base gnupg gpgv graphicsmagick grep greylistd groff-base grub gsfonts gzip hostname hping2 html2text ifupdown imagemagick info ingerman initramfs-tools initscripts installation-report intltool-debian iproute ipsec-tools iptables iputils-ping ispell klibc-utils klogd language-env laptop-detect ldap-utils less lha libacl1 libarchive-tar-perl libarchive-zip-perl libart-2.0-2 libasound2 libatm1 libattr1 libauthen-sasl-perl libberkeleydb-perl libbind9-0 libbit-vector-perl libblkid1 libboost-program-options1.3 libboost-regex1.33.1 libbz2-1.0 libbz2-dev libc-client-dev libc-client2002edebian libc6 libc6-dev libcap1 libcarp-clan-perl libcgi-perl libcgi-session-perl libclamav2 libclass-accessor-perl libclass-data-inheritable-p libclass-dbi-mysql-perl libclass-dbi-perl libclass-trigger-perl libclone-perl libcomerr2 libcompress-zlib-perl libconsole libconvert-asn1-perl libconvert-binhex-perl libconvert-tnef-perl libconvert-uulib-perl libcurl3 libcurl3-gnutls libcyrus-imap-perl22 libdate-calc-perl libdb4.2 libdb4.3 libdb4.4 libdbd-mysql-perl libdbi-perl libdbix-contextualfetch-per libdevmapper1.02 libdigest-hmac-perl libdigest-md4-perl libdigest-sha1-perl libdirectfb-0.9-25 libdns22 libedit2 libevent1 libexif-dev libexif12 libexpat1 libexpat1-dev libfile-tail-perl libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev libfuse2 libgcc1 libgcrypt11 libgd-gd2
#42597 [Fbk-Opn]: make install hangs
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: 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--- Previous Comments: [2007-09-09 10:12:10] [EMAIL PROTECTED] What if you didn't compile Apache with worker (bad) MPM but used the working prefork MPM instead? Does it work then? And if you insist on getting into trouble, try attach GDB to the hanged PHP process to see where it hangs. [2007-09-08 07:45:41] hostmaster at taunusstein dot net Description: make install hangs Reproduce code: --- Used configuration for Apache 2.2.6: ./configure \ --prefix=/opt/apache-2.2.6/apache \ --disable-maintainer-mode \ --enable-mods-shared=all \ --enable-access \ --enable-auth \ --enable-auth-anon \ --disable-auth-dbm \ --disable-auth-digest \ --with-ldap \ --enable-authnz-ldap \ --enable-ldap \ --enable-file-cache \ --enable-echo \ --enable-charset-lite \ --enable-cache \ --enable-disk-cache \ --enable-mem-cache \ --disable-example \ --enable-ext-filter \ --enable-case-filter \ --enable-case-filter-in \ --enable-deflate \ --enable-include \ --enable-log-config \ --enable-env \ --enable-mime-magic \ --enable-cern-meta \ --enable-expires \ --enable-headers \ --enable-usertrack \ --enable-unique-id \ --enable-setenvif \ --disable-proxy \ --disable-proxy-connect \ --disable-proxy-ftp
#42597 [NEW]: make install hangs
From: hostmaster at taunusstein dot net Operating system: Debian 4.0r0 PHP version: 5.2.4 PHP Bug Type: *Compile Issues Bug description: make install hangs Description: make install hangs Reproduce code: --- Used configuration for Apache 2.2.6: ./configure \ --prefix=/opt/apache-2.2.6/apache \ --disable-maintainer-mode \ --enable-mods-shared=all \ --enable-access \ --enable-auth \ --enable-auth-anon \ --disable-auth-dbm \ --disable-auth-digest \ --with-ldap \ --enable-authnz-ldap \ --enable-ldap \ --enable-file-cache \ --enable-echo \ --enable-charset-lite \ --enable-cache \ --enable-disk-cache \ --enable-mem-cache \ --disable-example \ --enable-ext-filter \ --enable-case-filter \ --enable-case-filter-in \ --enable-deflate \ --enable-include \ --enable-log-config \ --enable-env \ --enable-mime-magic \ --enable-cern-meta \ --enable-expires \ --enable-headers \ --enable-usertrack \ --enable-unique-id \ --enable-setenvif \ --disable-proxy \ --disable-proxy-connect \ --disable-proxy-ftp \ --disable-proxy-http \ --enable-ssl=shared \ --disable-optional-hook-export \ --disable-optional-hook-import \ --disable-optional-fn-import \ --disable-optional-fn-export \ --enable-bucketeer \ --disable-static-support \ --disable-static-htpasswd \ --disable-static-htdigest \ --disable-static-rotatelogs \ --disable-static-logresolve \ --disable-static-htdbm \ --disable-static-ab \ --disable-static-checkgid \ --enable-http \ --enable-mime \ --enable-dav \ --enable-status \ --enable-autoindex \ --enable-asis \ --enable-info \ --enable-suexec \ --enable-cgi \ --enable-cgid \ --enable-dav-fs \ --enable-vhost-alias \ --enable-negotiation \ --enable-dir \ --enable-imap \ --enable-actions \ --enable-speling \ --enable-userdir \ --enable-alias \ --enable-rewrite \ --enable-so \ --with-mpm=worker \ Used Configuration for php 5.2.4: ./configure --prefix=/opt/apache-2.2.6 \ --with-apxs2=/opt/apache-2.2.6/apache/bin/apxs \ --enable-exif \ --enable-track-vars \ --with-calendar=shared \ --enable-safe-mode \ --enable-magic-quotes \ --enable-trans-sid \ --enable-wddx \ --enable-ftp \ --with-zlib \ --with-mysql=/opt/mysql \ --with-mysql-sock=/tmp/mysqld.sock \ --with-mysqli=/opt/mysql/bin/mysql_config \ --with-openssl=/usr \ --with-tsrm-pthreads \ --with-jpeglib \ --with-jpeg-dir=/usr/include \ --with-png-dir=/usr \ --with-png-dir=/usr/include \ --with-xpm-dir=/usr \ --enable-mbstring=all \ --without-yaz \ --with-ldap \ --with-ldap-sasl \ --with-gettext \ --with-gd \ --with-mhash \ --with-mcrypt \ --with-imap \ --with-mime-magic \ --enable-sysvshm \ --with-kerberos \ --with-imap-ssl \ --with-dom \ --with-iconv \ --enable-mbregex \ --with-soap \ --enable-soap \ Expected result: 'make install' should return after installation or failure. php 5.2.3 compiles w/o any problems on same platform. Actual result: -- Following happens: # make install Installing PHP SAPI module: apache2handler /opt/apache-2.2.6/apache/build/instdso.sh SH_LIBTOOL='/opt/apache-2.2.6/apache/build/libtool' libphp5.la /opt/apache-2.2.6/apache/modules /opt/apache-2.2.6/apache/build/libtool --mode=install cp libphp5.la /opt/apache-2.2.6/apache/modules/ cp .libs/libphp5.so /opt/apache-2.2.6/apache/modules/libphp5.so cp .libs/libphp5.lai /opt/apache-2.2.6/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/apache/modules/libphp5.so [activating module `php5' in /opt/apache-2.2.6/apache/conf/httpd.conf] Installing PHP CLI binary:/opt/apache-2.2.6/bin/ Installing PHP CLI man page: /opt/apache-2.2.6/man/man1/ Installing build environment: /opt/apache-2.2.6/lib/php/build/ Installing header files: /opt/apache-2.2.6/include/php/ Installing helper programs: /opt/apache-2.2.6/bin/ program: phpize program: php-config Installing man pages: /opt/apache-2.2.6/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /opt/apache-2.2.6/lib/php/ [PEAR] Console_Getopt - already installed: 1.2.3 [PEAR] Archive_Tar- already installed: 1.3.2 [PEAR] Structures_Graph- already installed: 1.0.2 [PEAR] PEAR - already installed: 1.6.1 Wrote PEAR system config file at: /opt/apache-2.2.6/etc/pear.conf You may want to add: /opt/apache-2.2.6/lib/php to your php.ini include_path ---script hangs--- these processes are running while installation hangs: 24209 pts/2S+ 0:00 /bin/sh -c if test -f pear/install-pear-nozlib.phar /usr/src/php-5.2.4/build/shtool mkdir -p /opt/apache-2.2.6/lib/php; then \??make -s install-pear-installer; \?else \??cat /usr/src/php-5.2.4/pear/install-pear.txt; \?fi 24272 pts/2S+ 0:00 make -s install-pear-installer 24273 pts/2S+ 0:00 /usr/src/php-5.2.4/sapi/cli