Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32799 - apache segfaults when using oci8 enabled PHP
Summary: apache segfaults when using oci8 enabled PHP
Status: RESOLVED DUPLICATE of bug 32364
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-05 08:31 UTC by sardanap
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sardanap 2003-11-05 08:31:23 UTC
[Wed Nov 05 15:51:21 2003] [notice] child pid 13498 exit signal Segmentation
fault (11)



Reproducible: Always
Steps to Reproduce:
1.Working oracle9i installation
2.use oci8 in /etc/make.conf
3.set ORACLE_HOME in root user
4. modified mod_php-4.3.3-r3 to allow "--enable-sigchild" after reading official
oracle documentation which can be found at :
http://otn.oracle.com/tech/opensource/php/apache/inst_php_apache_linux.html

5. emerge apache
6. emerge mod_php
7. /etc/init.d/apache2 start


Actual Results:  
tried oci8test.php from :
http://otn.oracle.com/tech/opensource/php/apache/inst_php_apache_linux.html

and i had blank page, then i saw /var/log/apache2/error_log and found:

[Wed Nov 05 17:19:57 2003] [notice] Apache/2.0.48 (Gentoo/Linux) PHP/4.3.3
configured -- resuming normal operations
[Wed Nov 05 17:20:11 2003] [notice] child pid 17290 exit signal Segmentation
fault (11)
[Wed Nov 05 17:20:11 2003] [notice] child pid 17288 exit signal Segmentation
fault (11)
[Wed Nov 05 17:20:11 2003] [notice] child pid 17287 exit signal Segmentation
fault (11)


Expected Results:  
should have shown me output from that oracle query


If i do a normal installation from vanilla sources and i do a 
/usr/local/apache/bin/apachectl start then all the stuff works perfectly, 

so i think it is a problem with apache and/or mod_php ebuild

I'm not the only guy with this problem,
check: http://forums.gentoo.org/viewtopic.php?t=101694
this one have my same problem




root@ordini mod_php # emerge --info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22)
=================================================================
System uname: 2.4.22 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/portage/build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.localsipal/gentoo-portage"
USE="x86 ssl pam sse gd png jpeg xml xml2 zlib tiff imap pdflib crypt oci8 perl"
Comment 1 Don Seiler (RETIRED) gentoo-dev 2003-11-10 10:25:53 UTC
Note that user has a fix and patch on the forum link.
Comment 2 Don Seiler (RETIRED) gentoo-dev 2003-11-13 13:47:04 UTC
Hmm patch involves setting basic ORACLE environment vars, which the ebuild will probably need to read in from env and somehow patch into the init script.  Perhaps creating a patch file on the fly and then patching?
Comment 3 Don Seiler (RETIRED) gentoo-dev 2003-11-13 13:50:04 UTC

*** This bug has been marked as a duplicate of 32364 ***