#42625 [Asn]: When mysql and mysqli enabled both together, php CLI hangs when ZTS is enabled
ID: 42625 User updated by: jama at mk dot cvut dot cz Reported By: jama at mk dot cvut dot cz Status: Assigned Bug Type: MySQL related Operating System: Gentoo/Linux PHP Version: 5.2.4 Assigned To: andrey New Comment: I have updated mysql to: mysql_config --version 5.1.22-rc Downloaded new snapshots and new report seems OK for php.. ./test.report.sh php-5.2.4.log OK php-5.2.4-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/bin/mysql_config OK php-5.2.4-mysqli-mysql ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config php5.2-200710051030.log OK php5.2-200710051030-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/bin/mysql_config OK php5.2-200710051030-mysqli-mysql ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config php6.0-200710051030.log OK php6.0-200710051030-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/bin/mysql_config OK php6.0-200710051030-mysqli-mysql ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config OK php6.0-200710051030-mysqli-mysqlng ./configure --disable-all --enable-maintainer-zts --with-mysql=mysql --with-mysqli=mysqlnd Previous Comments: [2007-09-24 09:39:40] jama at mk dot cvut dot cz tested on php6.0-200709240630 mysqli OK mysql+mysqli BAD mysql+mysqlng OK I created simple bash script for building and testing php snapshots for this bug. It's on http://pastebin.com/m68372238 Runned in this case as ". ./test.sh php6.0-200709240630.tar.bz2 php6.0-200709240630 php6.0-200709240630" Manualy killed when php -i was hanging on second test and result looks like this: # cat php6.0-200709240630.log OK php6.0-200709240630-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/bin/mysql_config BAD php6.0-200709240630-mysqli-mysql ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config OK php6.0-200709240630-mysqli-mysqlng ./configure --disable-all --enable-maintainer-zts --with-mysql=mysql --with-mysqli=mysqlnd [2007-09-22 08:47:41] [EMAIL PROTECTED] Hi, - can you try building PHP6? - if still han gs, can you try building with mysqlnd (PHP6, --with-mysqli=mysqlnd --with-mysql=mysql) and see if there is still a problem Andrey [2007-09-19 14:08:19] [EMAIL PROTECTED] I can't reproduce with MySQL 5.1.22 [2007-09-19 13:40:39] [EMAIL PROTECTED] Propably some issue with the BETA mysql version used. Assigned to the mysql maintainer. [2007-09-19 13:39:33] [EMAIL PROTECTED] # mysql_config --version 5.0.27 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/42625 -- Edit this bug report at http://bugs.php.net/?id=42625&edit=1
#42625 [Fbk->Opn]: When mysql and mysqli enabled both together, php CLI hangs when ZTS is enabled
ID: 42625 User updated by: jama at mk dot cvut dot cz Reported By: jama at mk dot cvut dot cz -Status: Feedback +Status: Open Bug Type: MySQL related Operating System: Gentoo/Linux PHP Version: 5.2.4 Assigned To: andrey New Comment: tested on php6.0-200709240630 mysqli OK mysql+mysqli BAD mysql+mysqlng OK I created simple bash script for building and testing php snapshots for this bug. It's on http://pastebin.com/m68372238 Runned in this case as ". ./test.sh php6.0-200709240630.tar.bz2 php6.0-200709240630 php6.0-200709240630" Manualy killed when php -i was hanging on second test and result looks like this: # cat php6.0-200709240630.log OK php6.0-200709240630-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/bin/mysql_config BAD php6.0-200709240630-mysqli-mysql ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config OK php6.0-200709240630-mysqli-mysqlng ./configure --disable-all --enable-maintainer-zts --with-mysql=mysql --with-mysqli=mysqlnd Previous Comments: [2007-09-22 08:47:41] [EMAIL PROTECTED] Hi, - can you try building PHP6? - if still han gs, can you try building with mysqlnd (PHP6, --with-mysqli=mysqlnd --with-mysql=mysql) and see if there is still a problem Andrey [2007-09-19 14:08:19] [EMAIL PROTECTED] I can't reproduce with MySQL 5.1.22 [2007-09-19 13:40:39] [EMAIL PROTECTED] Propably some issue with the BETA mysql version used. Assigned to the mysql maintainer. [2007-09-19 13:39:33] [EMAIL PROTECTED] # mysql_config --version 5.0.27 [2007-09-19 13:38:49] [EMAIL PROTECTED] I can not reproduce this. 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/42625 -- Edit this bug report at http://bugs.php.net/?id=42625&edit=1
#42625 [Opn]: When mysql and mysqli enabled both together, php cli hangs
ID: 42625 User updated by: jama at mk dot cvut dot cz Reported By: jama at mk dot cvut dot cz Status: Open Bug Type: MySQL related Operating System: Gentoo/Linux PHP Version: 5.2.4 New Comment: if sapi/cgi/php-cgi -i can be considered as CGI check, so it doesn't hang Previous Comments: [2007-09-13 05:27:08] jama at mk dot cvut dot cz /usr/bin/mysql_config --version 5.1.15-beta but with same mysql and php-5.2.2 it was OK. CGI I'll try later. [2007-09-13 04:42:14] [EMAIL PROTECTED] Can you check CGI to see if you can reproduce this. What version of libmysql are you linking against? [2007-09-12 16:15:55] Martin dot Jansa at mk dot cvut dot cz It hangs only with mysql, mysqli AND --enable-maintainer-zts. I don't want to disable maintainer-zts, because I'm not using only cli/cgi in real installation. :) This 3 configure parameters is the smallest subset of those I'm normally using. [2007-09-12 11:50:41] [EMAIL PROTECTED] Why are you using --enable-maintainer-zts in your configure line? You really don't need this for CLI/CGI.. ---- [2007-09-11 18:48:11] jama at mk dot cvut dot cz Description: when compiled vanilla php-5.2.4 with this params ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config it's ok when added mysql support too ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config it's bad even sapi/cli/php -i hangs forever on futex call strace sapi/cli/php -i write(1, "questions about PHP licensing, p"..., 63questions about PHP licensing, please contact [EMAIL PROTECTED] ) = 63 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 futex(0x2adbeb81cac0, FUTEX_WAIT, 2, NULL The same behavior with php5.2-200709110830. Reproduce code: --- tar xjvf php-5.2.4.tar.bz2 mv php-5.2.4 php-5.2.4-mysqli cp -r php-5.2.4-mysqli php-5.2.4-mysql-mysqli cd php-5.2.4-mysql-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config make sapi/cli/php -i #HANGS HERE# cd ../php-5.2.4-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config make sapi/cli/php -i #DOESN'T HANG HERE# Diff between those 2 build dirs on my pc.. http://pastebin.com/m9c448da Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.2.2-alpha20070905/amd64-vanilla, glibc-2.6.1-r0, 2.6.23-rc5-git1-JaMa x86_64) = System uname: 2.6.23-rc5-git1-JaMa x86_64 AMD Athlon(tm) 64 Processor 3700+ Timestamp of tree: Tue, 11 Sep 2007 10:01:01 + ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc4-r1 sys-apps/sandbox:1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18.50.0.1 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8" Expected result: php cli working Actual result: -- php cli hanging on every occasion -- Edit this bug report at http://bugs.php.net/?id=42625&edit=1
#42625 [Fbk->Opn]: When mysql and mysqli enabled both together, php cli hangs
ID: 42625 User updated by: jama at mk dot cvut dot cz Reported By: jama at mk dot cvut dot cz -Status: Feedback +Status: Open Bug Type: MySQL related Operating System: Gentoo/Linux PHP Version: 5.2.4 New Comment: /usr/bin/mysql_config --version 5.1.15-beta but with same mysql and php-5.2.2 it was OK. CGI I'll try later. Previous Comments: [2007-09-13 04:42:14] [EMAIL PROTECTED] Can you check CGI to see if you can reproduce this. What version of libmysql are you linking against? [2007-09-12 16:15:55] Martin dot Jansa at mk dot cvut dot cz It hangs only with mysql, mysqli AND --enable-maintainer-zts. I don't want to disable maintainer-zts, because I'm not using only cli/cgi in real installation. :) This 3 configure parameters is the smallest subset of those I'm normally using. [2007-09-12 11:50:41] [EMAIL PROTECTED] Why are you using --enable-maintainer-zts in your configure line? You really don't need this for CLI/CGI.. ---- [2007-09-11 18:48:11] jama at mk dot cvut dot cz Description: when compiled vanilla php-5.2.4 with this params ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config it's ok when added mysql support too ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config it's bad even sapi/cli/php -i hangs forever on futex call strace sapi/cli/php -i write(1, "questions about PHP licensing, p"..., 63questions about PHP licensing, please contact [EMAIL PROTECTED] ) = 63 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 futex(0x2adbeb81cac0, FUTEX_WAIT, 2, NULL The same behavior with php5.2-200709110830. Reproduce code: --- tar xjvf php-5.2.4.tar.bz2 mv php-5.2.4 php-5.2.4-mysqli cp -r php-5.2.4-mysqli php-5.2.4-mysql-mysqli cd php-5.2.4-mysql-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config make sapi/cli/php -i #HANGS HERE# cd ../php-5.2.4-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config make sapi/cli/php -i #DOESN'T HANG HERE# Diff between those 2 build dirs on my pc.. http://pastebin.com/m9c448da Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.2.2-alpha20070905/amd64-vanilla, glibc-2.6.1-r0, 2.6.23-rc5-git1-JaMa x86_64) = System uname: 2.6.23-rc5-git1-JaMa x86_64 AMD Athlon(tm) 64 Processor 3700+ Timestamp of tree: Tue, 11 Sep 2007 10:01:01 + ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc4-r1 sys-apps/sandbox:1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18.50.0.1 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8" Expected result: php cli working Actual result: -- php cli hanging on every occasion -- Edit this bug report at http://bugs.php.net/?id=42625&edit=1
#42625 [NEW]: When mysql and mysqli enabled both together, php cli hangs
From: jama at mk dot cvut dot cz Operating system: Gentoo/Linux PHP version: 5.2.4 PHP Bug Type: MySQL related Bug description: When mysql and mysqli enabled both together, php cli hangs Description: when compiled vanilla php-5.2.4 with this params ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config it's ok when added mysql support too ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config it's bad even sapi/cli/php -i hangs forever on futex call strace sapi/cli/php -i write(1, "questions about PHP licensing, p"..., 63questions about PHP licensing, please contact [EMAIL PROTECTED] ) = 63 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 futex(0x2adbeb81cac0, FUTEX_WAIT, 2, NULL The same behavior with php5.2-200709110830. Reproduce code: --- tar xjvf php-5.2.4.tar.bz2 mv php-5.2.4 php-5.2.4-mysqli cp -r php-5.2.4-mysqli php-5.2.4-mysql-mysqli cd php-5.2.4-mysql-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config make sapi/cli/php -i #HANGS HERE# cd ../php-5.2.4-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config make sapi/cli/php -i #DOESN'T HANG HERE# Diff between those 2 build dirs on my pc.. http://pastebin.com/m9c448da Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.2.2-alpha20070905/amd64-vanilla, glibc-2.6.1-r0, 2.6.23-rc5-git1-JaMa x86_64) = System uname: 2.6.23-rc5-git1-JaMa x86_64 AMD Athlon(tm) 64 Processor 3700+ Timestamp of tree: Tue, 11 Sep 2007 10:01:01 + ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc4-r1 sys-apps/sandbox:1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18.50.0.1 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8" Expected result: php cli working Actual result: -- php cli hanging on every occasion -- Edit bug report at http://bugs.php.net/?id=42625&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42625&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42625&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42625&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42625&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42625&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42625&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42625&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42625&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42625&r=support Expected behavior:http://bugs.php.net/fix.php?id=42625&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42625&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42625&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42625&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42625&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42625&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42625&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42625&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42625&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42625&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42625&r=mysqlcfg