|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3952 shm_attach crashes httpd-process, if shmat fails
Submitted: 2000-03-28 18:31 UTC Modified: 2005-03-31 16:13 UTC
From: baumert at pilot-webdesign dot de Assigned:
Status: Wont fix Package: Reproducible Crash
PHP Version: 3.0.15 OS: Linux 2.0.36, 2.2.14
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: baumert at pilot-webdesign dot de
New email:
PHP Version: OS:


 [2000-03-28 18:31 UTC] baumert at pilot-webdesign dot de
shm_attach asks, if the return value of shmat is zero. This never happens. 
The error-condition return value is -1.

So just change 162 from 
  if((shm_ptr = shmat(shm_id,NULL,0))==NULL) {


  if((shm_ptr = shmat(shm_id,NULL,0))==-1) {




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Jun 08 18:03:36 2023 UTC