ID: 45066 User updated by: dirk at bean-it dot nl Reported By: dirk at bean-it dot nl -Status: Feedback +Status: Open Bug Type: MySQL related Operating System: Debian 4.0 / x86_64 PHP Version: 5.2.6 New Comment:
OK, here is the full valgrind output, minus the php output, to shorten things a little. Cheers, Dirk ==29926== Memcheck, a memory error detector. ==29926== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. ==29926== Using LibVEX rev 1658, a library for dynamic binary translation. ==29926== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. ==29926== Using valgrind-3.2.1-Debian, a dynamic binary instrumentation framework. ==29926== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al. ==29926== For more details, rerun with: -v ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010AB3: (within /lib/ld-2.3.6.so) ==29926== by 0x4006CB6: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4D4: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010AC2: (within /lib/ld-2.3.6.so) ==29926== by 0x4006CB6: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4D4: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010AD1: (within /lib/ld-2.3.6.so) ==29926== by 0x4006CB6: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4D4: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010C47: (within /lib/ld-2.3.6.so) ==29926== by 0x4006E47: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4D4: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010C47: (within /lib/ld-2.3.6.so) ==29926== by 0x400B8A2: (within /lib/ld-2.3.6.so) ==29926== by 0x400733A: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4D4: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010C47: (within /lib/ld-2.3.6.so) ==29926== by 0x400B8A2: (within /lib/ld-2.3.6.so) ==29926== by 0x572CF2B: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4D4: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== by 0x4EC3103: mysql_server_init (in /usr/lib/libmysqlclient_r.so.15.0.0) ==29926== by 0x44DD5B: zm_startup_mysqli (mysqli.c:498) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010AEE: (within /lib/ld-2.3.6.so) ==29926== by 0x4006CB6: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4F2: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010AF9: (within /lib/ld-2.3.6.so) ==29926== by 0x4006CB6: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4F2: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010B04: (within /lib/ld-2.3.6.so) ==29926== by 0x4006CB6: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4F2: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Conditional jump or move depends on uninitialised value(s) ==29926== at 0x4010C61: (within /lib/ld-2.3.6.so) ==29926== by 0x4006E47: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4F2: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== Invalid read of size 8 ==29926== at 0x4010C54: (within /lib/ld-2.3.6.so) ==29926== by 0x4008D38: (within /lib/ld-2.3.6.so) ==29926== by 0x4004CF2: (within /lib/ld-2.3.6.so) ==29926== by 0x4006D6C: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4F2: (within /lib/libc-2.3.6.so) ==29926== Address 0x596D160 is 16 bytes inside a block of size 23 alloc'd ==29926== at 0x4A1B858: malloc (vg_replace_malloc.c:149) ==29926== by 0x4007113: (within /lib/ld-2.3.6.so) ==29926== by 0x572D230: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572CCC7: _dl_open (in /lib/libc-2.3.6.so) ==29926== by 0x572F467: (within /lib/libc-2.3.6.so) ==29926== by 0x400B7D0: (within /lib/ld-2.3.6.so) ==29926== by 0x572F4B1: __libc_dlopen_mode (in /lib/libc-2.3.6.so) ==29926== by 0x570A426: __nss_lookup_function (in /lib/libc-2.3.6.so) ==29926== by 0x570A4F2: (within /lib/libc-2.3.6.so) ==29926== by 0x5710E82: getservbyname_r (in /lib/libc-2.3.6.so) ==29926== by 0x5710C43: getservbyname (in /lib/libc-2.3.6.so) ==29926== ==29926== ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 9 from 1) ==29926== malloc/free: in use at exit: 1,111,452 bytes in 7,522 blocks. ==29926== malloc/free: 9,367 allocs, 1,845 frees, 1,830,053 bytes allocated. ==29926== For counts of detected errors, rerun with: -v ==29926== searching for pointers to 7,522 not-freed blocks. ==29926== checked 1,347,432 bytes. ==29926== ==29926== LEAK SUMMARY: ==29926== definitely lost: 0 bytes in 0 blocks. ==29926== possibly lost: 0 bytes in 0 blocks. ==29926== still reachable: 1,111,452 bytes in 7,522 blocks. ==29926== suppressed: 0 bytes in 0 blocks. ==29926== Reachable blocks (those to which a pointer was found) are not shown. ==29926== To see them, rerun with: --show-reachable=yes Previous Comments: ------------------------------------------------------------------------ [2008-07-15 20:42:39] [EMAIL PROTECTED] Can you try with valgrind: # USE_ZEND_ALLOC=0 valgrind --leak-check=full sapi/cli/php -i ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ 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