#27033 [NEW]: calling preg_match at _very_ specific points, will cause apache to crash
From: ask at eternal-newbie dot dk
Operating system: linux
PHP version: 4.3.4
PHP Bug Type: PCRE related
Bug description: calling preg_match at _very_ specific points, will cause apache to crash
Description:
------------
in my functions.php (http://wiki.dgsnet.dk/functions.phps) i got a class
called user with a function called in_group(). This function calls a
global function called isint();, this function uses preg_match. If the
in_group() function is called from withith the global makeoutput function
or from a function called from without the makeoutput function. the the
call in in_group() to isint() will cause the apache child to crash. i
cannot get a gdb file, since it's the child and not the parant server
which is crashing. However the log states clearly that it returns a
segmentation fault.
I might need to note that in_group is being called several times before
makeoutput() is started and that works fine.
Reproduce code:
---------------
http://wiki.dgsnet.dk/functions.phps
Expected result:
----------------
that apache/php didn't crash.
Actual result:
--------------
see description.
--
Edit bug report at http://bugs.php.net/?id=27033&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27033&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27033&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27033&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27033&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27033&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27033&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27033&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27033&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27033&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27033&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27033&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27033&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27033&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27033&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27033&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27033&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27033&r=float
Thread (3 messages)
- ask at eternal-newbie dot dk