[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788538#action_12788538
 ] 

Mahadev konar commented on ZOOKEEPER-458:
-----------------------------------------

I tried running the new patch on the hudson machine. I get a core dump but this 
time there is no trace of zookeeper internal calls. This looks very fishy! 

{quote}
#0  0x00002ab7e7ead225 in free () from /lib/libc.so.6
#1  0x00000000004053fb in __gnu_cxx::new_allocator<std::string>::deallocate 
(this=0x7fffc3845648, __p=0x3e700000000) at 
/usr/include/c++/4.3/ext/new_allocator.h:98
#2  0x0000000000405855 in std::_Deque_base<std::string, 
std::allocator<std::string> >::_M_deallocate_node (this=0x7fffc3845648, 
__p=0x3e700000000) at /usr/include/c++/4.3/bits/stl_deque.h:454
#3  0x0000000000405886 in std::_Deque_base<std::string, 
std::allocator<std::string> >::_M_destroy_nodes (this=0x7fffc3845648, 
__nstart=0x13d3368, __nfinish=0x13d3370) at 
/usr/include/c++/4.3/bits/stl_deque.h:557
#4  0x000000000040592b in ~_Deque_base (this=0x7fffc3845648) at 
/usr/include/c++/4.3/bits/stl_deque.h:480
#5  0x00000000004059a8 in ~deque (this=0x7fffc3845648) at 
/usr/include/c++/4.3/bits/stl_deque.h:776
#6  0x00000000004059fa in ~Message (this=0x7fffc3845640) at 
/usr/include/cppunit/Message.h:39
#7  0x00000000004351bc in Zookeeper_simpleSystem::testConnectIndex1 
(this=0x13cede0) at /homes/mahadev/zookeeper-trunk/src/c/tests/TestClient.cc:846
#8  0x0000000000431cc6 in CppUnit::TestCaller<Zookeeper_simpleSystem>::runTest 
(this=0x13cf040) at /usr/include/cppunit/TestCaller.h:166
#9  0x000000000045bb4a in CppUnit::TestCaseMethodFunctor::operator() ()
#10 0x0000000000466d34 in CppUnit::DefaultProtector::protect ()
#11 0x00000000004685af in CppUnit::ProtectorChain::protect ()
#12 0x0000000000463602 in CppUnit::TestResult::protect ()
#13 0x000000000045b90a in CppUnit::TestCase::run ()
#14 0x0000000000469153 in CppUnit::TestComposite::doRunChildTests ()
#15 0x0000000000469076 in CppUnit::TestComposite::run ()
#16 0x0000000000469153 in CppUnit::TestComposite::doRunChildTests ()
#17 0x0000000000469076 in CppUnit::TestComposite::run ()
#18 0x0000000000462e5a in CppUnit::TestResult::runTest ()
#19 0x00000000004653b2 in CppUnit::TestRunner::run ()
#20 0x00000000004047ea in main (argc=1, argv=0x7fffc38462d8) at 
/homes/mahadev/zookeeper-trunk/src/c/tests/TestDriver.cc:152

{quote}


> connect_index in zookeeper handle might get out of bound.
> ---------------------------------------------------------
>
>                 Key: ZOOKEEPER-458
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-458
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>            Reporter: Mahadev konar
>            Assignee: Steven Cheng
>             Fix For: 3.3.0
>
>         Attachments: ZOOKEEPER-458.patch, ZOOKEEPER-458.patch, 
> ZOOKEEPER-458.patch, ZOOKEEPER-458.patch, ZOOKEEPER-458.patch
>
>
> connect_index in zookeeper handle might get out of bound. the zokoeeper_init 
> method checks for index == count and sets it to zero. If the index becomes 
> greater than count, then it will go out of bounds.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to