You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Jim Brower <ji...@gmail.com> on 2016/10/26 21:29:10 UTC

Unit tests failing for modified C client

Hi, I'm trying to add ssl support to the Zookeeper C client. The tests that
I initiate with
"ant test-core-cppunit" are failing. When I run the tests on the commit
before my changes,
the tests succeed. I'm wondering if anyone can demystify the following
errors for me.

In particular, I don't understand what './testfile' is supposed to be, as I
can't find reference to it
anywhere in the repo. I'm also not sure if that's what is leading to the
segv.

I'd greatly appreciate any help, as I'm a stuck on this.


     [exec] make[1]: Leaving directory '/home/jrbrower/zookeeper/
zookeeper/build/test/test-cppunit'
     [exec] make  check-TESTS
     [exec] make[1]: Entering directory '/home/jrbrower/zookeeper/
zookeeper/build/test/test-cppunit'
     [exec] File './testfile' failed to open.
     [exec] /bin/bash: line 5: 31811 Segmentation fault
 ZKROOT=/home/jrbrower/zookeeper/zookeeper/src/c/../..
CLASSPATH=$CLASSPATH:$CLOVER_HOME/lib/clover.jar ${dir}$tst
     [exec]  ZooKeeper server startedRunning
     [exec] Zookeeper_init::testBasicFAIL: zktest-st
     [exec]  ZooKeeper server startedRunning
     [exec] Zookeeper_init::testBasicFAIL: zktest-mt
     [exec] ==========================================
     [exec] 2 of 2 tests failed
     [exec] Please report to user@zookeeper.apache.org
     [exec] ==========================================
     [exec] Makefile:1734: recipe for target 'check-TESTS' failed
     [exec] make[1]: Leaving directory '/home/jrbrower/zookeeper/
zookeeper/build/test/test-cppunit'
     [exec] Makefile:1990: recipe for target 'check-am' failed
     [exec] File './testfile' failed to open.
     [exec] /bin/bash: line 5: 31859 Segmentation fault
 ZKROOT=/home/jrbrower/zookeeper/zookeeper/src/c/../..
CLASSPATH=$CLASSPATH:$CLOVER_HOME/lib/clover.jar ${dir}$tst
     [exec] make[1]: *** [check-TESTS] Error 1
     [exec] make: *** [check-am] Error 2

Re: Unit tests failing for modified C client

Posted by Michael Han <ha...@cloudera.com>.
It's not obvious to me what went wrong without seeing what's actually
changed. Jim, maybe you could send a git PR to
https://issues.apache.org/jira/browse/ZOOKEEPER-2122 if your patch is in
reasonable good shape so others can help?

On Wed, Oct 26, 2016 at 2:29 PM, Jim Brower <ji...@gmail.com> wrote:

> Hi, I'm trying to add ssl support to the Zookeeper C client. The tests that
> I initiate with
> "ant test-core-cppunit" are failing. When I run the tests on the commit
> before my changes,
> the tests succeed. I'm wondering if anyone can demystify the following
> errors for me.
>
> In particular, I don't understand what './testfile' is supposed to be, as I
> can't find reference to it
> anywhere in the repo. I'm also not sure if that's what is leading to the
> segv.
>
> I'd greatly appreciate any help, as I'm a stuck on this.
>
>
>      [exec] make[1]: Leaving directory '/home/jrbrower/zookeeper/
> zookeeper/build/test/test-cppunit'
>      [exec] make  check-TESTS
>      [exec] make[1]: Entering directory '/home/jrbrower/zookeeper/
> zookeeper/build/test/test-cppunit'
>      [exec] File './testfile' failed to open.
>      [exec] /bin/bash: line 5: 31811 Segmentation fault
>  ZKROOT=/home/jrbrower/zookeeper/zookeeper/src/c/../..
> CLASSPATH=$CLASSPATH:$CLOVER_HOME/lib/clover.jar ${dir}$tst
>      [exec]  ZooKeeper server startedRunning
>      [exec] Zookeeper_init::testBasicFAIL: zktest-st
>      [exec]  ZooKeeper server startedRunning
>      [exec] Zookeeper_init::testBasicFAIL: zktest-mt
>      [exec] ==========================================
>      [exec] 2 of 2 tests failed
>      [exec] Please report to user@zookeeper.apache.org
>      [exec] ==========================================
>      [exec] Makefile:1734: recipe for target 'check-TESTS' failed
>      [exec] make[1]: Leaving directory '/home/jrbrower/zookeeper/
> zookeeper/build/test/test-cppunit'
>      [exec] Makefile:1990: recipe for target 'check-am' failed
>      [exec] File './testfile' failed to open.
>      [exec] /bin/bash: line 5: 31859 Segmentation fault
>  ZKROOT=/home/jrbrower/zookeeper/zookeeper/src/c/../..
> CLASSPATH=$CLASSPATH:$CLOVER_HOME/lib/clover.jar ${dir}$tst
>      [exec] make[1]: *** [check-TESTS] Error 1
>      [exec] make: *** [check-am] Error 2
>



-- 
Cheers
Michael.