ID:               21040
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alain at cscoms dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Solaris x86 2.7
 PHP Version:      4.4.0-dev
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Sounds like a bug with Sun's threading library and not a PHP issue.
Unless some indication can be found that this is the result of inproper
signal handling by PHP this bug report is bogus (not a PHP issue).


Previous Comments:
------------------------------------------------------------------------

[2002-12-17 06:20:48] alain at cscoms dot net

- tested on Solaris 2.7/SPARC: fails too
- gave up trying to build Apache 2.0.43 with an alternate threads
library: can't get MIT pthreads to build
- Sunsolve mentions bug causing SIGPROF not to be delivered
in certain cases, but this only concerns the "alternate" threads
library on Solaris 2.8. Nothing related to 2.7. I've tried to install
the latest Solaris 2.7 libthreads.so.1 patch: doesn't solve the problem

------------------------------------------------------------------------

[2002-12-16 20:27:47] alain at cscoms dot net

No module/extension besides the ones shown in the configure command
line above (rewrite, expires, status, info). The configuration of the
FreeBSD test box is a copy of this one, and it works. Could it be that
the threads library itself is either taking over SIGPROF of blocking it
somehow?
I'm considering building Apache with an alternate threads library to
see what happens.

------------------------------------------------------------------------

[2002-12-16 10:51:57] [EMAIL PROTECTED]

Sounds like some is taking over the handler for the SIGPROF and it
never gets to PHP. Besides PHP, what modules/extensions do you have
enabled in your Apache?

------------------------------------------------------------------------

[2002-12-16 06:44:11] alain at cscoms dot net

Works on FreeBSD 4.x (with unmodified PHP source).
So it's kind of Solaris-specific (will test on Sparc)

------------------------------------------------------------------------

[2002-12-16 05:12:57] alain at cscoms dot net

[oops, posted this as "add comment" because I hadn't read the direction
to use "edit submission" instead yet --sorry]

Just out of curiosity, and admittedly not quite understanding what I
was doing, I have tried changing the zend_set_timeout code to use
SIGALRM instead of SIGPROF and thus pass ITIMER_REAL to setitimer
instead of ITIMER_PROF

Guess what? It works now.

I understand that this can have nasty side effects. I was just
wondering why SIGPROF was being used and if this could be the reason.
The setitimer man page on Solaris says a lot of things about using it
in MT environment which I don't quite catch :-)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21040

-- 
Edit this bug report at http://bugs.php.net/?id=21040&edit=1

Reply via email to