The fact that some applications crash with Apache2+PHP is not strange at
all. There are likely a number of 3rd-party libraries which can currently
be linked into PHP that are not threadsafe and/or re-entrant.  It will
take a while before we identify these libraries and try to come up with
some workaround.  For now you can try going single-threaded and see if
that helps (although then you might as well just use Apache 1.3.x)

-Rasmus

On Fri, 24 May 2002, Rodolfo Segleau wrote:

>
> Not sure if you guys have already responded to this, but here we go (I'm
> checking the archives of PHP as I am writing this).
>
> I have Apache 2.0.36 running with PHP 4.2.1. Apache seg faults with a certain
> application (which has redirected me back here). Child processes quit with a
> signal 11. I know that PHP 4.2.1 doesn't have full support for Apache2, but it
> seems strange that only a few of all the applications written in PHP are
> causing this segfault. Below is the output of an strace done on the parent
> process:
>
> <begin logfile>
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> gettimeofday({1022291150, 787056}, NULL) = 0
> fork()                                  = 15100
> wait4(-1, 0x11ffff818, WNOHANG|WUNTRACED, NULL) = 0
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> <snip wait4s>
> ...
> </snip wait4s>
> wait4(-1, 0x11ffff818, WNOHANG|WUNTRACED, NULL) = 0
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> wait4(-1, 0x11ffff818, WNOHANG|WUNTRACED, NULL) = 0
> select(0, NULL, NULL, NULL, {1, 0})     = ? ERESTARTNOHAND (To be restarted)
> --- SIGCHLD (Child exited) ---
> select(0, NULL, NULL, NULL, {0, 496784}) = 0 (Timeout)
> wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG|WUNTRACED, NULL) =
>  15034
> gettimeofday({1022291166, 797450}, NULL) = 0
> write(11, "[Fri May 24 20:46:06 2002] [noti"..., 88) = 88
> gettimeofday({1022291166, 797869}, NULL) = 0
> wait4(-1, 0x11ffff818, WNOHANG|WUNTRACED, NULL) = 0
> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
> <end of logfile>
>
>
>
> Any ideas?
>
> Cheers,
>
>
> Rodolfo
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to