php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68868 Segfault in clean_non_persistent_constants() in SugarCRM 6.5.20
Submitted: 2015-01-20 20:38 UTC Modified: -
From: fe at fb dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: master-Git-2015-01-20 (Git) OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fe at fb dot com
New email:
PHP Version: OS:

 

 [2015-01-20 20:38 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-28 09:16 UTC] laruence@php.net
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)
 [2015-01-28 09:16 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:39 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC