Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Getting SIGABRT from libcouchbase

4 replies [Last post]
  • Login or register to post comments
Tue, 06/12/2012 - 05:25
sjpark9
Offline
Joined: 03/01/2012
Groups: None

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 {
354 fprintf(stderr, "Set Failed\n");
355 return CheckError(error);
356 }
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 ?? ()

Top
  • Login or register to post comments
Wed, 06/13/2012 - 10:49
mikew
Offline
Joined: 03/14/2011
Groups:

I have filed an issue for this problem here:

http://www.couchbase.com/issues/browse/CCBC-74

A libcouchbase developer will follow up with you after taking a look at this issue.

Top
  • Login or register to post comments
Wed, 06/13/2012 - 11:05
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

Could you tell what version of libcouchbase are you using? And minimal example would be also good to reproduce the error, if it is stable. Thanks

__________________

Find me on FreeNode IRC in #libcouchbase channel

Top
  • Login or register to post comments
Wed, 06/13/2012 - 19:22
sjpark9
Offline
Joined: 03/01/2012
Groups: None

I believe I am using the latest release of libcouchbase downloaded which is 1.0.4

hmm

for the minimal example part, the code is not that short ..

I was wondering if this library is thread safe or not?

Top
  • Login or register to post comments
Wed, 06/13/2012 - 23:13
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

the library is thread safe while you don't share instance between threads

__________________

Find me on FreeNode IRC in #libcouchbase channel

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker