php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33124 Segmentation Fault(11)
Submitted: 2005-05-24 13:15 UTC Modified: 2005-05-24 14:06 UTC
From: sunil_met at yahoo dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.11 OS: Linux 9
Private report: No CVE-ID: None
 [2005-05-24 13:15 UTC] sunil_met at yahoo dot com
Description:
------------
I am facing this strange problem wherein I am able to see the output of a php script when executed in the shell prompt. But the same script is failing at the Apache level with the following error

[Tue May 24 13:10:43 2005] [notice] child pid 26742 exit signal Segmentation fault (11)
[Tue May 24 13:18:40 2005] [notice] child pid 26743 exit signal Segmentation fault (11)

Reproduce code:
---------------
<?php
PutEnv("ORACLE_SID=oracle9i");
PutEnv("ORACLE_HOME=/oracle9i");
PutEnv("TNS_ADMIN=/oracle9i/network/admin");
$db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
                    (HOST = 172.16.7.100)(PORT=1521))
                      (CONNECT_DATA=(SERVER=DEDICATED)
                      (SERVICE_NAME=oracle9i)))";
  $c=OCILogon("support1", "support1",$db);
  echo "Connected";
  if ( ! $c ) {
   echo "Unable to connect: " . var_dump( OCIError() );
   die();
$s = OCIParse($c, "select * from tab1");
echo "trace1";
  OCIExecute($s, OCI_DEFAULT);
  while (OCIFetch($s)) {
   echo "COL1=" . ociresult($s, "COL1") ;
      ", COL2=" . ociresult($s, "COL2") . "\n";
  }

OCILogoff($c);
?>


Expected result:
----------------
The page cannot be displayed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-24 13:19 UTC] sunil_met at yahoo dot com
Expected Result :-

COL1=1
COL@=Frank
 [2005-05-24 14:02 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2005-05-24 14:06 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC