Bug #80422 [Asn]: php_opcache.dll crashes when using Apache 2.4 with JIT

From: Date: Mon, 14 Dec 2020 13:39:11 +0000
Subject: Bug #80422 [Asn]: php_opcache.dll crashes when using Apache 2.4 with JIT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231078@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80422&edit=1 ID: 80422 Updated by: dmitry@php.net Reported by: martin at radiok2r dot de Summary: php_opcache.dll crashes when using Apache 2.4 with JIT Status: Assigned Type: Bug Package: JIT Operating System: Windows 10 64-bit PHP Version: 8.0.0 Assigned To: dmitry Block user comment: N Private report: N New Comment: Check what page causes the crash. Try to reproduce the same crash, passing the script and CGI environment variables command line PHP (or PHP-CGI). If the application doesn't use external resources (DB, etc) and doesn't contain sensitive data, you may just pack and send it to me (with instruction, how to reproduce the crash). Otherwise, you need to track down to the problem yourself... You may catch the crash in debugger and check the PHP source position printing (char*)executor_globals.current_execute_data->func->op_array.function_name.val and executor_globals.current_execute_data->opline->lineno. Then try to isolate the function(s) involved into crash. This is not a simple task... Previous Comments: ------------------------------------------------------------------------ [2020-12-14 13:34:20] martin at radiok2r dot de I tried to debug the process httpd by VS -> Debug -> Attach to Process. There are 2 httpd-processes, and I get for the first: php_opcache.dll!zend_jit_trace_exit_is_hot(unsigned int trace_num, unsigned int exit_num) Line 6916 C php_opcache.dll!zend_jit_trace_exit(unsigned int exit_num, Line 7343 C [External Code] php8ts.dll!00007ffaa0225d88() Unknown And for the second: ntdll.dll!KiRaiseUserExceptionDispatcher() Unknown KernelBase.dll!00007ffacf202cb5() Unknown libapr-1.dll!00000000569d88bd() Unknown libapr-1.dll!00000000569d8752() Unknown mod_socache_shmcb.so!00007ffaa1f5169c() Unknown mod_ssl.so!00007ffaa1f25382() Unknown mod_ssl.so!00007ffaa1f15b57() Unknown libapr-1.dll!00000000569ce24e() Unknown httpd.exe!00007ff7ea281c6c() Unknown httpd.exe!00007ff7ea282fa4() Unknown [External Code] Thanks for looking into this! ------------------------------------------------------------------------ [2020-12-14 13:16:02] martin at radiok2r dot de What could I do? I have a VisualStudio 2013 running on the machine, might this help? Any other parameters I could try in php.ini to make it work? ------------------------------------------------------------------------ [2020-12-14 13:10:02] dmitry@php.net Unfortunately, the backtrace is not enough to guess the reason of the crash. We need some way to reproduce the failure. ------------------------------------------------------------------------ [2020-11-27 11:39:05] nikic@php.net Assigning to dmitry in case he can guess at the cause here. ------------------------------------------------------------------------ [2020-11-26 13:34:57] martin at radiok2r dot de Thanks for your fast reply. This is the output from the DebugDiag Analysis Report after installing the symbols from the Debug Pack. Hope it helps. In httpd.exe_201126_135319.dmp the assembly instruction at php_opcache!zend_jit_trace_exit_is_hot+68 in c:\PHP\ext\php_opcache.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000004 on thread 162 Faulting Thread Entry point libhttpd!ap_run_generate_log_id+3ab0 Create time 26.11.2020 13:52:36 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.0 php_opcache!zend_jit_trace_exit_is_hot+68 [C:\php-snap-build\php80\vs16\x64\php-8.0.0-ts\ext\opcache\jit\zend_jit_trace.c @ 6916 + 4] 000000000000002 000000000000003 000000000000000 000000000000000 C:\php-snap-build\php80\vs16\x64\php-8.0.0-ts\ext\opcache\jit\zend_jit_trace.c @ 6916 + 4 php_opcache!zend_jit_trace_exit+d3e [C:\php-snap-build\php80\vs16\x64\php-8.0.0-ts\ext\opcache\jit\zend_jit_trace.c @ 7343 + 47] 00001d100000003 00000a701ebd940 00001d12baec730 000100000c44b40 C:\php-snap-build\php80\vs16\x64\php-8.0.0-ts\ext\opcache\jit\zend_jit_trace.c @ 7343 + 47 0x000010000800062b 00000a701ebd940 00001d12baec730 000100000c44b40 0001000`00aa2520 0x000001d100000003 00001d12baec730 000100000c44b40 000100000aa2520 00001d1`2cfc7540 0x000000a701ebd940 000100000c44b40 000100000aa2520 00001d12cfc7540 0000000`00000308 0x000001d12baec730 000100000aa2520 00001d12cfc7540 000000000000308 0007ffe`40701b31 0x0000100000c44b40 00001d12cfc7540 000000000000308 0007ffe40701b31 00001d1`2d00b048 0x0000100000aa2520 000000000000308 0007ffe40701b31 00001d12d00b048 0000000`0000003d 0x000001d12cfc7540 0007ffe40701b31 00001d12d00b048 00000000000003d 00001d1`2ce79000 0x00000308 00001d12d00b048 00000000000003d 00001d12ce79000 00001d12baec730 php8ts!zend_string_tolower_ex+281 [C:\php-snap-build\php80\vs16\x64\php-8.0.0-ts\Zend\zend_operators.c @ 2670] 000000000000000 000000000000000 000000000000000 000000000000000 C:\php-snap-build\php80\vs16\x64\php-8.0.0-ts\Zend\zend_operators.c @ 2670 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=80422 -- Edit this bug report at https://bugs.php.net/bug.php?id=80422&edit=1

« previous php.bugs (#231078) next »