Bug #78796 [NEW]: Zend lex_scan BUS error

From: Date: Fri, 08 Nov 2019 20:51:34 +0000
Subject: Bug #78796 [NEW]: Zend lex_scan BUS error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223648@lists.php.net to get a copy of this message
From: tannerp at supermicro dot com Operating system: CentOS 7.6.1810 PHP version: 7.2.24 Package: Apache2 related Bug Type: Bug Bug description:Zend lex_scan BUS error Description: ------------ The Setup is as follows: Host environment is Kubernetes Host supplimentary tool is HAProxy for health checking and load balancing. a container with a derived image of CentOS 7.6.1810 the use of the Remi-repository for PHP 7.2.24 I am encountering an issue where apache 2 will crash with a BUS error "[core:notice] [pid 13] AH00051: child pid 108 exit signal Bus error (7)" These happen about 10 times per day. We can increase the frequency of the error if we run the http health check from HAProxy which does a basic http connection to the server. Everything said web server still appears to be running fine, but we have it only open for internal use so its hard to gauge the actual impact of these crashes. I ran a gdb on a few of the core dumps. The error differs but the bug always happens somewhere with a lex_scan call from the Zend library. If any additional info is needed please let me know. I figured I'd report this issue for visibility. Regards, Tanner Posada Test script: --------------- No easy reproduce code. Actual result: -------------- Sample Backtrace: #0 lex_scan (zendlval=zendlval@entry=0x7ffcfe6dedc0) at Zend/zend_language_scanner.c:7565 7565 if (yych == '<') goto yy801; (gdb) bt full #0 lex_scan (zendlval=zendlval@entry=0x7ffcfe6dedc0) at Zend/zend_language_scanner.c:7565 yych = <error reading variable yych (Cannot access memory at address 0x7f434cdf1000)> yyaccept = 0 start_line = 1 #1 0x00007f4348218234 in zendlex (elem=elem@entry=0x7ffcfe6dee90) at /usr/src/debug/php-7.2.24/Zend/zend_compile.c:1728 zv = {value = {lval = 139926675799264, dval = 6.9132963449182091e-310, counted = 0x7f4337ce3ce0, str = 0x7f4337ce3ce0, arr = 0x7f4337ce3ce0, obj = 0x7f4337ce3ce0, res = 0x7f4337ce3ce0, ref = 0x7f4337ce3ce0, ast = 0x7f4337ce3ce0, zv = 0x7f4337ce3ce0, ptr = 0x7f4337ce3ce0, ce = 0x7f4337ce3ce0, func = 0x7f4337ce3ce0, ww = {w1 = 936262880, w2 = 32579}}, u1 = {v = {type = 0 '\000', type_flags = 0 '\000', const_flags = 0 '\000', reserved = 0 '\000'}, type_info = 0}, u2 = {next = 4003537210, cache_slot = 4003537210, lineno = 4003537210, num_args = 4003537210, fe_pos = 4003537210, fe_iter_idx = 4003537210, access_flags = 4003537210, property_guard = 4003537210, extra = 4003537210}} retval = <optimized out> start_lineno = 1 -- Edit bug report at https://bugs.php.net/bug.php?id=78796&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78796&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78796&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78796&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78796&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78796&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78796&r=support Expected behavior: https://bugs.php.net/fix.php?id=78796&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78796&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78796&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78796&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78796&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78796&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78796&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78796&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78796&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78796&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78796&r=mysqlcfg

« previous php.bugs (#223648) next »