[CCBC-135] lcb_server_purge_implicit_responses: Assertion `nr == sizeof(req)' failed Created: 04/Dec/12  Updated: 19/Jan/14  Resolved: 19/Jan/14

Status: Resolved
Project: Couchbase C client library libcouchbase
Component/s: library
Affects Version/s: 2.0.0
Fix Version/s: 2.2.0
Security Level: Public

Type: Bug Priority: Major
Reporter: Mark Nunberg Assignee: Mark Nunberg
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File core    

 Description   
Cannot reproduce, this is all the info I have

FAIL GetMulti - MgetOrdered [tests/phpt/GetMulti/MgetOrdered.phpt]

mnunberg@csure:/sources/lcb2.0-repo/php$ cat tests/phpt/GetMulti/*.out
PHP_COUCHBASE_OK
php: src/server.c:799: lcb_server_purge_implicit_responses: Assertion `nr == sizeof(req)' failed.

*Might* be related to CCBC-120

To reiterate again, I cannot reproduce this - I just happened to notice it

 Comments   
Comment by Mark Nunberg [ 05/Dec/12 ]
#0 0x00007f4d29d00475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007f4d29d036f0 in *__GI_abort () at abort.c:92
#2 0x00007f4d29cf9621 in *__GI___assert_fail (assertion=0x7f4d28a88fd3 "nr == sizeof(req)",
    file=<optimized out>, line=799, function=0x7f4d28a893c0 "lcb_server_purge_implicit_responses")
    at assert.c:81
#3 0x00007f4d28a7ab53 in lcb_server_purge_implicit_responses (c=0x2c35ff0, seqno=34,
    end=1354691478793889000) at src/server.c:799
#4 0x00007f4d28a79a56 in lcb_server_destroy (server=0x2c35ff0) at src/server.c:394
#5 0x00007f4d28a74ba5 in lcb_destroy (instance=0x2c83ed0) at src/instance.c:347
#6 0x00007f4d28c9b836 in php_couchbase_res_dtor (rsrc=<optimized out>)
    at /sources/lcb2.0-repo/php/couchbase.c:43
#7 0x00000000006ae89e in list_entry_destructor (ptr=0x7f4d27d177d8)
    at /tmp/buildd/php5-5.4.4/Zend/zend_list.c:183
#8 0x00000000006ac6bd in zend_hash_del_key_or_index (ht=0xdb8750, arKey=0x0, nKeyLength=0, h=56,
    flag=753497888) at /tmp/buildd/php5-5.4.4/Zend/zend_hash.c:531
#9 0x00000000006ae9b1 in _zend_list_delete (id=14243) at /tmp/buildd/php5-5.4.4/Zend/zend_list.c:57
#10 0x000000000068fa5a in _zval_ptr_dtor (zval_ptr=0x7f4d27d175d8)
    at /tmp/buildd/php5-5.4.4/Zend/zend_variables.h:35
#11 0x00000000006bf947 in zend_object_std_dtor (object=0x7f4d27c9c978)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects.c:54
#12 0x00000000006bf979 in zend_objects_free_object_storage (object=0x7f4d27c9c978)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects.c:137
#13 0x00000000006c5693 in zend_objects_store_del_ref_by_handle_ex (handle=753383344, handlers=0x37a3)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects_API.c:220
#14 0x00000000006c56b3 in zend_objects_store_del_ref (zobject=0x7f4d27ca0b60)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects_API.c:172
#15 0x000000000068fa5a in _zval_ptr_dtor (zval_ptr=0x7f4d27cfc130)
    at /tmp/buildd/php5-5.4.4/Zend/zend_variables.h:35
#16 0x00000000006ac7b8 in zend_hash_destroy (ht=0x7f4d27cfd508)
    at /tmp/buildd/php5-5.4.4/Zend/zend_hash.c:560
#17 0x00000000006bf8ec in zend_object_std_dtor (object=0x7f4d27cb9900)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects.c:44
#18 0x00000000006bf979 in zend_objects_free_object_storage (object=0x7f4d27cb9900)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects.c:137
#19 0x00000000006c5693 in zend_objects_store_del_ref_by_handle_ex (handle=753383728, handlers=0x37a3)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects_API.c:220
#20 0x00000000006c56b3 in zend_objects_store_del_ref (zobject=0x7f4d27cb9100)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects_API.c:172
#21 0x000000000068fa5a in _zval_ptr_dtor (zval_ptr=0x7f4d27cb9a78)
    at /tmp/buildd/php5-5.4.4/Zend/zend_variables.h:35
#22 0x00000000006ac7b8 in zend_hash_destroy (ht=0x7f4d27cb9c58)
    at /tmp/buildd/php5-5.4.4/Zend/zend_hash.c:560
---Type <return> to continue, or q <return> to quit---
#23 0x000000000069d9f7 in _zval_dtor_func (zvalue=0x7f4d27cb9d38)
    at /tmp/buildd/php5-5.4.4/Zend/zend_variables.c:43
#24 0x000000000068fa5a in _zval_ptr_dtor (zval_ptr=0x7f4d27e325b0)
    at /tmp/buildd/php5-5.4.4/Zend/zend_variables.h:35
#25 0x00000000006bf947 in zend_object_std_dtor (object=0x7f4d27cf8fa8)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects.c:54
#26 0x00000000006bf979 in zend_objects_free_object_storage (object=0x7f4d27cf8fa8)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects.c:137
#27 0x00000000006c51c7 in zend_objects_store_free_object_storage (objects=0xdb8880)
    at /tmp/buildd/php5-5.4.4/Zend/zend_objects_API.c:92
#28 0x000000000068ffbc in shutdown_executor () at /tmp/buildd/php5-5.4.4/Zend/zend_execute_API.c:297
#29 0x000000000069e9e5 in zend_deactivate () at /tmp/buildd/php5-5.4.4/Zend/zend.c:941
#30 0x000000000063e36a in php_request_shutdown (dummy=0x37a3) at /tmp/buildd/php5-5.4.4/main/main.c:1781
#31 0x0000000000748374 in do_cli (argc=0, argv=0x7fff0f1f03e5)
    at /tmp/buildd/php5-5.4.4/sapi/cli/php_cli.c:1174
#32 0x00000000004310ca in main (argc=32767, argv=0x2a5e210)
    at /tmp/buildd/php5-5.4.4/sapi/cli/php_cli.c:1361
(gdb)
Comment by Mark Nunberg [ 05/Dec/12 ]
Core Dump -- self-compiled versions of lcb and php-ext
Comment by Matt Ingenthron [ 14/Dec/12 ]
Talking with Mark, he can't regularly repro this, but does still see it randomly
Comment by Patrick Varley [ 19/Jan/14 ]
Could this be the same error:
http://stackoverflow.com/questions/21161598/how-to-solve-lcb-server-purge-implicit-responses-assertion-nr-sizeofreq/21217217#21217217
Comment by Mark Nunberg [ 19/Jan/14 ]
It is the same error, I've responded on the SO thread. In short, they're using an older libcouchbase.
Comment by Mark Nunberg [ 19/Jan/14 ]
I've closed this bug and believe it to be fixed in 2.2.0
Generated at Sat Oct 25 21:18:39 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.