#32485 [NEW]: PHP/OCI8 segfaults after the script ends
From: phpbug at pech dot cz
Operating system: Linux 2.4.22
PHP version: 5.0.3
PHP Bug Type: OCI8 related
Bug description: PHP/OCI8 segfaults after the script ends
Description:
------------
PHP with OCI8 segfaults just _after_ the script ends, when executed from
command line by php -q <anyscript.php.
Everything is processed fine, but _after_ the script ends (past the
processing of the last line), segmentation fault occurs and the core is
dumped by php.
Reproduce code:
---------------
<?php
$conn = oci_connect ($user, $password, $db);
?>
Expected result:
----------------
Print nothing. In general, expected result means that it will end without
segmentation fault.
Actual result:
--------------
Backtrace (seems really strange to me):
#0 0x04ac8a8c in ?? ()
#1 0x00af3a90 in exit () from /lib/tls/libc.so.6
#2 0x00adeade in __libc_start_main () from /lib/tls/libc.so.6
#3 0x080738e1 in _start ()
When I accidentally forgotten to set evnironment variable ORA_NLS33, it
prints:
PHP Warning: oci_connect() [<a
href='function.oci-connect'>function.oci-connect</a>]: _oci_open_server:
Error while trying to retrieve text for error ORA-12154
in - on line 2
-(2) : Warning - oci_connect() [<a
href='function.oci-connect'>function.oci-connect</a>]: _oci_open_server:
Error while trying to retrieve text for error ORA-12154
/usr/src/redhat/BUILD/php-5.0.3/ext/oci8/oci8.c(3065) : Freeing
0x09A1E4BC (20 bytes), script=-
=== Total 1 memory leaks detected ===
"Error while trying to retrieve text for error ORA-12154" is OK, becuase
all environment variables are not set and exported, but the error
ORA-12154 and the memory leak are not.
Please feel free to contact me for any further details if needed.
--
Edit bug report at http://bugs.php.net/?id=32485&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32485&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32485&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32485&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32485&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32485&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32485&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32485&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32485&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32485&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32485&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32485&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32485&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32485&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32485&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32485&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32485&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32485&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32485&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32485&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32485&r=mysqlcfg
Thread (8 messages)
- phpbug at pech dot cz