[php5 0005167]: pcre should be linked without stack recursion
Mantis Bug Tracker via bug-notifications
bug-notifications at lists.opencsw.org
Tue Apr 22 15:20:33 CEST 2014
The following issue has been SUBMITTED.
======================================================================
https://www.opencsw.org/mantis/view.php?id=5167
======================================================================
Reported By: dam
Assigned To:
======================================================================
Project: php5
Issue ID: 5167
Category: regular use
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-04-22 15:20 CEST
Last Modified: 2014-04-22 15:20 CEST
======================================================================
Summary: pcre should be linked without stack recursion
Description:
For example websvn uses php5 pcre for analysis and markup which requires
massive stackspace to
be configure in /opt/csw/apache2/etc/envvars like
ulimit -s 1000000
Otherwise the https process crashes with stack overflow:
... (endless match recursions)
fbef6c94 match (8529921, 82cdf88, 8529920, 2, feffda60, 0) + 10122
fbef6e7c match (8529921, 82cdf85, 8529920, 2, feffda60, 0) + 1030a
fbef6c94 match (8529920, 82cdf88, 8529920, 2, feffda60, 0) + 10122
fbef6e7c match (8529920, 82cdf85, 8529920, 2, feffda60, 0) + 1030a
fbee83e7 match (8529920, 82cdf80, 8529920, 2, feffda60, 0) + 1875
fbf0179d php_pcre_exec (82cdf58, feffdbf0, 8529920, 629db, 0, 0) + cfd
fbf06bc7 php_pcre_match_impl (82ba3b8, 8529920, 629db, 84c4a98, 0, 0) +
2d7
fbf068c1 php_do_pcre_match (2, 84c4a98, 0, 0, 1, 0) + a1
fbf0740d zif_preg_match (2, 84c4a98, 0, 0, 1, 81a3770) + 1c
fc0ebc55 zend_do_fcall_common_helper_SPEC (82e8568, fc430e38, feffddc8,
fc0f14f2, fc4945c8, 0) + c95
fc0f15dd ZEND_DO_FCALL_SPEC_CONST_HANDLER (82e8568, 0, 10, fc0ea7bf) + f9
fc0eaa0a execute (81b2050, 0, 2, fc0c545e) + 259
fc0c59fe zend_execute_scripts (8, 0, 3, 0, feffe7d0, 0) + 5ae
The solution is to dynamically link against correctly compiled pcre or
statically link against updated pcre.
======================================================================
More information about the bug-notifications
mailing list