Libcouchbase 2.2.0 coredown with signal 6

Program terminated with signal 6, Aborted.
#0 0x00000036b66328e5 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install boost-filesystem-1.41.0-17.el6_4.x86_64 boost-system-1.41.0-17.el6_4.x86_64 boost-thread-1.41.0-17.el6_4.x86_64 bzip2-libs-1.0.5-7.el6_0.x86_64 glibc-2.12-1.107.el6_4.4.x86_64 hiredis-0.10.1-3.el6.x86_64 ice-libs-3.5.1-1.el6.x86_64 json-c-0.10-2.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-10.el6_4.6.x86_64 libcom_err-1.41.12-14.el6_4.2.x86_64 libevent-1.4.13-4.el6.x86_64 libgcc-4.4.6-4.el6.x86_64 librabbitmq-0.3.0-1.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 libstdc+±4.4.6-4.el6.x86_64 mysql-libs-5.1.69-1.el6_4.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 openssl-1.0.0-27.el6_4.2.x86_64 zlib-1.2.3-29.el6.x86_64 zookeeper-lib-3.4.4-1.x86_64
(gdb) bt full
#0 0x00000036b66328e5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00000036b66340c5 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x00000036b662ba0e in __assert_fail_base () from /lib64/libc.so.6
No symbol table info available.
#3 0x00000036b662bad0 in __assert_fail () from /lib64/libc.so.6
No symbol table info available.
#4 0x000000375f0116bb in lcb_server_purge_implicit_responses (c=0x7f2684084480, seqno=4262395904, end=1385883466446081000, all=0) at src/server.c:636
req = {request = {magic = 128 ‘\200’, opcode = 0 ‘\000’, keylen = 3840, extlen = 0 ‘\000’, datatype = 0 ‘\000’, vbucket = 23297, bodylen = 251658240, opaque = 252155471, cas = 0},
bytes = “\200\000\000\017\000\000\001[\000\000\000\017O\226\a\017\000\000\000\000\000\000\000”}
cmdlog = 0x19d43a8
cookies = 0x19d43d0
nr =
PRETTY_FUNCTION = “lcb_server_purge_implicit_responses”
#5 0x000000375f01301e in lcb_proto_parse_single (c=0x7f2684084480, stop=1385883466446081000) at src/server_parse.c:200
was_connected = 1
req = {request = {magic = 128 ‘\200’, opcode = 0 ‘\000’, keylen = 3840, extlen = 0 ‘\000’, datatype = 0 ‘\000’, vbucket = 23297, bodylen = 251658240, opaque = 252155471, cas = 0},
bytes = “\200\000\000\017\000\000\001[\000\000\000\017O\226\a\017\000\000\000\000\000\000\000”}
header = {response = {magic = 129 ‘\201’, opcode = 0 ‘\000’, keylen = 0, extlen = 0 ‘\000’, datatype = 0 ‘\000’, status = 1024, bodylen = 285212672, opaque = 4262395904, cas = 0},
bytes = “\201\000\000\000\000\000\000\004\000\000\000\021\000\000\017\376\000\000\000\000\000\000\000”}
nr =
packet = 0x7f2684101d80 "\201"
packetsize = 41
ct = {start = 1385883453946457000, cookie = 0x0, real_start = 0, vbucket = 347, replica = 0 ‘\000’, flags = 0 ‘\000’}
#6 0x000000375f012b8f in do_read_data (sock=, which=, arg=0x7f2684084480) at src/server_io.c:45
status = LCB_SOCKRW_IO_ERROR
processed = 0
rv =
stop = 1385883466446081000
#7 lcb_server_v0_event_handler (sock=, which=, arg=0x7f2684084480) at src/server_io.c:107
c = 0x7f2684084480
conn = 0x7f2684084568
#8 0x00007f269c7d1b44 in event_base_loop () from /usr/lib64/libevent-1.4.so.2
No symbol table info available.
#9 0x000000375f01569d in lcb_wait (instance=0x19d3b80) at src/wait.c:77
ii =
#10 0x00000000004e54e1 in ASyncCouchbase::wait (this=0x1963a10) at /home/push/source/jim/jpush-server/server/commlib/src/framework/ASyncCouchbase.cpp:280
error = LCB_SUCCESS
#11 0x0000000000487406 in CheckUserMsgCountThread::process (this=0x1963930, queue=std::list = {…}) at /home/push/source/jim/jpush-server/server/msgcenter/msgdb/CheckUserMsgCountThread.cpp:83
FUNCTION = "process"
citer = 29508224
#12 0x0000000000488798 in WorkQueueThread::run (this=0x1963930) at /home/push/source/jim/jpush-server/server/msgcenter/…/commlib/src/include/WorkQueueThread.h:77
i = 0
#13 0x00007f275047bf11 in startHook () from /usr/lib64/libIceUtil.so.35
No symbol table info available.
#14 0x00000036b6a07851 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#15 0x00000036b66e894d in clone () from /lib64/libc.so.6
No symbol table info available.
(gdb)

libcouchbase version?

Hi avsej,
The version of the libcouchbase is 2.2.0. Written in subject of the question.
Thx!

It would seem that you are getting back an EINVAL response from the server. Are you ensuring you are guarding your libcouchbase instance by a mutex for all function calls?

The library is not thread safe. It does not create any global structures and such does not care about which thread it is being used in, but it is also not safe to access concurrently from multiple threads.