ID: 45066
Updated by: [EMAIL PROTECTED]
Reported By: dirk at bean-it dot nl
-Status: Open
+Status: Feedback
Bug Type: MySQL related
Operating System: Debian 4.0 / x86_64
PHP Version: 5.2.6
New Comment:
Can you try with valgrind:
# USE_ZEND_ALLOC=0 valgrind --leak-check=full sapi/cli/php -i
Previous Comments:
------------------------------------------------------------------------
[2008-07-15 15:08:08] dirk at bean-it dot nl
Just out of curiosity, I've tried to compile the 5.2 and 5.3 snapshots
using:
./configure --disable-all --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr
--with-mysqli=/usr/bin/mysql_config
They both hang like 5.2.6.
Cheers,
Dirk
------------------------------------------------------------------------
[2008-07-15 14:58:42] dirk at bean-it dot nl
Hi,
Thank you for your replies. First off all, some answers:
OS: Debian 4.0 (etch)
Kernel: Linux 2.6.18-6-amd64 #1 SMP 2008 x86_64 GNU/Linux (Stock Debian
kernel)
CPU: 2 x Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
Mysql version:
mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (x86_64) (Stock
Debian Mysql 5.0)
Apache version: apache2-mpm-prefork 2.2.3-4+etch4
Running:
# rm config.cache
# ./configure --disable-all --with-apxs2=/usr/bin/apxs2 && make clean
&& make
# sapi/cli/php -v
Gives me a working php, no problem.
Running:
# rm config.cache
# ./configure --disable-all --with-apxs2=/usr/bin/apxs2 --with-mysqli
--enable-mysqlnd && make clean && make
# sapi/cli/php -v
Gives me a working php, no problem. Used php-mysqlnd-5.0.1-beta.
Running:
# rm config.cache
# ./configure --disable-all --with-apxs2=/usr/bin/apxs2 --with-mysqli
--enable-mysqlnd --with-mysql=/usr && make clean && make
# sapi/cli/php -v
Gives me a working php, no problem.
Just to be very sure, I've tried to build php again, using a fresh
source tree and this cmd line:
./configure --disable-all --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr
--with-mysqli=/usr/bin/mysql_config
Which still gives me the non-responsive PHP.
Kind regards,
Dirk
------------------------------------------------------------------------
[2008-07-14 21:04:18] [EMAIL PROTECTED]
Also it might be good to know if you can reproduce this without
enabling any mysql stuff at all. Try this configure line:
# rm config.cache
# ./configure --disable-all --with-apxs2 && make clean && make
# sapi/cli/php -v
That should work? What Apache MPM have you enabled btw?
Note: Please give us also the basic info Uwe asked above..
------------------------------------------------------------------------
[2008-07-14 19:42:55] [EMAIL PROTECTED]
No idea, but I'd like to know what "Linux x86" means. What's the OS,
what's the CPU, what MySQL version. Does the problem exist with mysqlnd?
------------------------------------------------------------------------
[2008-07-07 08:49:43] dirk at bean-it dot nl
Ok, i've tried to make a backtrace. Since the program just hangs and
doesn't crash, I've did it this way:
cd php-5.2.6/
gdb sapi/cli/php
(gdb) run -i
<wait until it hangs, then hit ctl-c to exit the program>
(gdb) bt
Output
Program received signal SIGINT, Interrupt.
[Switching to Thread 47510530549152 (LWP 2089)]
0x00002b35e7b87eeb in __lll_mutex_lock_wait () from
/lib/libpthread.so.0
(gdb) backtrace
#0 0x00002b35e7b87eeb in __lll_mutex_lock_wait () from
/lib/libpthread.so.0
#1 0x0000000000000016 in ?? ()
#2 0x000000004871d7d2 in ?? ()
#3 0x00002b35e7b8598c in pthread_cond_destroy@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#4 0x0000000000000000 in ?? ()
Hope this gives a clou... If I should do something else, please let me
know!
------------------------------------------------------------------------
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/45066
--
Edit this bug report at http://bugs.php.net/?id=45066&edit=1