|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78382 Segmentation Violation in opcache
Submitted: 2019-08-06 16:43 UTC Modified: 2020-09-27 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:1 (25.0%)
From: bret at aura-software dot com Assigned: cmb (profile)
Status: No Feedback Package: opcache
PHP Version: 7.3.8 OS: Ubuntu 18.04 LTS [Buster]
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bret at aura-software dot com
New email:
PHP Version: OS:


 [2019-08-06 16:43 UTC] bret at aura-software dot com
Ubuntu 18.04 patched to the latest version

-> php -v
PHP (cli) (built: Jul 25 2019 11:44:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache, Copyright (c) 1999-2018, by Zend Technologies

Server runs for hours or days, then will suddenly begin to stack trace with SIGSEGV.   Once it starts, every request causes a core dump and apache has to be restarted.

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf6c93e67 in ?? () from /usr/lib/php/20180731/
(gdb) bt
#0  0xf6c93e67 in ?? () from /usr/lib/php/20180731/
#1  0xf6c91654 in ?? () from /usr/lib/php/20180731/
#2  0xf6f63715 in ?? () from /usr/lib/apache2/modules/
#3  0xf6f9c342 in ?? () from /usr/lib/apache2/modules/
#4  0xf6fa3019 in execute_ex () from /usr/lib/apache2/modules/
#5  0xf6fa94e2 in zend_execute () from /usr/lib/apache2/modules/
#6  0xf6f1731d in zend_execute_scripts () from /usr/lib/apache2/modules/
#7  0xf6eb6b4c in php_execute_script () from /usr/lib/apache2/modules/
#8  0xf6fab941 in ?? () from /usr/lib/apache2/modules/
#9  0x56608237 in ap_run_handler (r=0xeb20a058) at config.c:170
#10 0x56608797 in ap_invoke_handler (r=0xeb20a058) at config.c:434
#11 0x566202f7 in ap_process_async_request (r=0xeb20a058) at http_request.c:436
#12 0x566204af in ap_process_request (r=0xeb20a058) at http_request.c:471
#13 0x5661c4dc in ap_process_http_sync_connection (c=0xf6c001f8) at http_core.c:210
#14 ap_process_http_connection (c=0xf6c001f8) at http_core.c:251
#15 0x56611fb7 in ap_run_process_connection (c=0xf6c001f8) at connection.c:42
#16 0x566125c3 in ap_process_connection (c=<optimized out>, csd=0xf6c00058) at connection.c:226
#17 0xf7bb1bd2 in child_main (child_num_arg=child_num_arg@entry=9, child_bucket=child_bucket@entry=0) at prefork.c:615
#18 0xf7bb1dee in make_child (s=<optimized out>, slot=9) at prefork.c:717
#19 0xf7bb2860 in perform_idle_server_maintenance (p=<optimized out>) at prefork.c:821
#20 prefork_run (_pconf=0xf7fa1018, plog=0xf7c27018, s=0xf7c23f38) at prefork.c:1014
#21 0x565eb19f in ap_run_mpm (pconf=0xf7fa1018, plog=0xf7c27018, s=0xf7c23f38) at mpm_common.c:94
#22 0x565e36bd in main (argc=<optimized out>, argv=<optimized out>) at main.c:818


Build Date	Jul 25 2019 11:44:59
Server API	Apache 2.0 Handler
Virtual Directory Support	disabled
Configuration File (php.ini) Path	/etc/php/7.3/apache2
Loaded Configuration File	/etc/php/7.3/apache2/php.ini
Scan this dir for additional .ini files	/etc/php/7.3/apache2/conf.d
Additional .ini files parsed	/etc/php/7.3/apache2/conf.d/10-mysqlnd.ini, /etc/php/7.3/apache2/conf.d/10-opcache.ini, /etc/php/7.3/apache2/conf.d/10-pdo.ini, /etc/php/7.3/apache2/conf.d/15-xml.ini, /etc/php/7.3/apache2/conf.d/20-calendar.ini, /etc/php/7.3/apache2/conf.d/20-ctype.ini, /etc/php/7.3/apache2/conf.d/20-curl.ini, /etc/php/7.3/apache2/conf.d/20-dom.ini, /etc/php/7.3/apache2/conf.d/20-exif.ini, /etc/php/7.3/apache2/conf.d/20-fileinfo.ini, /etc/php/7.3/apache2/conf.d/20-ftp.ini, /etc/php/7.3/apache2/conf.d/20-gd.ini, /etc/php/7.3/apache2/conf.d/20-gettext.ini, /etc/php/7.3/apache2/conf.d/20-iconv.ini, /etc/php/7.3/apache2/conf.d/20-json.ini, /etc/php/7.3/apache2/conf.d/20-mbstring.ini, /etc/php/7.3/apache2/conf.d/20-mysqli.ini, /etc/php/7.3/apache2/conf.d/20-pdo_mysql.ini, /etc/php/7.3/apache2/conf.d/20-phar.ini, /etc/php/7.3/apache2/conf.d/20-posix.ini, /etc/php/7.3/apache2/conf.d/20-readline.ini, /etc/php/7.3/apache2/conf.d/20-shmop.ini, /etc/php/7.3/apache2/conf.d/20-simplexml.ini, /etc/php/7.3/apache2/conf.d/20-sockets.ini, /etc/php/7.3/apache2/conf.d/20-sysvmsg.ini, /etc/php/7.3/apache2/conf.d/20-sysvsem.ini, /etc/php/7.3/apache2/conf.d/20-sysvshm.ini, /etc/php/7.3/apache2/conf.d/20-tokenizer.ini, /etc/php/7.3/apache2/conf.d/20-wddx.ini, /etc/php/7.3/apache2/conf.d/20-xmlreader.ini, /etc/php/7.3/apache2/conf.d/20-xmlwriter.ini, /etc/php/7.3/apache2/conf.d/20-xsl.ini, /etc/php/7.3/apache2/conf.d/20-zip.ini
PHP API	20180731
PHP Extension	20180731
Zend Extension	320180731
Zend Extension Build	API320180731,NTS
PHP Extension Build	API20180731,NTS
Debug Build	no
Thread Safety	disabled
Zend Signal Handling	enabled
Zend Memory Manager	enabled
Zend Multibyte Support	provided by mbstring
IPv6 Support	enabled
DTrace Support	available, disabled
Registered PHP Streams	https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports	tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters	zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*

Opcache Settings

Zend OPcache
Opcode Caching	Up and Running
Optimization	Enabled
SHM Cache	Enabled
File Cache	Disabled
Startup	OK
Shared memory model	mmap
Cache hits	1716703
Cache misses	1438
Used memory	49426520
Free memory	84791208
Wasted memory	0
Interned Strings Used memory	6142312
Interned Strings Free memory	148884
Cached scripts	1438
Cached keys	1628
Max keys	16229
OOM restarts	0
Hash keys restarts	0
Manual restarts	0
Directive	Local Value	Master Value
opcache.blacklist_filename	no value	no value
opcache.consistency_checks	0	0
opcache.dups_fix	Off	Off
opcache.enable	On	On
opcache.enable_cli	Off	Off
opcache.enable_file_override	Off	Off
opcache.error_log	no value	no value
opcache.file_cache	no value	no value
opcache.file_cache_consistency_checks	1	1
opcache.file_cache_only	0	0
opcache.file_update_protection	2	2
opcache.force_restart_timeout	180	180
opcache.huge_code_pages	Off	Off
opcache.interned_strings_buffer	8	8
opcache.lockfile_path	/tmp	/tmp
opcache.log_verbosity_level	1	1
opcache.max_accelerated_files	10000	10000
opcache.max_file_size	0	0
opcache.max_wasted_percentage	5	5
opcache.memory_consumption	128	128
opcache.opt_debug_level	0	0
opcache.optimization_level	0x7FFEBFFF	0x7FFEBFFF
opcache.preferred_memory_model	no value	no value
opcache.protect_memory	0	0
opcache.restrict_api	no value	no value
opcache.revalidate_freq	2	2
opcache.revalidate_path	Off	Off
opcache.save_comments	1	1
opcache.use_cwd	On	On
opcache.validate_permission	Off	Off
opcache.validate_root	Off	Off
opcache.validate_timestamps	On	On


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-09-18 14:01 UTC]
-Status: Open +Status: Feedback -Package: Apache2 related +Package: opcache -Assigned To: +Assigned To: cmb
 [2020-09-18 14:01 UTC]
Unfortunately, this bug report is not actionable.  While it is
understandable that you cannot provide a reproduce script, at
least the backtrace needs debug symbols for

Anyhow, this issue might already have been resolved, or do you
still experience it?
 [2020-09-27 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 06:03:38 2021 UTC