Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-494

Double free() error when using passthru transcoder

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.3.3
    • None
    • None
    • None

    Description

      ==11720== Invalid read of size 4
      ==11720==    at 0x674179: zval_delref_p (zend.h:411)
      ==11720==    by 0x674179: i_zval_ptr_dtor (zend_execute.h:76)
      ==11720==    by 0x674179: _zval_ptr_dtor (zend_execute_API.c:424)
      ==11720==    by 0x6A1799: zend_hash_destroy (zend_hash.c:548)
      ==11720==    by 0x689B3A: _zval_dtor_func (zend_variables.c:45)
      ==11720==    by 0x6741D4: _zval_dtor (zend_variables.h:35)
      ==11720==    by 0x6741D4: i_zval_ptr_dtor (zend_execute.h:79)
      ==11720==    by 0x6741D4: _zval_ptr_dtor (zend_execute_API.c:424)
      ==11720==    by 0xD7F87EC: pcbc_encode_value (transcoding.c:87)
      ==11720==    by 0xD7CFE55: zim_Bucket_insert (store.c:116)
      ==11720==    by 0x6DE8F9: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
      ==11720==    by 0x6DFC26: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:693)
      ==11720==    by 0x6DC302: execute_ex (zend_vm_execute.h:363)
      ==11720==    by 0x6DD087: zend_execute (zend_vm_execute.h:388)
      ==11720==    by 0x68EE6C: zend_execute_scripts (zend.c:1341)
      ==11720==    by 0x5D6E6B: php_execute_script (main.c:2613)
      ==11720==    by 0x7D710A: do_cli (php_cli.c:998)
      ==11720==    by 0x7D8425: main (php_cli.c:1382)
      ==11720==  Address 0xe4f9d30 is 16 bytes inside a block of size 32 free'd
      ==11720==    at 0x4C2ED4A: free (vg_replace_malloc.c:530)
      ==11720==    by 0x647C25: _efree (zend_alloc.c:2435)
      ==11720==    by 0x6741E0: i_zval_ptr_dtor (zend_execute.h:80)
      ==11720==    by 0x6741E0: _zval_ptr_dtor (zend_execute_API.c:424)
      ==11720==    by 0x6A1799: zend_hash_destroy (zend_hash.c:548)
      ==11720==    by 0x689B3A: _zval_dtor_func (zend_variables.c:45)
      ==11720==    by 0x6741D4: _zval_dtor (zend_variables.h:35)
      ==11720==    by 0x6741D4: i_zval_ptr_dtor (zend_execute.h:79)
      ==11720==    by 0x6741D4: _zval_ptr_dtor (zend_execute_API.c:424)
      ==11720==    by 0xD7F87EC: pcbc_encode_value (transcoding.c:87)
      ==11720==    by 0xD7CFE55: zim_Bucket_insert (store.c:116)
      ==11720==    by 0x6DE8F9: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
      ==11720==    by 0x6DFC26: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:693)
      ==11720==    by 0x6DC302: execute_ex (zend_vm_execute.h:363)
      ==11720==    by 0x6DD087: zend_execute (zend_vm_execute.h:388)
      ==11720==    by 0x68EE6C: zend_execute_scripts (zend.c:1341)
      ==11720==    by 0x5D6E6B: php_execute_script (main.c:2613)
      ==11720==    by 0x7D710A: do_cli (php_cli.c:998)
      ==11720==    by 0x7D8425: main (php_cli.c:1382)
      ==11720==  Block was alloc'd at
      ==11720==    at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
      ==11720==    by 0x6447D2: __zend_malloc (zend_alloc.h:97)
      ==11720==    by 0x647B74: _emalloc (zend_alloc.c:2425)
      ==11720==    by 0xD7BE8DB: zif_passthruEncoder (couchbase.c:913)
      ==11720==    by 0x676930: zend_call_function (zend_execute_API.c:850)
      ==11720==    by 0x674ECA: call_user_function_ex (zend_execute_API.c:617)
      ==11720==    by 0x674D44: call_user_function (zend_execute_API.c:590)
      ==11720==    by 0xD7F8693: pcbc_encode_value (transcoding.c:52)
      ==11720==    by 0xD7CFE55: zim_Bucket_insert (store.c:116)
      ==11720==    by 0x6DE8F9: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
      ==11720==    by 0x6DFC26: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:693)
      ==11720==    by 0x6DC302: execute_ex (zend_vm_execute.h:363)
      ==11720==    by 0x6DD087: zend_execute (zend_vm_execute.h:388)
      ==11720==    by 0x68EE6C: zend_execute_scripts (zend.c:1341)
      ==11720==    by 0x5D6E6B: php_execute_script (main.c:2613)
      ==11720==    by 0x7D710A: do_cli (php_cli.c:998)
      ==11720==    by 0x7D8425: main (php_cli.c:1382)
      ==11720==
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty