Bug 122347

Summary: oci8 php pages get segmentation fault
Product: Red Hat Enterprise Linux 3 Reporter: Stephen Lawrence Jr. <redhat>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-05-03 17:45:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Lawrence Jr. 2004-05-03 15:39:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031114

Description of problem:
After rebuilding the php-src for oci8 support, oci8 queries (adodb)
end with a segmentation fault. I am using /usr/bin/php to test the
script. 

I believe this is happening after all the results have been returned. 

The httpd process segfaults, causing "Page not available" type errors.
I had tried this with the stock PHP version and was having the same
issue. I thought this beta version would work as I saw another bug
that sounded similar that was resolved in 4.3.2-11.



Version-Release number of selected component (if applicable):
php-4.3.2-11.ent php-oci8-4.3.2-11.ent oracle-9.2.0

How reproducible:
Always

Steps to Reproduce:
1. rebuild php with oci8 support
2. use /usr/bin/php to call program with connection to database and
query for results from the database
3.
    

Actual Results:  Segmentation Fault in httpd error_log

Expected Results:  Query returned on screen

Additional info: 

Program used for connection test:
<?php
echo 'begin test';
error_reporting(15);
include('/home/httpd/php-lib/adodb/adodb.inc.php');
echo 'Just included adodb';
$conn = &ADONewConnection('oci8');
echo 'Created oci8 connection';

$conn->Connect('myhost','myuser','mypass');
//print_r ($conn);
echo 'Connected1<br>';


$sql="SELECT callnumber FROM CALLS";
//echo $sql;exit;
$recordSet = $conn->Execute($sql);
echo 'Just created recordset';
print_r($recordSet);
if (!$recordSet)
        print $conn->ErrorMsg();
else
while (!$recordSet->EOF) {
        print $recordSet->fields[0].' '.$recordSet->fields[1].'<BR>';
        $recordSet->MoveNext();
}

$recordSet->Close(); # optional
$conn->Close(); # optional
  ?>

Comment 1 Joe Orton 2004-05-03 17:45:31 UTC
Sorry, but the oci8 subpackage is not supported in the php package in
RHEL3.  However, if you can identify the particular patch needed to
fix the problem, it can be integrated for future updates; if so,
please re-open the bug and attach the patch, or provide a URL.