[php-src] Issue #15616: Segmentation fault
| From: | apetrosyan1613 | Date: | Wed, 28 Aug 2024 12:01:41 +0000 |
| Subject: | [php-src] Issue #15616: Segmentation fault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247620@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15616
Author: apetrosyan1613
### Description
The coredump:
```
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007fd19b43d859 in __GI_abort () at abort.c:79
#2 0x00007fd19b4a826e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fd19b5d208f
"*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007fd19b54acda in __GI___fortify_fail (msg=msg@entry=0x7fd19b5d2077 "stack smashing
detected") at fortify_fail.c:26
#4 0x00007fd19b54aca6 in __stack_chk_fail () at stack_chk_fail.c:24
#5 0x000055758603b059 in zif_str_ends_with (execute_data=<optimized out>,
return_value=<optimized out>) at ./Zend/zend_API.h:2119
#6 0x0000557586148413 in ZEND_DO_FCALL_BY_NAME_SPEC_RETVAL_USED_HANDLER () at
./Zend/zend_vm_execute.h:1637
#7 execute_ex (ex=0x2) at ./Zend/zend_vm_execute.h:56099
#8 0x00005575860c9c1a in zend_call_function (fci_cache=<optimized out>, fci=<optimized
out>) at ./Zend/zend_execute_API.c:949
#9 zend_call_function (fci=<optimized out>, fci_cache=<optimized out>) at
./Zend/zend_execute_API.c:749
#10 0x00005575860ca08d in zend_call_known_function (fn=0x55758b9fa8a0, object=<optimized out>,
called_scope=<optimized out>, retval_ptr=retval_ptr@entry=0x0,
param_count=param_count@entry=0,
params=params@entry=0x0, named_params=0x7fd1930e06c8) at ./Zend/zend_execute_API.c:1043
#11 0x0000557585fa1943 in zim_ReflectionClass_newInstanceArgs (execute_data=<optimized out>,
return_value=0x7fd199017630) at ./ext/reflection/php_reflection.c:5079
#12 0x000055758614a00b in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at ./Zend/zend_vm_execute.h:1951
#13 execute_ex (ex=0x2) at ./Zend/zend_vm_execute.h:56111
#14 0x000055758614b9f1 in zend_execute (op_array=0x7fd199090100, return_value=0x0) at
./Zend/zend_vm_execute.h:60439
#15 0x00005575860d8d45 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0,
file_count=file_count@entry=3) at ./Zend/zend.c:1840
#16 0x0000557586073bda in php_execute_script (primary_file=<optimized out>) at
./main/main.c:2578
#17 0x0000557585f066ae in main (argc=<optimized out>, argv=<optimized out>) at
./sapi/fpm/fpm/fpm_main.c:1934
```
The flaky issue, which appears after upgrading from 8.2.20 to 8.2.22 (ubuntu focal docker image)
### PHP Version
PHP 8.2.22
### Operating System
Ubuntu 20.04