Hi All,
I compiled cxxtools on Solaris and everything I need works fine.
Anyway: One of the unittests fails with coredump:
>./alltests
Assertion failed: _fd == -1, file tcpsocketimpl.cpp, line 218
binrpc::PrepareConnect: Abort (core dumped)
gdb says:
#13 0x0819ac4b in
cxxtools::RemoteProcedureBase<int>::~RemoteProcedureBase
(this=0xfeffe314, __in_chrg=<optimized out>)
at ../include/cxxtools/remoteprocedure.h:84
#14 0x08197c75 in BinRpcTest::PrepareConnect (this=0x83b5ba0
<register_JoinTest>) at binrpc-test.cpp:711
#15 0x081ab7ed in cxxtools::Composer<bool>::fixup (this=0x83c4268,
si=...) at ../include/cxxtools/composer.h:64
#16 0x0817e8bc in cxxtools::Callable<void, cxxtools::Void,
cxxtools::Void, cxxtools::Void, cxxtools::Void, cxxtools::Void,
cxxtools::Void, cxxtools::Void, cxxtools::Void, cxxtools::Void,
cxxtools::Void>::call (this=0x83c4268) at
../include/cxxtools/callable.tpp:314
#17 0x081ab801 in cxxtools::Composer<bool>::fixup (this=0x83c4268,
si=...) at ../include/cxxtools/composer.h:64
#18 0xfe662f9b in ?? ()
#19 0x
All these unitests fail at the same point: binrpc-test.cpp (also
xmlrpc-test.cpp, jsonrpc-test.cpp and jsonrpchttp-test.cpp).
The unittest code:
void PrepareConnect()
.......
// test failing connect when calling function
716 {
717 cxxtools::bin::RpcClient client(_loop);
718 cxxtools::RemoteProcedure<bool, bool, bool>
boolean(client, "boolean");
719 CXXTOOLS_UNIT_ASSERT_NOTHROW(client.prepareConnect("", _port + 1));
720 log_info("AF3"); // inserted to detect where the
error is
721 boolean.begin(true, true);
722 log_info("AF4");
723 // this one produces a core dump on Solaris
724 CXXTOOLS_UNIT_ASSERT_THROW(boolean.end(2000),
cxxtools::IOError);
725 log_info("AF5");
726 }
Any thoughts?
@Tommi: If you wish to connect to the Solaris Machine, just call me. It
is accessible via internet.
Regards,
Andreas
------------------------------------------------------------------------------
Slashdot TV. Videos for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general