Bug 122347 - oci8 php pages get segmentation fault
oci8 php pages get segmentation fault
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: php (Show other bugs)
3.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-05-03 11:39 EDT by Stephen Lawrence Jr.
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-05-03 13:45:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Stephen Lawrence Jr. 2004-05-03 11:39:16 EDT
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 13:45:31 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.