[phpa] Re: Apache segfaulting on some scripts

What exactly *is* /tmp on your machine? Is it a regular file system, or
some other device such as a ram drive of some kind?

The problem is basically that the attempt to memory map the cache file
has failed on your machine. The error is even more bizarre. Not a
permissions error, or any common resource error, but an error saying
that an I/O control operation was inappropriate for the device that
/tmp is on.

If /tmp is just a regular file system, you might try rebooting and
seeing whether the problem goes away. I know that sounds like a typical
windows solution, but would be worth a shot.

phpa also isn't making any ioctl calls and I'm not sure as to whether
that error is a documented one for mmap.

So, hit the switch when you can and see if it goes away, and send an
email to support@xxxxxxxxxx if it happens again, and include more
information about your OS, kernel version etc.

nick





>
> For some really odd reason apache child processes have started
> segfaulting when I try to run certain php scripts. I don't remember
> changing any of the scripts either. I just came home from work and
> bam!, the problem occured. Is this a known problem with my
> configuration? (Apache 1.3.26, PHP 4.2.1 and PHPA 1.3.1pre3)
>
> Here's a small portion of my error_log:
>
> [Sat Jul 13 16:37:19 2002] [notice-phpa] PHPA 1.3.1pre3 on
> linux_glibc2.2.4 (pid 7123)
> [Sat Jul 13 16:37:19 2002] [notice-phpa] Initialised 3MB cache at
> 0x409f7000 with 512 process entries (pid 7123)
> [Sat Jul 13 16:37:20 2002] [notice] Apache/1.3.26 (Unix) mod_perl/1.26
> PHP/4.2.1 configured -- resuming normal operations
> [Sat Jul 13 16:37:20 2002] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Sat Jul 13 16:37:20 2002] [notice] Accept mutex: sysvsem (Default:
> sysvsem) [Sat Jul 13 16:37:45 2002] [notice] child pid 7124 exit
signal
> Segmentation fault (11)
> [Sat Jul 13 16:38:12 2002] [warn-phpa] Stale process 7124 detected
(pid
> 7125)
> [Sat Jul 13 16:38:12 2002] [warn-phpa] mmap cache can't mmap
> /tmp/phpa_771_356842 - Inappropriate ioctl for device (pid 7125)
> [Sat Jul 13 16:38:13 2002] [warn-phpa] mmap cache can't mmap
> /tmp/phpa_771_356969 (pid 7125)
> [Sat Jul 13 16:38:13 2002] [warn-phpa] mmap cache can't mmap
> /tmp/phpa_771_356818 (pid 7125)
> etc etc
>
> Every time I try to access any of the scripts a child process dies.
>
> Regards
> Rickard Andersson
>
>
>
------------------------------------------------------------------------
>  www.php-accelerator.co.uk           Home of the free PHP Accelerator
>
> To post, send email to phpa@xxxxxxxxxxxxx
> To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject
> unsubscribe



------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: