php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4140 on sem_get() apache ends with a signal Bus Error (10)
Submitted: 2000-04-13 18:01 UTC Modified: 2000-04-14 09:19 UTC
From: rieder at subedvz dot tu-graz dot ac dot at Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.16 OS: Solaris 7
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rieder at subedvz dot tu-graz dot ac dot at
New email:
PHP Version: OS:

 

 [2000-04-13 18:01 UTC] rieder at subedvz dot tu-graz dot ac dot at
OS: SunOS  5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-2 
compiler: gcc-2.95.2-sol7-sparc
apache: 1.3.12

Configure options:
       ./configure\
        --with-oracle\
        --without-mysql\
        --with-imap\
        --with-ldap\
        --with-db2 \
        --enable-sysvsem\
        --enable-sysvshm\
        --enable-track-vars\
        --with-gd \
        --with-jpeg-dir=/usr/local/lib \
        --with-apxs=/usr/local/apache/bin/apxs



Script:

<?php

$key=0x123754;
$x = $key + 1;

//++++++++++++ 
// crash crash crash
$semid = sem_get($x);
// end crash 
//++++++++++++

sem_acquire($semid);
 
if($x=shm_attach($key, 64000, 0600)) { print "OK"; } else { print "NO"; }
 
shm_put_var($x, $test, "this_is_a_test");
print shm_get_var($x, $test);
shm_remove($key);
 
?>


Other example:

horde-1.2.0-pre10 (www.horde.org)
imp-2.2.0-pre10 (www.horde.org)
phplib-7 (http://phplib.netuse.de/)

Session management was configured to use shared memory
apache crashes with following log entry:
... [notice] child pid 18681 exit signal Bus Error (10) 

The same occours with older versions of php and/or apache.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-14 06:41 UTC] rieder at subedvz dot tu-graz dot ac dot at
Bug ID 4143 describes the same problem. The little hack in sysvsem.c solves
the problem also in this case here.
 [2000-04-14 09:19 UTC] rasmus at cvs dot php dot net
The fix suggested in 4143 has been applied
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 10:01:30 2024 UTC