Re: The C Client cause core dump in some situation

2009-12-14 Thread Qian Ye
Yes, I use valgrind, i will try. On Tue, Dec 15, 2009 at 1:02 PM, Patrick Hunt wrote: > Did you try using valgrind? That might help reproduce. > > > Qian Ye wrote: > >> Hi Mahadev: >> >> I have created a jira for this issue >> https://issues.apache.org/jira/browse/ZOOKEEPER-624. >> And so far, I

Re: The C Client cause core dump in some situation

2009-12-14 Thread Patrick Hunt
Did you try using valgrind? That might help reproduce. Qian Ye wrote: Hi Mahadev: I have created a jira for this issue https://issues.apache.org/jira/browse/ZOOKEEPER-624. And so far, I haven't found the way to reproduce the segment fault. I tried about 10 times the same operations and only pro

Re: The C Client cause core dump in some situation

2009-12-14 Thread Qian Ye
Hi Mahadev: I have created a jira for this issue https://issues.apache.org/jira/browse/ZOOKEEPER-624. And so far, I haven't found the way to reproduce the segment fault. I tried about 10 times the same operations and only produced the core dump 1 time. I would attach the way to the jira if I can f

Re: The C Client cause core dump in some situation

2009-12-14 Thread Mahadev Konar
Hi Qian, The code that you mention still exists in the trunk and does not check for the len before calling memcpy. Please open a jira on this. The interesting thing though is that the len is -1. Do you have any test case or a test scenario where it can be reproduced. It would be interesting to s

The C Client cause core dump in some situation

2009-12-14 Thread Qian Ye
Hi guys: I encountered a problem today that the Zookeeper C Client (version 3.2.0) core dump when reconnected and did some operations on the zookeeper server which just restarted. The gdb infomation is like: (gdb) bt #0 0x00302af71900 in memcpy () from /lib64/tls/libc.so.6 #1 0x0047