Bug #74242 [NEW]: max_children increasment causes core dump

From: Date: Mon, 13 Mar 2017 13:09:12 +0000
Subject: Bug #74242 [NEW]: max_children increasment causes core dump
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207813@lists.php.net to get a copy of this message
From: gaorong_q at 163 dot com Operating system: centos 6.7 PHP version: 7.1.2 Package: FPM related Bug Type: Bug Bug description:max_children increasment causes core dump Description: ------------ when we increase max_children setting in php-fpm.conf from 256 to 512. it always cause a core dump when we use command 'ab -n 100000 -c 1000 xxxx' to test the API. but it works well when max_children=256. the core dump info is following: (gdb) bt #0 zend_mm_alloc_small (heap=0x7f2892e00040, ptr=0x0, size=<value optimized out>, copy_size=79) at /home/xiaoju/gaorong/softs-src/php-7.0.16/Zend/zend_alloc.c:1299 #1 zend_mm_alloc_heap (heap=0x7f2892e00040, ptr=0x0, size=<value optimized out>, copy_size=79) at /home/xiaoju/gaorong/softs-src/php-7.0.16/Zend/zend_alloc.c:1377 #2 zend_mm_realloc_heap (heap=0x7f2892e00040, ptr=0x0, size=<value optimized out>, copy_size=79) at /home/xiaoju/gaorong/softs-src/php-7.0.16/Zend/zend_alloc.c:1473 #3 0x00000000007c1032 in xbuf_format_converter (xbuf=0x7ffd5fb54780, is_char=1 '\001', fmt=0xe037a7 "pool %s", ap=0x7ffd5fb547c0) at /home/xiaoju/gaorong/softs-src/php-7.0.16/main/spprintf.c:246 #4 0x00000000007c1fca in vspprintf (pbuf=0x7ffd5fb548a8, max_len=0, format=<value optimized out>, ap=<value optimized out>) at /home/xiaoju/gaorong/softs-src/php-7.0.16/main/spprintf.c:847 #5 0x00000000007c20b3 in spprintf (pbuf=<value optimized out>, max_len=<value optimized out>, format=<value optimized out>) at /home/xiaoju/gaorong/softs-src/php-7.0.16/main/spprintf.c:871 #6 0x00000000008b68e5 in fpm_env_init_child (wp=0x2d7fba0) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm_env.c:142 #7 0x00000000008b20c2 in fpm_child_init (wp=0x2d7fba0, in_event_loop=<value optimized out>, nb_to_spawn=<value optimized out>, is_debug=1) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm_children.c:155 #8 fpm_children_make (wp=0x2d7fba0, in_event_loop=<value optimized out>, nb_to_spawn=<value optimized out>, is_debug=1) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm_children.c:407 #9 0x00000000008bd490 in fpm_pctl_perform_idle_server_maintenance (ev=<value optimized out>, which=<value optimized out>, arg=<value optimized out>) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm_process_ctl.c:419 #10 fpm_pctl_perform_idle_server_maintenance_heartbeat (ev=<value optimized out>, which=<value optimized out>, arg=<value optimized out>) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm_process_ctl.c:478 #11 0x00000000008b6f6c in fpm_event_loop (err=0) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm_events.c:428 #12 0x00000000008b1c87 in fpm_run (max_requests=0x7ffd5fb54eec) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm.c:115 #13 0x00000000008b9d9f in main (argc=5, argv=0x7ffd5fb55008) at /home/xiaoju/gaorong/softs-src/php-7.0.16/sapi/fpm/fpm/fpm_main.c:1881 in addition, it works well when we use php5.5 and max_children=512. -- Edit bug report at https://bugs.php.net/bug.php?id=74242&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74242&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74242&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74242&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74242&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74242&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74242&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74242&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74242&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74242&r=support Expected behavior: https://bugs.php.net/fix.php?id=74242&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74242&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74242&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74242&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74242&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74242&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74242&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74242&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74242&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74242&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74242&r=mysqlcfg

« previous php.bugs (#207813) next »