php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30117 Segmentation fault OCI8
Submitted: 2004-09-16 16:04 UTC Modified: 2004-09-16 16:53 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: s dot masugata at digicom dot dnp dot co dot jp Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.9RC3 OS: Solaris8
Private report: No CVE-ID: None
 [2004-09-16 16:04 UTC] s dot masugata at digicom dot dnp dot co dot jp
Description:
------------
Segmentation fault by using both OCI8 function and a putenv function.
However, unless it uses putenv, it does not Segmentation fault.

http://bugs.php.net/bug.php?id=27620

Although the same report was discovered, is there any relation?
Is avoiding possible?


Reproduce code:
---------------
<?
putenv( "ORACLE_HOME=/****" );
putenv( "ORACLE_BASE=/****" );
putenv( "ORA_NLS33=/****" );
putenv( "ORACLE_SID=/****" );

$Connect = OCILogon( "****", "****", "****" );
OCILogOff( $Connect );
?>


Expected result:
----------------
Not Segmentation fault.

Actual result:
--------------
Segmentation fault.

Program received signal SIGSEGV, Segmentation fault.
0xfcd17b60 in lmsaic () from /DB/oracle/u01/product/8.1.7/lib/libclntsh.so.8.0
(gdb) bt
#0  0xfcd17b60 in lmsaic () from /DB/oracle/u01/product/8.1.7/lib/libclntsh.so.8.0
#1  0xfcd17904 in lmsaip () from /DB/oracle/u01/product/8.1.7/lib/libclntsh.so.8.0
#2  0xfcca8854 in kpugeml () from /DB/oracle/u01/product/8.1.7/lib/libclntsh.so.8.0
(gdb)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-16 16:30 UTC] sniper@php.net
It crashes in the oracle client library so you need to report this bug to the appropriate place: Oracle.

 [2004-09-16 16:53 UTC] tony2001@php.net
Btw, it will not work with putenv() anyway - OCI libs should be initialized with these environment variables, i.e. they should be set _before_ Apachs starts up and accessible to apache's user.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 20:01:32 2024 UTC