[ https://issues.apache.org/jira/browse/ZOOKEEPER-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated ZOOKEEPER-458: ------------------------------------ Status: Open (was: Patch Available) I spent some time debugging this. This is the stack trace from the core dump: {quote} #0 0x00002b101d67f6e3 in ?? () from /lib/libc.so.6 #1 0x00002b101d680e98 in ?? () from /lib/libc.so.6 #2 0x00002b101d681276 in free () from /lib/libc.so.6 #3 0x0000000000407b4e in __wrap_free (p=0xc03d80) at /homes/mahadev/zookeeper-trunk/src/c/tests/LibCMocks.cc:197 #4 0x0000000000441197 in free_buffer (b=0xbff8d0) at /homes/mahadev/zookeeper-trunk/src/c/src/zookeeper.c:763 #5 0x0000000000441aa5 in destroy_completion_entry (c=0xc02dd0) at /homes/mahadev/zookeeper-trunk/src/c/src/zookeeper.c:2048 #6 0x0000000000441dc2 in process_completions (zh=0xc02920) at /homes/mahadev/zookeeper-trunk/src/c/src/zookeeper.c:1727 #7 0x00000000004457a8 in zookeeper_process (zh=0xc02920, events=-1912149552) at /homes/mahadev/zookeeper-trunk/src/c/src/zookeeper.c:1974 #8 0x00000000004316dd in yield (zh=0xc02920, seconds=1) at /homes/mahadev/zookeeper-trunk/src/c/tests/TestClient.cc:107 #9 0x0000000000433406 in watchCtx::waitForConnected (this=0x7fff8e06f100, zh=0xc02920) at /homes/mahadev/zookeeper-trunk/src/c/tests/TestClient.cc:165 #10 0x000000000043448d in Zookeeper_simpleSystem::testConnectIndex1 (this=0xbfdaa0) at /homes/mahadev/zookeeper-trunk/src/c/tests/TestClient.cc:846 #11 0x0000000000431a02 in CppUnit::TestCaller<Zookeeper_simpleSystem>::runTest (this=0xbfdd00) at /usr/include/cppunit/TestCaller.h:166 #12 0x00000000004566fa in CppUnit::TestCaseMethodFunctor::operator() () #13 0x00000000004618e4 in CppUnit::DefaultProtector::protect () #14 0x000000000046315f in CppUnit::ProtectorChain::protect () #15 0x000000000045e1b2 in CppUnit::TestResult::protect () #16 0x00000000004564ba in CppUnit::TestCase::run () #17 0x0000000000463d03 in CppUnit::TestComposite::doRunChildTests () #18 0x0000000000463c26 in CppUnit::TestComposite::run () #19 0x0000000000463d03 in CppUnit::TestComposite::doRunChildTests () #20 0x0000000000463c26 in CppUnit::TestComposite::run () #21 0x000000000045da0a in CppUnit::TestResult::runTest () #22 0x000000000045ff62 in CppUnit::TestRunner::run () {quote} I tried debugging but could not find much time. Steven, can you take a look and see if you find something obvious? > 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 > > > 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.