Giter Site home page Giter Site logo

Comments (12)

dirvine avatar dirvine commented on August 16, 2024

We have rewritten much of the kademlia codebase now. I am not sure if kaddemo has been done yet. I will ask the guys on Monday. It looks liek the problem you are seeing should not happen and is not your fault (i.e. you are doing the right thing). There is a couple of base classes with derived classes for additional functionality such as a secured kadmelia network. In that case you would need to implement a 'securifier' however a default null securifier should be in place I believe. As I said I will check that out on Monday.

from maidsafe-common.

deandingcn avatar deandingcn commented on August 16, 2024

Thanks guys.I have tried maidsafe-dht v.28 with maidsafe-common v6,and after compiled,I found there's no kademliademo such this file in the folder(Only TESTkademlia and TESTtransport).
So I used TESTkademlia instead, and after running a little while,it reported a segment error.:(
By the way,what does it exactly mean by " Global test environment set-up" which was displayed on the screen after I runned maidsafe-dht?

from maidsafe-common.

dirvine avatar dirvine commented on August 16, 2024

That's part of the google test setup. It allows you to set up a complex environment (or one that takes a while) and reuse it for many tests. We use this a lot and especially in kad code as setting up a network on a machine is a pain to say the least. This script does that for us. If you look at the test itself you will see the environment being set up.
Do you have any info on the segfault at all?

from maidsafe-common.

deandingcn avatar deandingcn commented on August 16, 2024

when everytime I runned testkademlia here,segfault will occur.
[----------] 12 tests from DataStoreTest
[ RUN ] DataStoreTest.BEH_KAD_StoreUnderEmptyKey
segment error

So "Global test environment set-up" is nothing to do with Kademlia network environment,right?

from maidsafe-common.

dirvine avatar dirvine commented on August 16, 2024

Thanks for this we will try and recreate this. If post can you post the compiler you are using.

the setup phase does set up a kademlia network in some tests. I need to look at the code but am out of the office just now.

from maidsafe-common.

Fraser999 avatar Fraser999 commented on August 16, 2024

Hi there,

I've run this test a few times and have been unable to reproduce the segfault. Could you let us know the platform and compiler you're using please?

Thanks,

Fraser.

from maidsafe-common.

deandingcn avatar deandingcn commented on August 16, 2024

Hi guys,
The compiling and testing environment is as below
/*********************************************************
GCC 4.4.5;
G++ 4.4.5;
Kernal: 2.6.32-5-686(Debian 2.6.32-34squeezel)
*********************************************************/
And again,Could anybody tell me how to use KademliaDemo?
Thanks,
-Deane.

from maidsafe-common.

Fraser999 avatar Fraser999 commented on August 16, 2024

Hi Deane,

I'm afraid we can't reproduce your error here. We have a few Linux boxes that have run the test successfully, but we're all using GCC 4.5 or 4.6. However, I'm not sure that would explain the segfault you're seeing.

Can you possibly re-run the test using GDB and let us see the output of "where" once it crashes?

As for KademliaDemo, we haven't got it working yet. As David mentioned we underwent a fairly significant code rewrite recently, and KadDemo hasn't made it to the top of the list yet. We have a couple of devs working on related tasks here just now, so it shouldn't be too long hopefully until we have KadDemo back up and running. If you like I can let you know when we're there?

Thanks,

Fraser.

from maidsafe-common.

deandingcn avatar deandingcn commented on August 16, 2024

Hi Fraser,
Good morning,
I runned TESTkademlia_d using GDB again,
Below is the GDB information,I only took the faliure section(actually when it reported failure,I stopped the running)
/_GDB Test_*******
[ RUN ] DataStoreTest.BEH_KAD_StoreUnderEmptyKey
unknown file: Failure
C++ exception with description "Integer: missing Max argument" thrown in the test body.
[ FAILED ] DataStoreTest.BEH_KAD_StoreUnderEmptyKey (3362 ms)

**********************************************************************************************************/
I wish it could make some help.

-Deane

from maidsafe-common.

deandingcn avatar deandingcn commented on August 16, 2024

Sorry,the last exception did not exactly cause segfault, I made a mistake.
Below is the right place.
/********************************************************************************************************
[Thread 0xb32ffb70 (LWP 2914) exited]
[Thread 0xb2afeb70 (LWP 2915) exited]
[Thread 0xb22fdb70 (LWP 2917) exited]
[Thread 0xb1afcb70 (LWP 2918) exited]
[Thread 0xb12fbb70 (LWP 2919) exited]
[ OK ] ServicesTest.BEH_KAD_MultipleThreads (9375 ms)
[ RUN ] ServicesTest.BEH_KAD_SignalConnection
AAAAAAAaa
[New Thread 0xb12fbb70 (LWP 2920)]
[Thread 0xb12fbb70 (LWP 2920) exited]
[New Thread 0xb12fbb70 (LWP 2921)]
E0629 10:17:20.634300 2921 crypto.cc:212] Crypto::AsymCheckSig - BER decode error
W0629 10:17:20.634367 2921 service.cc:485] Failed to validate request_signature
[Thread 0xb12fbb70 (LWP 2921) exited]

Program received signal SIGSEGV, Segmentation fault.
0x08a3fdf1 in ~service_registry (this=0xb3307f88,
__in_chrg=)
at /home/dingyao/boost_1_46_1/boost/asio/detail/impl/service_registry.ipp:42
42 service->shutdown_service();
(gdb)
**************************************************************************************************/
Sorry for the fuss,:)
Deane.

from maidsafe-common.

deandingcn avatar deandingcn commented on August 16, 2024

Hi,Guys,
I got another question.
Say,could maidsafe-dht still work if nodes are behind NAT and the NAT gateway device happens not to support UPnp or NAT-PMP?

from maidsafe-common.

dirvine avatar dirvine commented on August 16, 2024

No prob

we also use hole punching for udp packets to traverse a router. Yet unimplemented fully as is the ability for nodes to listen also on tcp 80 and 443 to allow relay capability. This is all work in progress, but to answer the question yes it will do, but not quite yet.

Hope that helps
David

from maidsafe-common.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.