#33915 [NEW]: Crash in _oci_close_session
| From: | jfbustarret at tf1 dot fr | Date: | Fri, 29 Jul 2005 06:25:21 +0000 |
| Subject: | #33915 [NEW]: Crash in _oci_close_session | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-82646@lists.php.net to get a copy of this message | ||
From: jfbustarret at tf1 dot fr
Operating system: Linux
PHP version: 5.0.4
PHP Bug Type: OCI8 related
Bug description: Crash in _oci_close_session
Description:
------------
Using php 5.0.4, with the oci8 extension from CVS & the oci_ping code
activated in _oci_open_server, I have random segfaults on my production
servers.
Here is the back trace :
#0 0xb78f3779 in _oci_close_session (session=0x8382a20)
at /soft/sources/php/php-5.0.4/ext/oci8/oci8.c:2961
2961 CALL_OCI_RETURN(OCI(error),
(gdb) bt
#0 0xb78f3779 in _oci_close_session (session=0x8382a20)
at /soft/sources/php/php-5.0.4/ext/oci8/oci8.c:2961
#1 0xb79f0d5e in list_entry_destructor (ptr=0x83590f0)
at /soft/sources/php/php-5.0.4/Zend/zend_list.c:173
#2 0xb79eef48 in zend_hash_apply_deleter (ht=0xb7a72560, p=0x836a4c8)
at /soft/sources/php/php-5.0.4/Zend/zend_hash.c:618
#3 0xb79ef227 in zend_hash_graceful_reverse_destroy (ht=0xb7a72560)
at /soft/sources/php/php-5.0.4/Zend/zend_hash.c:684
#4 0xb79e144a in shutdown_executor ()
at /soft/sources/php/php-5.0.4/Zend/zend_execute_API.c:284
#5 0xb79e8c86 in zend_deactivate ()
at /soft/sources/php/php-5.0.4/Zend/zend.c:902
#6 0xb79b544c in php_request_shutdown (dummy=0x0)
[...]
(gdb) print *session
$1 = {num = 137800016, persistent = 0 '\0', is_open = 253 'ý',
exclusive = 49 '1', thread = 8 '\b', sessions_list = 0x0, server = 0x0,
pSession = 0x0, pEnv = 0x0, charsetId = 0}
I'll try this patch in _oci_close_session :
if (!session) {
return;
}
+ if (!session->server) {
+ return;
+ }
oci_debug("START _oci_close_session: logging-off
sess=%d",session->num);
Reproduce code:
---------------
No reproducing code. The crashes are random & time/traffic dependant.
--
Edit bug report at http://bugs.php.net/?id=33915&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33915&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33915&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33915&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33915&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33915&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33915&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33915&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33915&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33915&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33915&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33915&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33915&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33915&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33915&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33915&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33915&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33915&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33915&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33915&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33915&r=mysqlcfg