Segmentation fault for queueSize method access does not exist data


#1
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00000001001b89a6 php`zend_read_property [inlined] zend_read_property_ex(scope=<unavailable>, object=0x00007fff5fbfec48, name=0x0000000100c60600, silent=<unavailable>) at zend_API.c:4070 [opt]
    frame #1: 0x00000001001b8987 php`zend_read_property(scope=<unavailable>, object=0x00007fff5fbfec48, name=<unavailable>, name_length=5, silent='\0', rv=0x00007fff5fbfec08) at zend_API.c:4083 [opt]
    frame #2: 0x000000010087fea2 couchbase.so`zim_Bucket_mapSize(execute_data=<unavailable>, return_value=0x00007fff5fbfec48) at bucket.c:434 [opt]
    frame #3: 0x000000010020cfa4 php`ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER(execute_data=0x0000000100c18030) at zend_vm_execute.h:970 [opt]
    frame #4: 0x00000001001f2d18 php`execute_ex(ex=0x0000000100c18030) at zend_vm_execute.h:432 [opt]
    frame #5: 0x00000001001f302b php`zend_execute(op_array=0x0000000100c722a0, return_value=<unavailable>) at zend_vm_execute.h:474 [opt]
    frame #6: 0x00000001001ad885 php`zend_execute_scripts(type=8, retval=0x0000000000000000, file_count=3) at zend.c:1476 [opt]
    frame #7: 0x00000001001445e9 php`php_execute_script(primary_file=<unavailable>) at main.c:2537 [opt]
    frame #8: 0x0000000100259679 php`do_cli(argc=<unavailable>, argv=<unavailable>) at php_cli.c:993 [opt]
    frame #9: 0x000000010025854f php`main(argc=<unavailable>, argv=0x00007fff5fbffb58) at php_cli.c:1381 [opt]
    frame #10: 0x00007fffc569a235 libdyld.dylib`start + 1
    frame #11: 0x00007fffc569a235 libdyld.dylib`start + 1

test.php

<?php
namespace dark9\cli;
$couchbase = new \Couchbase\Cluster('0.0.0.0?dnssrv=false');
$bucket = $couchbase->openBucket();
$bucket->queueSize('abc'); // abc does not exist data.

#2

queueExists method same problem.


#3

Thank you for issue report, it has been fixed in http://review.couchbase.org/77174


#4

Thank you for fixed.


#5

btw: now queueAdd does not thrown exception, don’t know if it fails.