[CCBC-153] core dump whenever CouchBase connection attempt fails Created: 21/Dec/12  Updated: 06/Feb/13  Resolved: 10/Jan/13

Status: Closed
Project: Couchbase C client library libcouchbase
Component/s: library
Affects Version/s: 2.0.1
Fix Version/s: 2.0.3
Security Level: Public

Type: Bug Priority: Blocker
Reporter: James Mauss Assignee: Sergey Avseyev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency

 Description   
We are seeing a core dump whenever CouchBase connection attempt fails for the first time and we try to reconnect.
This is a case when the client comes up before the Couchbase server.



 Comments   
Comment by Sergey Avseyev [ 02/Jan/13 ]
http://review.couchbase.org/23663

I've fixed one usage of addrinfo struct, is it possible to get minimal script to reproduce the issue, or maybe you can grab the patch, apply and verify it?
Comment by Sergey Avseyev [ 09/Jan/13 ]
Ok, I've found the issue, and they are right, rebuild instance will of course fix the issue. So there is workaround. I'm working on proper solution.
Comment by Sergey Avseyev [ 09/Jan/13 ]
There is some state which isn't reset on the second connection attempt: like instance->backup_idx and instance->configuration_callback_last. I'm working on the fix now
Comment by Sergey Avseyev [ 09/Jan/13 ]
The fix http://review.couchbase.org/23809
Comment by Sergey Avseyev [ 10/Jan/13 ]
Marking it as resolved and reassigning to James for feedback
Generated at Sun Sep 21 17:20:05 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.