[Fwd: Segfault on writing to shared memory block]
| From: | mike | Date: | Sat, 29 Sep 2001 19:06:53 +0000 |
| Subject: | [Fwd: Segfault on writing to shared memory block] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-66836@lists.php.net to get a copy of this message | ||
Oh, and I'm using 4.0.6. Sorry, forgot to mention that ;)
----
Hi,
my scripts look like this...
#!/usr/local/bin/php
That sets up the shared memory and waits for the first four chars to
be set to "exit", then it should exit the loop and clean up.
The script that is supposed to set "exit" in the shared block is
#!/usr/local/bin/php
It segfaults on the shmop_write line, every time.
I am using slackware 8, gcc 2.95.3. The shared memory shows up
fine on ipcs and the process that created it can write to it fine.
Is this a bug or am I doing something wrong?
Mike