Bug 122347 - oci8 php pages get segmentation fault
Summary: oci8 php pages get segmentation fault
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: php
Version: 3.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-05-03 15:39 UTC by Stephen Lawrence Jr.
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-05-03 17:45:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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