[PCBC-314] Segmentation fault running phpunit Created: 10/Dec/14  Updated: 15/Dec/14

Status: Open
Project: Couchbase PHP client library
Component/s: library
Affects Version/s: 2.0.2
Fix Version/s: None
Security Level: Public

Type: Bug Priority: Test Blocker
Reporter: deefactorial Assignee: Brett Lawson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: php --version
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

ubuntu 14.04 server edition

php-couchbase: latest github version.

Attachments: Text File phpinfo.txt    

 Description   
~/php-couchbase/tests# phpunit BucketTest.php
PHPUnit 4.4.0 by Sebastian Bergmann.

...............Segmentation fault


 Comments   
Comment by Brett Lawson [ 10/Dec/14 ]
Hey deefactorial,

Could you provide any more information on what is causing the segfault? Have you tried executing the test with gdb?

Cheers, Brett
Comment by deefactorial [ 10/Dec/14 ]
PHPUnit 4.4.0 by Sebastian Bergmann.

...............
Program received signal SIGSEGV, Segmentation fault.
dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, return_value_used=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:99
99 /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c: No such file or directory.
Comment by Brett Lawson [ 10/Dec/14 ]
Hey deefactorial,

This is something I've seen when using xdebug. Do you happen to have xdebug enabled? This is an issue that has been fixed in the development branch of xdebug, but is not released yet.

Cheers, Brett
Comment by deefactorial [ 10/Dec/14 ]
xdebug is not installed.

php -i | grep xdebug
returns nothing
Comment by Brett Lawson [ 10/Dec/14 ]
Can you try running it in gdb and giving me a full backtrace?

Cheers, Brett
Comment by deefactorial [ 10/Dec/14 ]
Here is my phpinfo
Comment by deefactorial [ 10/Dec/14 ]
~/php-couchbase/tests# gdb --args php /usr/local/bin/phpunit ./BucketTest.php
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from php...Reading symbols from /usr/lib/debug//usr/bin/php5...done.
done.
(gdb) r
Starting program: /usr/bin/php /usr/local/bin/phpunit ./BucketTest.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).

[New Thread 0x7fffec272700 (LWP 25244)]
[Thread 0x7fffec272700 (LWP 25244) exited]
PHPUnit 4.4.0 by Sebastian Bergmann.

...............
Program received signal SIGSEGV, Segmentation fault.
dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, return_value_used=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:99
99 /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c: No such file or directory.
(gdb) bt
#0 dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, return_value_used=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:99
#1 0x000000000079da25 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:552
#2 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fae780) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#3 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#4 0x00000000006dfc01 in zend_call_function (fci=fci@entry=0x7fffffff9c60, fci_cache=<optimized out>, fci_cache@entry=0x7fffffff9c30) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_execute_API.c:939
#5 0x0000000000704ba5 in zend_call_method (object_pp=object_pp@entry=0x7fffffff9d18, obj_ce=<optimized out>, fn_proxy=0x7ffff7e21d18, function_name=function_name@entry=0xb6c877 "__get",
    function_name_len=function_name_len@entry=5, retval_ptr_ptr=retval_ptr_ptr@entry=0x7fffffff9d28, param_count=param_count@entry=1, arg1=arg1@entry=0x7fffeb3e4140, arg2=arg2@entry=0x0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_interfaces.c:97
#6 0x000000000070ffc7 in zend_std_call_getter (object=0x7fffeb3e4270, member=0x7fffeb3e4140, member@entry=0x7fffeb60cb58) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_object_handlers.c:158
#7 0x0000000000711b56 in zend_std_read_property (object=0x7fffeb3e4270, member=0x7fffeb60cb58, type=0, key=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_object_handlers.c:470
#8 0x00000000007197a2 in zend_fetch_property_address_read_helper_SPEC_CV_CONST (execute_data=0x7ffff7fae0a0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:32370
#9 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fae0a0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#10 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#11 0x00000000006dfc01 in zend_call_function (fci=fci@entry=0x7fffffffa050, fci_cache=<optimized out>, fci_cache@entry=0x7fffffffa020) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_execute_API.c:939
#12 0x00000000005800e6 in zim_reflection_method_invokeArgs (ht=<optimized out>, return_value=0x7fffeb3ec1c0, return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/ext/reflection/php_reflection.c:3015
#13 0x00000000006dd9cb in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, return_value_used=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:97
#14 0x000000000079da25 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:552
#15 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fad9b0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#16 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#17 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7facd78) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#18 0x0000000000717758 in execute_ex (execute_data=0x7ffff7facd78) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#19 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#20 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fabbb0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#21 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fabbb0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#22 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#23 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7faa130) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#24 0x0000000000717758 in execute_ex (execute_data=0x7ffff7faa130) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#25 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#26 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa8cc0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#27 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa8cc0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#28 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#29 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa7ce0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#30 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa7ce0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#31 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#32 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa4f98) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#33 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa4f98) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#34 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#35 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa4660) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#36 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa4660) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#37 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#38 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa44a0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#39 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa44a0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#40 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#41 0x00000000006ef350 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /build/buildd/php5-5.5.9+dfsg/Zend/zend.c:1316
#42 0x000000000068f235 in php_execute_script (primary_file=primary_file@entry=0x7fffffffd1e0) at /build/buildd/php5-5.5.9+dfsg/main/main.c:2506
#43 0x000000000079f9fe in do_cli (argc=3, argv=0xebea00) at /build/buildd/php5-5.5.9+dfsg/sapi/cli/php_cli.c:994
#44 0x0000000000461de0 in main (argc=3, argv=0xebea00) at /build/buildd/php5-5.5.9+dfsg/sapi/cli/php_cli.c:1378
Comment by deefactorial [ 11/Dec/14 ]
let me know if there is anything you need me to test, run or need any more info on.
Comment by Brett Lawson [ 11/Dec/14 ]
Hey deefactorial,

It will take some time to look through and identify this issue. From you're backtrace, it doesn't appear that there is anything related to the Couchbase extension which is directly causing the issue. Are you certain that the couchbase extension is at fault here?

Cheers, Brett
Comment by deefactorial [ 11/Dec/14 ]
If I run the tests without the server running it fails the tests:
phpunit BucketTest.php
PHPUnit 4.4.0 by Sebastian Bergmann.

FFESSSSSSSSSSSSEE

Time: 45 ms, Memory: 3.75Mb

There were 3 errors:

1) BucketTest::testConnect
CouchbaseException: Network failure

/root/php-couchbase/tests/BucketTest.php:36

2) BucketTest::testOptionVals
CouchbaseException: Network failure

/root/php-couchbase/tests/BucketTest.php:295

3) BucketTest::testConfigCache
CouchbaseException: Network failure

/root/php-couchbase/tests/BucketTest.php:331

--

There were 2 failures:

1) BucketTest::testBadPass
Failed asserting that 16 matches expected 2.

/root/php-couchbase/tests/CouchbaseTestCase.php:83
/root/php-couchbase/tests/CouchbaseTestCase.php:67
/root/php-couchbase/tests/BucketTest.php:15

2) BucketTest::testBadBucket
Failed asserting that 16 matches expected 25.

/root/php-couchbase/tests/CouchbaseTestCase.php:83
/root/php-couchbase/tests/CouchbaseTestCase.php:67
/root/php-couchbase/tests/BucketTest.php:27

FAILURES!
Tests: 5, Assertions: 4, Failures: 2, Errors: 3, Skipped: 12.

So I thought perhaps it has to do with my couchbase-server version:
The couchbase server version I am using is a compiled from source couchbase-server 3.02.
so I installed the pre-compiled binaries of 3.01 community edition for ubuntu to test if another server version would work.
sudo dpkg -i couchbase-server-community_3.0.1-ubuntu12.04_amd64.deb
everything installed fine, I setup the server and ran the phpunit tests:

gdb --args php /usr/local/bin/phpunit ./BucketTest.php
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from php...Reading symbols from /usr/lib/debug//usr/bin/php5...done.
done.
(gdb) r
Starting program: /usr/bin/php /usr/local/bin/phpunit ./BucketTest.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).

[New Thread 0x7fffec272700 (LWP 12592)]
[Thread 0x7fffec272700 (LWP 12592) exited]
PHPUnit 4.4.0 by Sebastian Bergmann.

...............
Program received signal SIGSEGV, Segmentation fault.
dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>,
    return_value_used=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:99
99 /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c: No such file or directory.
(gdb) bt
#0 dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>,
    return_value_used=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:99
#1 0x000000000079da25 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:552
#2 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fae780)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#3 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#4 0x00000000006dfc01 in zend_call_function (fci=fci@entry=0x7fffffff9ca0, fci_cache=<optimized out>,
    fci_cache@entry=0x7fffffff9c70) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_execute_API.c:939
#5 0x0000000000704ba5 in zend_call_method (object_pp=object_pp@entry=0x7fffffff9d58,
    obj_ce=<optimized out>, fn_proxy=0x7ffff7e21d18, function_name=function_name@entry=0xb6c877 "__get",
    function_name_len=function_name_len@entry=5, retval_ptr_ptr=retval_ptr_ptr@entry=0x7fffffff9d68,
    param_count=param_count@entry=1, arg1=arg1@entry=0x7fffeb3ea690, arg2=arg2@entry=0x0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_interfaces.c:97
#6 0x000000000070ffc7 in zend_std_call_getter (object=0x7fffeb3e8170, member=0x7fffeb3ea690,
    member@entry=0x7fffeb60c928) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_object_handlers.c:158
#7 0x0000000000711b56 in zend_std_read_property (object=0x7fffeb3e8170, member=0x7fffeb60c928, type=0,
    key=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_object_handlers.c:470
#8 0x00000000007197a2 in zend_fetch_property_address_read_helper_SPEC_CV_CONST (
    execute_data=0x7ffff7fae0a0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:32370
#9 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fae0a0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#10 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#11 0x00000000006dfc01 in zend_call_function (fci=fci@entry=0x7fffffffa090, fci_cache=<optimized out>,
---Type <return> to continue, or q <return> to quit---
    fci_cache@entry=0x7fffffffa060) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_execute_API.c:939
#12 0x00000000005800e6 in zim_reflection_method_invokeArgs (ht=<optimized out>,
    return_value=0x7fffeb3eb510, return_value_ptr=<optimized out>, this_ptr=<optimized out>,
    return_value_used=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/ext/reflection/php_reflection.c:3015
#13 0x00000000006dd9cb in dtrace_execute_internal (execute_data_ptr=<optimized out>,
    fci=<optimized out>, return_value_used=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:97
#14 0x000000000079da25 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:552
#15 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fad9b0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#16 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#17 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7facd78)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#18 0x0000000000717758 in execute_ex (execute_data=0x7ffff7facd78)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#19 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#20 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fabbb0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#21 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fabbb0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#22 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
---Type <return> to continue, or q <return> to quit---
#23 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7faa130)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#24 0x0000000000717758 in execute_ex (execute_data=0x7ffff7faa130)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#25 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#26 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa8cc0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#27 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa8cc0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#28 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#29 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa7ce0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#30 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa7ce0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#31 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#32 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa4f98)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#33 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa4f98)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#34 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#35 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa4660)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
---Type <return> to continue, or q <return> to quit---
#36 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa4660)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#37 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#38 0x000000000079e070 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7fa44a0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#39 0x0000000000717758 in execute_ex (execute_data=0x7ffff7fa44a0)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#40 0x00000000006dd8c9 in dtrace_execute_ex (execute_data=<optimized out>)
    at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#41 0x00000000006ef350 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0,
    file_count=file_count@entry=3) at /build/buildd/php5-5.5.9+dfsg/Zend/zend.c:1316
#42 0x000000000068f235 in php_execute_script (primary_file=primary_file@entry=0x7fffffffd220)
    at /build/buildd/php5-5.5.9+dfsg/main/main.c:2506
#43 0x000000000079f9fe in do_cli (argc=3, argv=0xebe990)
    at /build/buildd/php5-5.5.9+dfsg/sapi/cli/php_cli.c:994
#44 0x0000000000461de0 in main (argc=3, argv=0xebe990)
    at /build/buildd/php5-5.5.9+dfsg/sapi/cli/php_cli.c:1378

I'm not sure what else could be the issue, any suggestions of where to look or to narrow down the issue ?
Comment by Brett Lawson [ 15/Dec/14 ]
Hey,

What do you mean by 'running without the server'?

Cheers, Brett
Comment by deefactorial [ 15/Dec/14 ]
Hey Brett,
I what I meant by running without the server is. I ran the phpunit tests without the couchbase server running.
The actual command would be
sudo service couchbase-server stop
./phpunit BucketTest.php
Hope that clarified this for you.




[PCBC-308] older docs need to have "/communities" and "/develop" references removed Created: 03/Nov/14  Updated: 24/Nov/14

Status: Open
Project: Couchbase PHP client library
Component/s: docs
Affects Version/s: 1.1.0, 1.2.2
Fix Version/s: .future
Security Level: Public

Type: Bug Priority: Major
Reporter: Matt Ingenthron Assignee: Todd Greenstein
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
Right now, references are a bit circular in that the archive PHP docs point to www.couchbase.com/develop, which points to the new developer portal, which then points to the new PHP docs, that then point to the archive PHP docs.

To see the circle, click on 1.2 under "Archive Downloads". Then see step 3.

 Comments   
Comment by Brett Lawson [ 10/Nov/14 ]
@tgreenstein Todd, would you be able to identify the necessary changes here to correct the loop? It's probably worth identifying similar loops in the other SDKs as well.




[PCBC-313] Investigate windows builds not updating appropriately. Created: 09/Dec/14  Updated: 15/Dec/14

Status: Open
Project: Couchbase PHP client library
Component/s: library
Affects Version/s: None
Fix Version/s: 2.0.3
Security Level: Public

Type: Task Priority: Major
Reporter: Brett Lawson Assignee: Brett Lawson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
It appears that some of the windows builds may not be updating their DLL files appropriately when CI builds them.




[PCBC-316] Create 1.x series wrapper for 2.x series to speed transitions. Created: 17/Dec/14  Updated: 17/Dec/14

Status: Open
Project: Couchbase PHP client library
Component/s: library
Affects Version/s: None
Fix Version/s: .future
Security Level: Public

Type: Task Priority: Major
Reporter: Brett Lawson Assignee: Brett Lawson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
Build a wrapper script that can be included to enable the use of the 1.x interface when the 2.x extension is installed. This script should wrap `getversion('couchbase')` to ensure that the interface needs to be emulated and then provide the needed method conversions. This should help developers transition their systems from 1.x to 2.x quicker, and without worrying about the complexity of converting an entire application for new components to take advantage of the newer interface.




[PCBC-24] deploying to download locations directly from CI Created: 12/Jan/12  Updated: 24/Apr/14

Status: Open
Project: Couchbase PHP client library
Component/s: None
Affects Version/s: None
Fix Version/s: .future
Security Level: Public

Type: Task Priority: Minor
Reporter: Matt Ingenthron Assignee: Brett Lawson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
The idea here is that non-releases should automatically upload deploy to one location, and releases should automatically deploy to a different location.




Generated at Thu Dec 18 19:40:02 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.