Bug #68115 [Com]: php-fpm process stuck in a loop (xbuf_format_converter)
| From: | champetier dot etienne at gmail dot com | Date: | Mon, 29 Sep 2014 09:22:54 +0000 |
| Subject: | Bug #68115 [Com]: php-fpm process stuck in a loop (xbuf_format_converter) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-187745@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68115&edit=1
ID: 68115
Comment by: champetier dot etienne at gmail dot com
Reported by: champetier dot etienne at gmail dot com
Summary: php-fpm process stuck in a loop
(xbuf_format_converter)
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: rhel 6.5
PHP Version: 5.4.33
Block user comment: N
Private report: N
New Comment:
forget to say that it's looping for maybe 6 hours, way more than max execution time
Previous Comments:
------------------------------------------------------------------------
[2014-09-29 09:20:52] champetier dot etienne at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=68115&edit=1