ID: 10115
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Semaphore related
Description: segmentation fault

#!/usr/local/bin/php -q
 shm_attach(1234, 1000, 0600);

to reproduce bug you should first start this script as user A. then, login as user B 
and start it again.

i noticed that 4.0.5RC5 has no segfault at this point.
instead, correct message appears:
<b>Warning</b>:  shmget() failed for key 0x4d2: Permission denied in <b>./test.php</b> 
on line <b>2</b><br>

so, i think this bug is closed.

Previous Comments:

[2001-04-28 19:22:46] [EMAIL PROTECTED]
Could you provide a small sample script (just enough code for this to fail.) for us to 



[2001-04-02 09:23:43] [EMAIL PROTECTED]
got segfault using shm_attach():

1) script started as user A creating shared memory block: shm_attach($mem_id, 
$mem_size, 0600);
2) same script, but started as user B trying shm_attach($mem_id, $mem_size, 0600);
(it cannot be done, because access rights is 0600 - memory is for owner only)
the result is segmentation fault.

Linux 2.2.16

php config:
--with-gdbm --disable-dbm 


Full Bug description available at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to