Description
From: http://www.couchbase.com/forums/thread/getting-sigabrt-libcouchbase
Please follow up with this thread upon resolution.
I was running through my program and suddenly caught SIGABRT while using libcouchbase.
This was what I was getting from GDB Debugging
I've wrapped your libcouchbase in order to have similar interface with JAVA.
347 RSLTCODE CMBClient::Set( const uint64_t cas, const char* key, const char* value, const time_t* expiry)
348 {
349 libcouchbase_error_t error = LIBCOUCHBASE_SUCCESS;
350 libcouchbase_error_t callback_error = LIBCOUCHBASE_SUCCESS;
351 error = libcouchbase_store ( m_instance , (void*)&callback_error, LIBCOUCHBASE_SET, key, strlen(key), value, strlen(value), 0, (libcouchbase_time_t)*expiry, cas);
352 if ( error != LIBCOUCHBASE_SUCCESS )
353
357
358 libcouchbase_wait (m_instance);
359
360 return CheckError(callback_error);
361 }
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff36a2700 (LWP 16100)]
0x00007ffff6e20445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff6e20445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6e23bab in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff76c4c0d in libcouchbase_ringbuffer_consumed (buffer=, nb=56) at src/ringbuffer.c:243
#3 0x00007ffff76c017b in do_send_data (c=) at src/event.c:264
#4 libcouchbase_server_event_handler (sock=, which=, arg=0x6ab660) at src/event.c:314
#5 0x00007ffff60b5f53 in event_base_loop () from /usr/lib/libevent-1.4.so.2
#6 0x0000000000418588 in CMBClient::Set (this=0x7fffffffe1e0, cas=0, key=0x7ffff36a1da0 "172.16.0.116:9999.PCCNT", value=0x7ffff36a1de0 "1", expiry=0x7ffff36a1d90) at CMBClient.cpp:358
#7 0x0000000000408354 in PCNetMgr::checkAndUpdateSSCnt (this=0x7fffffffe1a8) at PCNetMgr.cpp:59
#8 0x000000000040a0ed in PCBatchJob::run (this=) at PCBatchJob.cpp:11
#9 0x000000000043620a in doWork (pThreadInfo=) at ThreadPool.cpp:211
#10 0x00007ffff7bc4e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007ffff6edc4bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()