Bug #76993 [NEW]: SIGBUS crash in lex_scan
| From: | webmaster at mail dot de | Date: | Wed, 10 Oct 2018 13:32:01 +0000 |
| Subject: | Bug #76993 [NEW]: SIGBUS crash in lex_scan | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217502@lists.php.net to get a copy of this message | ||
From: webmaster at mail dot de
Operating system: Debian Stretch
PHP version: 7.1.22
Package: Scripting Engine problem
Bug Type: Bug
Bug description:SIGBUS crash in lex_scan
Description:
------------
Hi,
i am experiencing a SIGBUS error with PHP for a sugarCRM installation
when doing some basic click in the environment. I tried this on Debian
Jessie with the sury.org packages, the Debian Stretch Docker container
and the Alpine container, all with 7.1.22.
I can reproduce it for all 3 environments. For the Debian Stretch
container i created the gdb backtrace.
This might be related to https://bugs.php.net/bug.php?id=52752
But that is so old, so i am not really sure.
Regards,
Sebastian
php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
intl
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
php -v
PHP 7.1.22 (cli) (built: Oct 10 2018 12:42:01) ( NTS DEBUG )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
Actual result:
--------------
#0 0x000056025de817e0 in lex_scan (zendlval=0x7fff9e39c600) at
Zend/zend_language_scanner.c:2173
2173 yych = *YYCURSOR;
(gdb) bt
#0 0x000056025de817e0 in lex_scan (zendlval=0x7fff9e39c600) at
Zend/zend_language_scanner.c:2173
#1 0x000056025dea87c8 in zendlex (elem=0x7fff9e39c660) at
/usr/src/php/Zend/zend_compile.c:1703
#2 0x000056025de75ea5 in zendparse () at
/usr/src/php/Zend/zend_language_parser.c:4217
#3 0x000056025de7cdb1 in zend_compile (type=2) at
Zend/zend_language_scanner.l:585
#4 0x000056025de7d01f in compile_file (file_handle=0x7fff9e39d340,
type=8) at Zend/zend_language_scanner.l:635
#5 0x000056025dc88876 in phar_compile_file (file_handle=0x7fff9e39d340,
type=8) at /usr/src/php/ext/phar/phar.c:3320
#6 0x000056025de7d152 in compile_filename (type=8,
filename=0x7f52bbe150e0) at Zend/zend_language_scanner.l:662
#7 0x000056025df3e9d8 in zend_include_or_eval
(inc_filename=0x7f52bbe150e0, type=8) at
/usr/src/php/Zend/zend_execute.c:2845
#8 0x000056025df8b734 in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER () at
/usr/src/php/Zend/zend_vm_execute.h:35499
#9 0x000056025df3ec49 in execute_ex (ex=0x7f52bbe14030) at
/usr/src/php/Zend/zend_vm_execute.h:429
#10 0x000056025df3ed5a in zend_execute (op_array=0x7f52bbe76000,
return_value=0x0) at /usr/src/php/Zend/zend_vm_execute.h:474
#11 0x000056025dedb8e3 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/php/Zend/zend.c:1482
#12 0x000056025de40e9c in php_execute_script
(primary_file=0x7fff9e39fa80) at /usr/src/php/main/main.c:2577
#13 0x000056025dfd5e04 in main (argc=1, argv=0x7fff9e39ff18) at
/usr/src/php/sapi/fpm/fpm/fpm_main.c:1966
--
Edit bug report at https://bugs.php.net/bug.php?id=76993&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76993&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76993&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76993&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76993&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76993&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76993&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76993&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76993&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76993&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76993&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76993&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76993&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76993&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76993&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76993&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76993&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76993&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76993&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76993&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76993&r=mysqlcfg