php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #693 Apache process runs out of control
Submitted: 1998-08-25 09:44 UTC Modified: 1999-05-29 11:24 UTC
From: jase at sensis dot com Assigned:
Status: Closed Package: Oracle related
PHP Version: 3.0.3 OS: Solaris 2.6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jase at sensis dot com
New email:
PHP Version: OS:

 

 [1998-08-25 09:44 UTC] jase at sensis dot com
Hello.  

It seems that after I access a page with using oracle
access several times, the next time I run a cgi script,
the server process goes out of control, using all the
cpu.  (See bugs 375 and 450).

I think it is Oracle related.  It only happens after I have
accessed a page which talked to our oracle database.

I finally had some time to look into this last week, and I
have a hack which seems to have fixed the problem.

Doing a truss on the process, it seems that there are lots
of SIGCHLDs going to it.  (I can give send the output of
this if you like.)  So, in the file main.c, at the ttop of the
function php3_parse (about line 1427), I added the following line:

signal (SIGCHLD, SIG_DFL);

I'm not much of a unix programmer, but I have played
around with it before.  After adding the line above, it
fixed my problems.

I don't know where the problem really is, though.  Is it
a problem with php?  apache?  the oracle libraries?

Will my fix above break anything else? (it hasn't so far).

I'm running apache 1.3.1 and php 3.0.3.

My configure script for php is below:

./configure
--with-shared-apache=../apache_1.3.1
--with-oracle=/opt/oracle7
--enable-track-vars
--with-system-regex

Thanks.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-29 11:24 UTC] thies at cvs dot php dot net
please retry witb latest version

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 13:01:27 2024 UTC