ID: 42597 Updated by: [EMAIL PROTECTED] Reported By: hostmaster at taunusstein dot net Status: Open Bug Type: Compile Failure Operating System: Debian 4.0r0 PHP Version: 5.2.4 New Comment:
[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 \ Previous Comments: ------------------------------------------------------------------------ [2007-09-11 08:35:03] hostmaster at taunusstein dot net 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)] 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 \ 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-perl libgd-graph-perl libgd-securityimage-perl libgd-text-perl libgd-tools libgd2-xpm libgd2-xpm-dev libgdbm3 libglib2.0-0 libgmp3c2 libgnutls13 libgpg-error0 libgpmg1 libgraphicsmagick1 libgssapi-perl libgssapi2 libhesiod0 libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libice-dev libice6 libicu36 libidn11 libima-dbi-perl libintl-perl libio-multiplex-perl libio-socket-ssl-perl libio-string-perl libio-stringy-perl libio-zlib-perl libiodbc2 libisc11 libisccc0 libisccfg1 libjasper-1.701-1 libjasper-1.701-dev libjpeg62 libjpeg62-dev libkadm55 libklibc libkrb5-dev libkrb53 liblcms1 liblcms1-dev libldap-2.3-0 libldap2 libldap2-dev liblocale-gettext-perl liblockdev1 liblockfile1 libltdl3 libltdl3-dev liblwres9 liblzo1 liblzo2-2 liblzo2-dev libmagic-dev libmagic1 libmagick9 libmagick9-dev libmail-spf-query-perl libmailtools-perl libmcrypt-dev libmcrypt4 libmhash-dev libmhash2 libmime-perl libmysqlclient15off libncurses5 libncurses5-dev libncursesw5 libnet-cidr-lite-perl libnet-cidr-perl libnet-daemon-perl libnet-dns-perl libnet-ident-perl libnet-ip-perl libnet-ldap-perl libnet-server-perl libnet-ssleay-perl libnet-xwhois-perl libnewt0.52 libnfsidmap2 libopencdk8 libpam-modules libpam-runtime libpam0g libpam0g-dev libpcap0.8 libpcap0.8-dev libpci2 libpcre3 libperl5.8 libplrpc-perl libpng12-0 libpng12-dev libpopt0 libpq4 libradius1 libradiusclient-ng2 libreadline5 librpcsecgss3 librrd2 librrds-perl libsasl2 libsasl2-2 libsasl2-dev libsasl2-modules libsdl1.2debian libsdl1.2debian-alsa libselinux1 libsensors3 libsepol1 libsigc++-2.0-0c2a libslang2 libslp1 libsm-dev libsm6 libsnmp-base libsnmp-session-perl libsnmp9 libsocket6-perl libsqlite3-0 libss2 libssl-dev libssl0.9.8 libssp0 libstdc++6 libstdc++6-4.1-dev libstring-random-perl libsvga1 libsys-hostname-long-perl libsysfs2 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libtext-template-perl libtext-wrapi18n-perl libtiff4 libtiff4-dev libtiffxx0c2 libtimedate-perl libuniversal-moniker-perl libunix-syslog-perl liburi-perl libusb-0.1-4 libuuid1 libversion-perl libvolume-id0 libwmf-dev libwmf0.2-7 libwrap0 libwww-perl libx11-6 libx11-data libx11-dev libxau-dev libxau6 libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxml2 libxml2-dev libxpm-dev libxpm4 libxt-dev libxt6 libzephyr3 linux-kernel-headers lm-sensors locales login logrotate loop-aes-utils lsb-base lsof lvm-common lvm2 lynx lzop m4 mailx make makedev man-db manpages manpages-de mawk mcrypt mdadm memtester mime-support mktemp mlock module-init-tools mount mrtg mutt myspell-de-at myspell-de-ch myspell-de-de mysql-common nano ncurses-base ncurses-bin net-tools netbase netcat nfs-common nmap nomarch ntp ntpdate openbsd-inetd openssh-client openssh-server openssl openswan openvpn passwd patch pciutils perl perl-base perl-modules perlmagick pkg-config po-debconf portmap ppp pptpd procinfo procps psmisc pwgen python python-apt python-central python-gdbm python-minimal python-support python2.4 python2.4-minimal pyzor quagga radiusclient1 razor readline-common sasl2-bin schroot sed slapd spamassassin spamc speedy-cgi-perl ssh sudo svgalibg1 swaks sysklogd syslinux sysutils sysv-rc sysvinit sysvinit-utils tar tasksel tasksel-data tcl8.4 tcpd tcpdump telnet time tk8.4 tofrodos traceroute trans-de-en ttf-dejavu tzdata ucf ucspi-tcp udev unrar unzip unzoo update-inetd usbutils util-linux vim vim-common vim-runtime vim-tiny vnstat vsftpd wget whiptail whois wipe wngerman x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xfsprogs xinetd xtrans-dev zlib1g zlib1g-dev zoo All packages are official Debian packages. My posted PHP config used an other MySQL version, but problem also occures with original Debian MySQL version. ------------------------------------------------------------------------ [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