Bug #68868 [Opn->Csd]: Segfault in clean_non_persistent_constants() in SugarCRM 6.5.20
Edit report at https://bugs.php.net/bug.php?id=68868&edit=1
ID: 68868
Updated by: laruence@php.net
Reported by: fe at fb dot com
Summary: Segfault in clean_non_persistent_constants() in
SugarCRM 6.5.20
-Status: Open
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Ubuntu 14.04
PHP Version: master-Git-2015-01-20 (Git)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a0cf0251347d77235ca7420debdc4432c0c1eec3
Log: Fixed #68868 (Segfault in clean_non_persistent_constants() in SugarCRM 6.5.20)
Previous Comments:
------------------------------------------------------------------------
[2015-01-20 20:38:04] fe at fb dot com
Description:
------------
1. Install a recent version of SugarCRM (tried 6.5.16 => 6.5.20)
2. Log in
3. Segfault in clean_non_persistent_constants()
Tested with git head as of 2015-01-14 and 2015-01-20
Test script:
---------------
https://github.com/hhvm/oss-performance
Run:
hhvm perf.php --sugarcrm-home-page --php5=/path/to/php7/bin/php-cgi
(The script itself is written in Hack, so requires HHVM)
Expected result:
----------------
No segfault
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
_zend_hash_del_el (p=0x1150d80, idx=1666, ht=0x10425a0)
at /home/fred/php-src/Zend/zend_hash.c:666
666 while (Z_NEXT(prev->val) != idx) {
(gdb) bt
#0 _zend_hash_del_el (p=0x1150d80, idx=1666, ht=0x10425a0)
at /home/fred/php-src/Zend/zend_hash.c:666
#1 zend_hash_reverse_apply (ht=0x10425a0,
apply_func=apply_func@entry=0x7aafa0 <clean_non_persistent_constant>)
at /home/fred/php-src/Zend/zend_hash.c:1172
#2 0x00000000007ab593 in clean_non_persistent_constants ()
at /home/fred/php-src/Zend/zend_constants.c:160
#3 0x00000000007ad1d5 in shutdown_executor ()
at /home/fred/php-src/Zend/zend_execute_API.c:354
#4 0x00000000007bbf07 in zend_deactivate () at /home/fred/php-src/Zend/zend.c:886
#5 0x00000000007623fe in php_request_shutdown (dummy=dummy@entry=0x0)
at /home/fred/php-src/main/main.c:1856
#6 0x000000000043bcbe in main (argc=5, argv=0x7fffffffe5b8)
at /home/fred/php-src/sapi/cgi/cgi_main.c:2490
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68868&edit=1
Thread (2 messages)