Hello,
I've had crashes of PHP-4.3.2 with OCI8 extention ( configure --with-oci8). An
application using OCI8 functions will crash after about 4-5 times reload. For
example, I copied and pasted the example here:
http://us4.php.net/manual/en/function.ocifetchinto.php
reload it about 4 times, and then it would stop working. It would not reload,
just do nothing, and in Apache error logs, I get:
[Sun Jul 6 17:34:41 2003] [notice] child pid 19011 exit signal Segmentation
fault (11)
[Sun Jul 6 17:34:41 2003] [notice] child pid 19005 exit signal Segmentation
fault (11)
whenever I hit reload.
I've asked PHP-DB list and didn't get a solution, until I tried older version
of PHP. I tried PHP-4.3.1 and 4.2.3 and both worked fine with the same
configuration and same php.ini. I know it's supposed to work because we've
used this older version with other server.
So apparently the problem only with 4.3.2. Is this a known bug? Should I file
a bug report?
The oracle extention (--with-oracle) seems to work fine though. Don't know if
the two has any relation, except for the fact that both can be used to
connect to oracle database.
More information about my system:
Apache-1.3.27, recompiled and reinstalled with libpthreads, following the
direction at http://www.php.net/oci8
Oracle 9i Database (9.2.0.2)
Athlon XP 1.4 Ghz, 1GB Ram, 2GB Swap. Apache, PHP and Oracle are installed in
the same box.
All the oracle environment variables are set in the apachetl script.
Please let me know if there is known solution to this problem, or if you need
more information about the problem.
Thanks
Reuben D. Budiardja
/"\ ASCII Ribbon Campaign against HTML
\ / email and proprietary format
X attachments.
/ \
Tried latest stable snap from http://snaps.php.net/ ?
Edin
----- Original Message -----
From: "Reuben D. Budiardja" reubendb@innovativethought.com
To: internals@lists.php.net
Sent: Monday, July 07, 2003 9:58 PM
Subject: [PHP-DEV] PHP-4.3.2 Crashes with OCI8 extention (Bug?)
Hello,
I've had crashes of PHP-4.3.2 with OCI8 extention ( configure --with-oci8).
An
application using OCI8 functions will crash after about 4-5 times reload.
For
example, I copied and pasted the example here:
http://us4.php.net/manual/en/function.ocifetchinto.php
reload it about 4 times, and then it would stop working. It would not
reload,
just do nothing, and in Apache error logs, I get:
[Sun Jul 6 17:34:41 2003] [notice] child pid 19011 exit signal Segmentation
fault (11)
[Sun Jul 6 17:34:41 2003] [notice] child pid 19005 exit signal Segmentation
fault (11)
whenever I hit reload.
I've asked PHP-DB list and didn't get a solution, until I tried older
version
of PHP. I tried PHP-4.3.1 and 4.2.3 and both worked fine with the same
configuration and same php.ini. I know it's supposed to work because we've
used this older version with other server.
So apparently the problem only with 4.3.2. Is this a known bug? Should I
file
a bug report?
The oracle extention (--with-oracle) seems to work fine though. Don't know
if
the two has any relation, except for the fact that both can be used to
connect to oracle database.
More information about my system:
Apache-1.3.27, recompiled and reinstalled with libpthreads, following the
direction at http://www.php.net/oci8
Oracle 9i Database (9.2.0.2)
Athlon XP 1.4 Ghz, 1GB Ram, 2GB Swap. Apache, PHP and Oracle are installed
in
the same box.
All the oracle environment variables are set in the apachetl script.
Please let me know if there is known solution to this problem, or if you
need
more information about the problem.
Thanks
Reuben D. Budiardja
/"\ ASCII Ribbon Campaign against HTML
\ / email and proprietary format
X attachments.
/ \
On Tue, 8 Jul 2003 01:09:00 +0200
"Edin Kadribasic" edink@proventum.net wrote:
Tried latest stable snap from http://snaps.php.net/ ?
Yep, I discovered this bug too.
It seems that this bug exists only in 4.3.2, but 4.3.1 & 4.3.3rc1 seem to be working almost ok.
As I understand this problem is concerned with OCILogon, cause my Apache segfaults only when OCILogon fails.
There are another one bug in OCI8: http://bugs.php.net/bug.php?id=24278
Anybody can help with it?
WBR,
Antony Dovgal aka tony2001
tony2001@phpclub.net
OCI_SHARED mode was used as in initilizaiton param to OCIInit() in php
4.3.2. This caused problems in cgi mode or cli mode (and some other
conditions w/the apache module) because the OCI libs seg fault while
attempting to use the same shared memory areas between processes. They
must use a static shared memory key. OCI_SHARED was removed since the
4.3.2 release because of these problems.
--
Levi Dixon
Tech. Lead; Dating
Community Connect, Inc.
149 5th Ave., Floor 10
New York, NY 10010
212-505-7511 x349
ldixon@mail.communityconnect.com
ldixon@php.net