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 unfinished ...
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=42625edit=1