Bug #68868 [NEW]: Segfault in clean_non_persistent_constants() in SugarCRM 6.5.20
From: fe at fb dot com
Operating system: Ubuntu 14.04
PHP version: master-Git-2015-01-20 (Git)
Package: Reproducible crash
Bug Type: Bug
Bug description:Segfault in clean_non_persistent_constants() in SugarCRM 6.5.20
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 bug report at https://bugs.php.net/bug.php?id=68868&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68868&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68868&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68868&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68868&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68868&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68868&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68868&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68868&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68868&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68868&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68868&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68868&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68868&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68868&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68868&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68868&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68868&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68868&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68868&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68868&r=mysqlcfg
Thread (2 messages)
- fe at fb dot com