php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56538 segmentation fault using binded variables
Submitted: 2005-09-12 11:20 UTC Modified: 2005-09-13 03:16 UTC
From: jfbustarret at tf1 dot fr Assigned:
Status: Closed Package: oci8 (PECL)
PHP Version: 5.0.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jfbustarret at tf1 dot fr
New email:
PHP Version: OS:

 

 [2005-09-12 11:20 UTC] jfbustarret at tf1 dot fr
Description:
------------
I have a segmentation fault using PHP 5.0.5 + oci 1.1 (+ 9.2 Oracle client w apache2/Linux), while executing an INSERT with binded variables.


Here is the backtrace :


#0  0xb7a95020 in _erealloc (ptr=0xb7aea4c8, size=1, allow_failure=0)
    at /soft/sources/php/php-5.0.5/Zend/zend_alloc.c:345
345             REMOVE_POINTER_FROM_LIST(p);
(gdb) bt
#0  0xb7a95020 in _erealloc (ptr=0xb7aea4c8, size=1, allow_failure=0)
    at /soft/sources/php/php-5.0.5/Zend/zend_alloc.c:345
#1  0xb79ac5c0 in php_oci_bind_post_exec (data=0x87000bc)
    at /soft/sources/php/php-5.0.5/ext/oci8/oci8_statement.c:648
#2  0xb7aad320 in zend_hash_apply (ht=0x870073c,
    apply_func=0xb79ac560 <php_oci_bind_post_exec>)
    at /soft/sources/php/php-5.0.5/Zend/zend_hash.c:664
#3  0xb79ad1cf in php_oci_statement_execute (statement=0x857155c, mode=0)
    at /soft/sources/php/php-5.0.5/ext/oci8/oci8_statement.c:330
#4  0xb79b0c8a in zif_oci_execute (ht=2, return_value=0x8700f2c, this_ptr=0x0,
    return_value_used=1)
    at /soft/sources/php/php-5.0.5/ext/oci8/oci8_interface.c:1222
#5  0xb7ace495 in zend_do_fcall_common_helper (execute_data=0xbfffc970,
    opline=0xb4aacbe4, op_array=0x8567b74)
    at /soft/sources/php/php-5.0.5/Zend/zend_execute.c:2760
#6  0xb7ace640 in zend_do_fcall_handler (execute_data=0xbfffc970,
    opline=0xb4aacbe4, op_array=0x8567b74)
    at /soft/sources/php/php-5.0.5/Zend/zend_execute.c:2894
[...]
(gdb) up
#2  0xb7aad320 in zend_hash_apply (ht=0x870073c,
    apply_func=0xb79ac560 <php_oci_bind_post_exec>)
    at /soft/sources/php/php-5.0.5/Zend/zend_hash.c:664
664                     if (apply_func(p->pData TSRMLS_CC)) {
(gdb) p (php_oci_bind) p->pData
$7 = {bind = 0x87000bc, zval = 0x0, descriptor = 0x856dad4,
  statement = 0x856dcb4, indicator = 0, retcode = 0}



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-13 03:16 UTC] tony2001 at phpclub dot net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 17:01:31 2024 UTC