Bug #69528 [Opn->Fbk]: MBString making Apache crash
| From: | ab@php.net | Date: | Mon, 04 May 2015 06:52:21 +0000 |
| Subject: | Bug #69528 [Opn->Fbk]: MBString making Apache crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192468@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69528&edit=1
ID: 69528
Updated by: ab@php.net
Reported by: jfha73 at gmail dot com
Summary: MBString making Apache crash
-Status: Open
+Status: Feedback
Type: Bug
Package: mbstring related
Operating System: Windows
PHP Version: 5.6.8
Block user comment: N
Private report: N
New Comment:
Installed osTicket and here's the backtrace I've got
....................................
php5ts_debug.dll!match(const unsigned char * eptr, const unsigned char * ecode, const unsigned
char * mstart, int offset_top, match_data * md, eptrblock * eptrb, unsigned int rdepth) Line 2061 C
php5ts_debug.dll!match(const unsigned char * eptr, const unsigned char * ecode, const unsigned
char * mstart, int offset_top, match_data * md, eptrblock * eptrb, unsigned int rdepth) Line 2061 C
php5ts_debug.dll!match(const unsigned char * eptr, const unsigned char * ecode, const unsigned
char * mstart, int offset_top, match_data * md, eptrblock * eptrb, unsigned int rdepth) Line 1878 C
php5ts_debug.dll!match(const unsigned char * eptr, const unsigned char * ecode, const unsigned
char * mstart, int offset_top, match_data * md, eptrblock * eptrb, unsigned int rdepth) Line 1541 C
php5ts_debug.dll!php_pcre_exec(const real_pcre * argument_re, const pcre_extra * extra_data, const
char * subject, int length, int start_offset, int options, int * offsets, int offsetcount) Line
6935 C
php5ts_debug.dll!php_pcre_split_impl(pcre_cache_entry * pce, char * subject, int subject_len,
_zval_struct * return_value, long limit_val, long flags, void * * * tsrm_ls) Line 1580 C
php5ts_debug.dll!zif_preg_split(int ht, _zval_struct * return_value, _zval_struct * *
return_value_ptr, _zval_struct * this_ptr, int return_value_used, void * * * tsrm_ls) Line 1515 C
php5ts_debug.dll!zend_do_fcall_common_helper_SPEC(_zend_execute_data * execute_data, void * * *
tsrm_ls) Line 559 C
php5ts_debug.dll!ZEND_DO_FCALL_SPEC_CONST_HANDLER(_zend_execute_data * execute_data, void * * *
tsrm_ls) Line 2600 C
php5ts_debug.dll!execute_ex(_zend_execute_data * execute_data, void * * * tsrm_ls) Line 363 C
php5ts_debug.dll!zend_execute(_zend_op_array * op_array, void * * * tsrm_ls) Line 389 C
php5ts_debug.dll!zend_execute_scripts(int type, void * * * tsrm_ls, _zval_struct * * retval, int
file_count, ...) Line 1342 C
php5ts_debug.dll!php_execute_script(_zend_file_handle * primary_file, void * * * tsrm_ls) Line
2597 C
php5apache2_4.dll!00007ff84cab66d0() Unknown
The exception happens already when installing and is a stack overflow in PCRE. This is a usual thing
with PCRE when too much recursion is caused. I don't think there's something to do about
this right now, maybe trying to upgrade to PCRE 8.37 . But I guess it's a good thing anyway
anyway to file a ticket for osTicket :) ... the arguments for the preg_split call are:
regex "/;(?=(?:[^']*'[^']*')*[^']*$)/"
subject "\nDROP TABLE IF EXISTS
ost_api_key;\nCREATE TABLE
ost_api_key (\n id int(10) unsigned NOT NULL auto_increment,\n
isactive tinyint(1) NOT NULL default '1',\n ipaddr varchar(64)
NOT NULL,\n `api...
subject length happens to be of 31305 bytes
limit -1
flags 0
There could be also an mbstring issue as you say, but ATM i don't come through to it.
What you could also try is increasing the stack size for your Apache binary, then lets see further.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-04-30 14:21:45] jfha73 at gmail dot com
I forgot to include that I downloaded the open source version of osTicket version 1.9.7
------------------------------------------------------------------------
[2015-04-29 13:27:28] jfha73 at gmail dot com
I just added my httpd.conf and httpd-vhosts.conf so you can check it out, only domain has been
changed.
------------------------------------------------------------------------
[2015-04-29 09:30:49] ab@php.net
Jorge, if there's an exact Apache config, maybe you could provide one? Or sort of. With the http://osticket.com/download - which exact version do you
use (also suppose the opensource one)?
Thanks.
------------------------------------------------------------------------
[2015-04-27 20:50:53] jfha73 at gmail dot com
It is making crash using OSticket, so download osticket from www.osticket.com, install it and see if
it does the same.
BUT REMEMBER: Apache on Windows needs to have multiple vhosts, it doesn't happen on my PC with
no vhosts.
Thanks
------------------------------------------------------------------------
[2015-04-27 20:46:36] yohgaki@php.net
Could you provide short reproducible script?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69528
--
Edit this bug report at https://bugs.php.net/bug.php?id=69528&edit=1