Bug #79818 [NEW]: Segmentation fault in _build_trace_args
| From: | changochen1 at gmail dot com | Date: | Thu, 09 Jul 2020 05:39:05 +0000 |
| Subject: | Bug #79818 [NEW]: Segmentation fault in _build_trace_args | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-227903@lists.php.net to get a copy of this message | ||
From: changochen1 at gmail dot com
Operating system:
PHP version: 8.0Git-2020-07-09 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Segmentation fault in _build_trace_args
Description:
------------
Stack dump:
---
==201947==ERROR: MemorySanitizer: SEGV on unknown address 0x00000000007f
(pc 0x0000016a6cbe bp 0x000000000031 sp 0x7ffcf03b0220 T201947)
==201947==The signal is caused by a READ memory access.
==201947==Hint: address points to the zero page.
#0 0x16a6cbd in _build_trace_args
/home/yongheng/php_clean/Zend/zend_exceptions.c:513:30
#1 0x16a6cbd in _build_trace_string
/home/yongheng/php_clean/Zend/zend_exceptions.c:569
#2 0x16a6cbd in zim_Exception_getTraceAsString
/home/yongheng/php_clean/Zend/zend_exceptions.c:611
#3 0x132af62 in zend_call_function
/home/yongheng/php_clean/Zend/zend_execute_API.c
#4 0x16a9be0 in zim_Exception___toString
/home/yongheng/php_clean/Zend/zend_exceptions.c:663:3
#5 0x132af62 in zend_call_function
/home/yongheng/php_clean/Zend/zend_execute_API.c
#6 0x132d1b8 in zend_call_known_function
/home/yongheng/php_clean/Zend/zend_execute_API.c:871:15
#7 0x169b93c in zend_call_known_instance_method
/home/yongheng/php_clean/Zend/zend_API.h:576:2
#8 0x169b93c in zend_call_known_instance_method_with_0_params
/home/yongheng/php_clean/Zend/zend_API.h:582
#9 0x169b93c in zend_exception_error
/home/yongheng/php_clean/Zend/zend_exceptions.c:923
#10 0x13840ba in zend_execute_scripts
/home/yongheng/php_clean/Zend/zend.c:1674:12
#11 0x10ee2f9 in php_execute_script
/home/yongheng/php_clean/main/main.c:2537:14
#12 0x178c81f in do_cli
/home/yongheng/php_clean/sapi/cli/php_cli.c:955:5
#13 0x1788c0f in main
/home/yongheng/php_clean/sapi/cli/php_cli.c:1353:18
#14 0x7f040b509b96 in __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
#15 0x43f9d9 in _start
(/home/yongheng/php_clean/bld/sapi/cli/php+0x43f9d9)
MemorySanitizer can not provide additional info.
SUMMARY: MemorySanitizer: SEGV
/home/yongheng/php_clean/Zend/zend_exceptions.c:513:30 in
_build_trace_args
==201947==ABORTING
---
Test script:
---------------
<?
function b ( $a ){
switch ( [ $c ] ) {
case header_register_callback ( function () {} ) ;
static $a = d ;
}
}
b ( function () { }) ;
--
Edit bug report at https://bugs.php.net/bug.php?id=79818&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79818&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79818&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79818&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79818&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79818&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79818&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79818&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79818&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79818&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79818&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79818&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79818&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79818&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79818&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79818&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79818&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79818&r=mysqlcfg