Bug #68115 [NEW]: php-fpm process stuck in a loop (xbuf_format_converter)

From: Date: Mon, 29 Sep 2014 09:20:53 +0000
Subject: Bug #68115 [NEW]: php-fpm process stuck in a loop (xbuf_format_converter)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187744@lists.php.net to get a copy of this message
From: champetier dot etienne at gmail dot com Operating system: rhel 6.5 PHP version: 5.4.33 Package: Unknown/Other Function Bug Type: Bug Bug description:php-fpm process stuck in a loop (xbuf_format_converter) Description: ------------ Hi, I'm using php-fpm 5.4.31 and i have 1 php-fpm process stuck at 100% in xbuf_format_converter. I know it's not latest but it's not on a production server (yet) so i can keep it looping, and i've root acces on the machine to debug. I only have php54-debuginfo-5.4.31-1.ius.el6.x86_64 installed, no other debuginfo rpm. Please guide me if you need more info (i'm really no gdb expert) Actual result: -------------- # gdb php-fpm 44361 GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/sbin/php-fpm...Reading symbols from /usr/lib/debug/usr/sbin/php-fpm.debug...done. done. Attaching to program: /usr/sbin/php-fpm, process 44361 Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libcrypt.so.1 .... .... xbuf_format_converter (xbuf=0x7ffff9dc0a30, fmt=0x6f9a7c "d to be %s, %s given", ap=0x7ffff9dc0ad0) at /usr/src/debug/php-5.4.31/main/spprintf.c:779 779 if (adjust_width && adjust == LEFT && min_width > s_len) .... (gdb) bt #0 xbuf_format_converter (xbuf=0x7ffff9dc0a30, fmt=0x6f9a7c "d to be %s, %s given", ap=0x7ffff9dc0ad0) at /usr/src/debug/php-5.4.31/main/spprintf.c:779 #1 0x00000000005867f4 in vspprintf (pbuf=0x2e44b40, max_len=0, format=<value optimized out>, ap=<value optimized out>) at /usr/src/debug/php-5.4.31/main/spprintf.c:799 #2 0x00000000005dd3c7 in zend_error (type=2, format=0x6f9a60 "%s%s%s() expects parameter %d to be %s, %s given") at /usr/src/debug/php-5.4.31/Zend/zend.c:1138 #3 0x00000000005e7a7b in zend_parse_arg (num_args=1, type_spec=0x6d9261 "rl", va=<value optimized out>, flags=0) at /usr/src/debug/php-5.4.31/Zend/zend_API.c:686 #4 zend_parse_va_args (num_args=1, type_spec=0x6d9261 "rl", va=<value optimized out>, flags=0) at /usr/src/debug/php-5.4.31/Zend/zend_API.c:844 #5 0x00000000005e8345 in zend_parse_parameters (num_args=2, type_spec=<value optimized out>) at /usr/src/debug/php-5.4.31/Zend/zend_API.c:895 #6 0x000000000052a481 in zif_fread (ht=<value optimized out>, return_value=0x2e43558, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /usr/src/debug/php-5.4.31/ext/standard/file.c:1747 #7 0x00000000006599ec in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.31/Zend/zend_vm_execute.h:643 #8 0x0000000000647328 in execute (op_array=0x3f181d8) at /usr/src/debug/php-5.4.31/Zend/zend_vm_execute.h:410 #9 0x00000000005d1fbc in zend_call_function (fci=0x7ffff9dc1150, fci_cache=<value optimized out>) at /usr/src/debug/php-5.4.31/Zend/zend_execute_API.c:956 #10 0x000000000051f03f in zif_call_user_func (ht=<value optimized out>, return_value=0x7f5437a24c88, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /usr/src/debug/php-5.4.31/ext/standard/basic_functions.c:4724 #11 0x00000000006599ec in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.31/Zend/zend_vm_execute.h:643 #12 0x0000000000647328 in execute (op_array=0x3f7bdf0) at /usr/src/debug/php-5.4.31/Zend/zend_vm_execute.h:410 #13 0x00000000005dce60 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/debug/php-5.4.31/Zend/zend.c:1315 #14 0x000000000057f958 in php_execute_script (primary_file=0x7ffff9dc3930) at /usr/src/debug/php-5.4.31/main/main.c:2502 #15 0x00000000006915c2 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/php-5.4.31/sapi/fpm/fpm/fpm_main.c:1933 strace -p 44361 .... setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0 .... -- Edit bug report at https://bugs.php.net/bug.php?id=68115&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68115&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68115&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68115&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68115&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68115&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68115&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68115&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68115&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68115&r=support Expected behavior: https://bugs.php.net/fix.php?id=68115&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68115&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68115&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68115&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68115&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68115&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68115&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68115&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68115&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68115&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68115&r=mysqlcfg

« previous php.bugs (#187744) next »