php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78926 Segmentation fault on Symfony cache:clear
Submitted: 2019-12-08 11:31 UTC Modified: -
From: djtahoma at gmail dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 7.4.0 OS: Ubuntu 19.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 + 30 = ?
Subscribe to this entry?

 
 [2019-12-08 11:31 UTC] djtahoma at gmail dot com
Description:
------------
PHP 7.4.0 (cli) (built: Nov 28 2019 07:27:40) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies

When I run Symfony console command I get Segfault. Only for prod Symfony env.

bin/console cache:clear --no-warmup -e prod
Segmentation fault


[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
intl
json
libxml
mbstring
mcrypt
memcached
mongodb
msgpack
openssl
pcntl
pcre
PDO
pdo_pgsql
pgsql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache





(gdb) run /home/user/Projects/project/bin/console cache:clear --no-warmup -e preprod
Starting program: /usr/bin/php /home/user/Projects/project/bin/console cache:clear --no-warmup -e preprod
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
zend_hash_set_bucket_key (ht=0x555555a11a50, b=b@entry=0x555555d29d90, key=0x7fffef00ab60) at ./Zend/zend_hash.c:1116
1116    ./Zend/zend_hash.c: No such file or directory.
(gdb) bt
#0  zend_hash_set_bucket_key (ht=0x555555a11a50, b=b@entry=0x555555d29d90, key=0x7fffef00ab60) at ./Zend/zend_hash.c:1116
#1  0x00005555557d8928 in do_bind_class (lcname=0x7fffef298750, lc_parent_name=<optimized out>) at ./Zend/zend_compile.c:1085
#2  0x0000555555846c99 in ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER () at ./Zend/zend_vm_execute.h:4374
#3  0x000055555587b415 in execute_ex (ex=0x555555a11a50) at ./Zend/zend_vm_execute.h:53881
#4  0x00005555557eb97f in zend_call_function (fci=fci@entry=0x7fffffffa0c0, fci_cache=0x7fffef298700, fci_cache@entry=0x7fffffffa0a0) at ./Zend/zend_execute_API.c:811
#5  0x00005555556f67a4 in zif_spl_autoload_call (execute_data=<optimized out>, return_value=<optimized out>) at ./ext/spl/php_spl.c:452
#6  0x00005555557eb89b in zend_call_function (fci=0x7fffffffa250, fci_cache=0x7fffffffa230) at ./Zend/zend_execute_API.c:824
#7  0x00005555557ebf33 in zend_lookup_class_ex (name=<optimized out>, key=key@entry=0x0, flags=flags@entry=0) at ./Zend/zend_execute_API.c:990
#8  0x00005555557ec12d in zend_lookup_class (name=<optimized out>) at ./Zend/zend_execute_API.c:1011
#9  0x00005555558127fb in class_exists_impl (return_value=0x7ffff5416c50, skip_flags=3, flags=0, execute_data=0x7ffff5416dc0) at ./Zend/zend_builtin_functions.c:1475
#10 zif_class_exists (execute_data=0x7ffff5416dc0, return_value=0x7ffff5416c50) at ./Zend/zend_builtin_functions.c:1490
#11 0x00005555558804f7 in ZEND_DO_FCALL_BY_NAME_SPEC_RETVAL_USED_HANDLER () at ./Zend/zend_vm_execute.h:1525
#12 execute_ex (ex=0x555555a11a50) at ./Zend/zend_vm_execute.h:53567
#13 0x0000555555882adb in zend_execute (op_array=0x7ffff547f380, return_value=0x0) at ./Zend/zend_vm_execute.h:57651
#14 0x00005555557fa55c in zend_execute_scripts (type=type@entry=8, retval=0x7ffff1f046e0, retval@entry=0x0, file_count=-180262432, file_count@entry=3) at ./Zend/zend.c:1663
#15 0x000055555579a2d0 in php_execute_script (primary_file=<optimized out>) at ./main/main.c:2619
#16 0x0000555555884b8f in do_cli (argc=6, argv=0x555555a115c0) at ./sapi/cli/php_cli.c:961
#17 0x0000555555661838 in main (argc=6, argv=0x555555a115c0) at ./sapi/cli/php_cli.c:1352





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-09 08:16 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=32c1f37574a12452d967c5d8d8c81e9b66db726c
Log: Fixed bug #78926: Handle class table reallocation on failed link
 [2019-12-09 08:16 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 08:01:32 2024 UTC