Bug #75731 [NEW]: Php-fpm will crash when perf runs with call graph option
| From: | ufo19890607 at gmail dot com | Date: | Tue, 26 Dec 2017 03:18:55 +0000 |
| Subject: | Bug #75731 [NEW]: Php-fpm will crash when perf runs with call graph option | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213270@lists.php.net to get a copy of this message | ||
From: ufo19890607 at gmail dot com
Operating system: Centos7.3
PHP version: 7.0Git-2017-12-26 (Git)
Package: Reproducible crash
Bug Type: Bug
Bug description:Php-fpm will crash when perf runs with call graph option
Description:
------------
The php version:7.0.6
gdb backtrace
#0 0x00007f044ff447bd in re_compile_fastmap_iter (bufp=0x7f044ff447bd
<re_compile_fastmap_iter+1165>,
fastmap=0x46 <Address 0x46 out of bounds>, init_state=<optimized
out>, init_state=<optimized out>) at regcomp.c:407
407 if (__wcrtomb (buf, towlower (cset->mbchars[i]), &state)
(gdb) bt
#0 0x00007f044ff447bd in re_compile_fastmap_iter (bufp=0x7f044ff447bd
<re_compile_fastmap_iter+1165>,
fastmap=0x46 <Address 0x46 out of bounds>, init_state=<optimized
out>, init_state=<optimized out>) at regcomp.c:407
#1 0x0000000000831160 in virtual_file_ex (state=0x7fff9c1a4f70,
path=<optimized out>, verify_path=0x0, use_realpath=1)
at phpng/php-7.0.6/Zend/zend_virtual_cwd.c:1392
#2 0x00000000007aacee in expand_filepath_with_mode (
filepath=0x7f044d6020d8 "xx/xxxx/xxxxxx/xxxxxxx",
real_path=0x7fff9c1a4fc0 "\360X\032\234\377\177",
relative_to=<optimized out>, relative_to_len=0, realpath_mode=1)
at phpng/php-7.0.6/main/fopen_wrappers.c:812
#3 0x00000000007c1536 in _php_stream_fopen (
filename=0x7f044d6020d8 "xx/xxxx/xxxxxx/xxxxxxx", mode=0xdbb1f1
"rb",
opened_path=0x0, options=0) at
phpng/php-7.0.6/main/streams/plain_wrapper.c:970
#4 0x00000000007bd084 in _php_stream_open_wrapper_ex (
path=0x7f044d6020d8 "xx/xxxx/xxxxxx/xxxxxxx", mode=0xdbb1f1 "rb",
options=8,
opened_path=0x0, context=0x7f044d65f4c0) at
phpng/php-7.0.6/main/streams/streams.c:2060
#5 0x000000000071722b in zif_file_get_contents (execute_data=<optimized
out>, return_value=0x7f044d615540)
at phpng/php-7.0.6/ext/standard/file.c:544
#6 0x000000000065387c in phar_file_get_contents
(execute_data=0x7f044d615570, return_value=0x7f044d615540)
at phpng/php-7.0.6/ext/phar/func_interceptors.c:224
#7 0x00000000008798b8 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7f044d615450)
at phpng/php-7.0.6/Zend/zend_vm_execute.h:714
#8 0x00000000008423d0 in execute_ex (ex=<optimized out>) at
phpng/php-7.0.6/Zend/zend_vm_execute.h:417
#9 0x00000000008952fb in zend_execute (op_array=0x7f044d66a000,
return_value=<optimized out>)
at phpng/php-7.0.6/Zend/zend_vm_execute.h:458
#10 0x0000000000802333 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at phpng/php-7.0.6/Zend/zend.c:1427
#11 0x00000000007a4b40 in php_execute_script
(primary_file=0x7fff9c1a88b0) at phpng/php-7.0.6/main/main.c:2494
#12 0x00000000008a318e in main (argc=<optimized out>, argv=<optimized
out>) at phpng/php-7.0.6/sapi/fpm/fpm/fpm_main.c:1968
Test script:
---------------
...
Expected result:
----------------
...
Actual result:
--------------
...
--
Edit bug report at https://bugs.php.net/bug.php?id=75731&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75731&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75731&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75731&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75731&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75731&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75731&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75731&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75731&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75731&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75731&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75731&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75731&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75731&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75731&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75731&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75731&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75731&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75731&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75731&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75731&r=mysqlcfg