php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28603 Apache-2.0.49-worker crashes on graceful restart with OCI8 module
Submitted: 2004-06-01 14:57 UTC Modified: 2004-07-06 16:29 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: uncle at fedor dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.7 OS: SuSE Linux 8.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: uncle at fedor dot com
New email:
PHP Version: OS:

 

 [2004-06-01 14:57 UTC] uncle at fedor dot com
Description:
------------
It looks like a similar bug (#27810) was fixed when compiled PHP with PCRE support. Now the same behaviour occures for the OCI8 module.

Apache dies on graceful restart, only when OCI8 support is compiled in.

Reproduce code:
---------------
To reproduce:
- Install apache-2.0.49-worker (using official SuSE RPMs)
- Install Oracle 9.0.2 Client for Linux 32bit
- Compiled php-4.3.7RC1 with OCI8 support using apxs2
- run 'apachectl start'
- run 'apachectl graceful' and apache will die


Expected result:
----------------
The expected behaviour: apache2 should not die

Actual result:
--------------
The actual result: apache2 dies with the following error:

seg fault or similar nasty error detected in the parent process

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-02 08:23 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2004-06-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2004-07-06 14:51 UTC] uncle at fedor dot com
I tried to generate a backtrace according to a standard procedure, but as soon as httpd2-worker is started with the -X switch, it *does not* die when 'apache2ctl graceful' command is issued.

That tells me the following: when Apache is run with the -X switch only 1 thread is started. Normally there is more than one thread (it is a -worker). Therefore one could assume the segmentation fault happens because of multiple threads and OCI8 module incompatibility.

httpd2-prefork also works fine with OCI8 module by the way.

The above poses a few questions:

a) Is OCI8 module not thread-safe?
b) Is it a problem of Oracle 9.0.2 Client libraries?
c) Can the problem be traced futher?
d) Shall I give up and use the prefork mpm?

Thanks!
 [2004-07-06 16:29 UTC] derick@php.net
Option d: give up and use prefork. A threaded apache is not going to buy you much on linux anyway. (And there is also another bug about this same issue, but can't find it, so I'm closing this one as "bogus")
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 22:01:28 2024 UTC