|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7452 Crash in ps_mm_destroy ( file mod_mm.c)
Submitted: 2000-10-25 11:59 UTC Modified: 2001-01-30 04:04 UTC
From: yfaktoro at nusphere dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.2 OS: RedHat 7
Private report: No CVE-ID: None
 [2000-10-25 11:59 UTC] yfaktoro at nusphere dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-04 09:19 UTC]
Could you please check if this happens also with
PHP 4.0.4RC3:
 [2001-01-30 04:04 UTC]
Please try latest CVS snapshot from
and if this problem still exists when using it, reopen
this bug report.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 08:01:29 2024 UTC