PHP 4.0 Bug #7452: Crash in ps_mm_destroy ( file mod_mm.c)
| From: | yfaktoro at nusphere dot com | Date: | Wed, 25 Oct 2000 15:59:51 +0000 |
| Subject: | PHP 4.0 Bug #7452: Crash in ps_mm_destroy ( file mod_mm.c) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35917@lists.php.net to get a copy of this message | ||
From: yfaktoro@nusphere.com
Operating system: RedHat 7
PHP version: 4.0.2
PHP Bug Type: Apache related
Bug description: Crash in ps_mm_destroy ( file mod_mm.c)
compile mod_php with-mm on RedHat 7 with oonly 34M of shared memory. Also compile apache to use
mod_php (enable_module=most) ps_mm_initialize calls mm_create() and passes 0 for pool size. That
causes mm_create to try to get hardcoded 67M of shared memory. mm_create fails b'zeachine only
has 34M ofshared memory available. As a result, data->mm is NULL and data->hash will also be
assigned to NULL returned from mm_caloc, which will later cause a crash in ps_mm_destroy. This means
that apache crashes on startI think ps_mm_initialize should check the
return from mm_create and pass something other than 0 to it.
--
Edit Bug report at: http://bugs.php.net/?id=7452&edit=1