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

Calling lcb_destroy() from the error-handler

1 reply [Last post]
  • Login or register to post comments
Mon, 01/21/2013 - 14:12
Emiel Bruijntjes
Offline
Joined: 01/21/2013
Groups: None

Hi,

When the error handler is called because a couchbase server is unreachable, our application calls lcb_destroy() to clean up resources. However, this seems to trigger a segmentation fault. Is this a known issue or are we doing something wrong?

I had expected that the C client does not rely on the lcb_t instance to exist or to even point to allocated memory after any of the callbacks is called, because the callbacks may do anything - like calling lcb_destroy or freeing memory.

Regards,

Emiel Bruijntjes

Top
  • Login or register to post comments
Mon, 01/28/2013 - 13:52
trond
trond's picture
Offline
Joined: 03/15/2010
Groups: None

You can't destroy the lcb_t from any of the callbacks.

Trond

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