Bug #4140: on sem_get() apache ends with a signal Bus Error (10)

From: Date: Thu, 13 Apr 2000 22:01:35 +0000
Subject: Bug #4140: on sem_get() apache ends with a signal Bus Error (10)
Groups: php.dev 
Request: Send a blank email to php-dev+get-17891@lists.php.net to get a copy of this message
From: rieder@subedvz.tu-graz.ac.at Operating system: Solaris 7 PHP version: 3.0.16 PHP Bug Type: Reproduceable crash Bug description: on sem_get() apache ends with a signal Bus Error (10) 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.

« previous php.dev (#17891) next »