Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcouchbase_make_doc_request coredumps #3

Open
czhan opened this issue Feb 25, 2012 · 2 comments
Open

libcouchbase_make_doc_request coredumps #3

czhan opened this issue Feb 25, 2012 · 2 comments

Comments

@czhan
Copy link

czhan commented Feb 25, 2012

I just pulled the lastest from the source(Feb. 24, 2012)
It looks like the lastest code make the libcouchbase_make_doc_request segv.

This was OK for my previous pull about two week ago.
#0 0x00007ffff7635a75 in raise () from /lib/libc.so.6
#1 0x00007ffff76395c0 in abort () from /lib/libc.so.6
#2 0x00007ffff766f4fb in ?? () from /lib/libc.so.6
#3 0x00007ffff76795b6 in ?? () from /lib/libc.so.6
#4 0x00007ffff7680312 in realloc () from /lib/libc.so.6
#5 0x00007ffff7995821 in min_heap_reserve (ev=0x605798, tv=0x605880, tv_is_absolute=) at minheap-internal.h:125
#6 event_add_internal (ev=0x605798, tv=0x605880, tv_is_absolute=) at event.c:2013
#7 0x00007ffff799591a in event_add (ev=0x605798, tv=0x605880) at event.c:1926
#8 0x00007ffff799fea3 in be_socket_enable (bufev=0x605700, event=) at bufferevent_sock.c:552
#9 0x00007ffff799edce in bufferevent_enable (bufev=0x605700, event=4) at bufferevent.c:422
#10 0x00007ffff79aef38 in evhttp_connection_connect (evcon=0x608380) at http.c:2196
#11 0x00007ffff79b021a in evhttp_make_request (evcon=0x608380, req=0x605a70, type=, uri=) at http.c:2251
#12 0x00007ffff7bd86a2 in libcouchbase_make_doc_request () from /home/varmour/varmour/common/obj/tlib/lib/libcouchbase.so.1
#13 0x0000000000400d26 in main (argc=1, argv=0x7fffffffe668) at couchview-mine.c:126

@czhan
Copy link
Author

czhan commented Feb 28, 2012

I use a c program based on the libevent2 only, verified that the memory issues was caused by the libcouchbase. It has no problem to talked to the couchbase server correctly either chunked or not. Another suggestion for the api is that normally, for the libevent2, the error callback need to stop the event loop. But in the libcouch base, this is not possible because the io definition is hidden as internal. It it better for the libcouchbase to stay same as libevent2, but hide all the smart vbucket logic internally

@avsej
Copy link
Member

avsej commented Feb 28, 2012

Hi @czhan this stuff is in progress now. But thanks for report, I'll update the ticket when it will be finished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants