Git Product home page Git Product logo

zht's People

Contributors

mierl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zht's Issues

C++ Client: Insert failing (return negative value) with isDir False

Using the C++ Client, I have the following problem: I get an error when I want to insert a package with the following parameter in my package:

package.set_isdir(false);

I just want to insert a file, so isdir should be false right?

I works when I use isdir(true)...

Thanks.

removing a nonexistent key cuases Segmentation fault (core dumped)

I think it should return some error code but instead my system crashed. In the test file "c_zhtclient_main.c ", you can try to replicate the issue by removing a nonexistent key like the following:

49 const char key2 = "nonexistent_key";
50 int rret = c_zht_remove2(key2);
51 fprintf(stderr, "c_zht_remove, return code: %d\n", rret);

and my term returned this:

c_zht_insert, return code: 0
c_zht_lookup, return code: 0
c_zht_lookup, return value: 3, zht
Segmentation fault (core dumped)

Segmentation fault with custom folders for Google protocol buffers

I installed the Google protocol buffers, the C and the C++ binding in custom folders. I then ran make in the src folder of ZHT and when I try to run ./zhtserver -z zht.conf -n neighbor.conf I get Segmentation Fault. I modified the neighbor.conf file to contain an ip and a port, as below:
10.149.0.36 50000
The zht.conf file is the default one. When I print the backtrace from gdb this is what I get:

(gdb) bt
#0 std::basic_string<char, std::char_traits, std::allocator >::basic_string (this=0x7fffffffdde0, __str=...)

at /root/rpmbuild/BUILD/gcc-4.4.6-obj/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:174

#1 0x00000000004175cd in iit::datasys::zht::dm::ConfHandler::get_zhtconf_parameter (paraname=...) at ConfHandler.cpp:101
#2 0x00000000004242f6 in Env::get_sccb_poll_interval () at Env.cpp:58
#3 0x000000000042a24f in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at HTWorker.cpp:63
#4 0x000000000042a273 in global constructors keyed to _ZN15WorkerThreadArgC2Ev() () at HTWorker.cpp:440
#5 0x000000000042c246 in __do_global_ctors_aux ()
#6 0x0000000000404f1b in _init ()
#7 0x00007ffff7cce950 in google::protobuf::FileDescriptorTables::kEmpty () from /home/asu240/lib/libprotobuf.so.7
#8 0x000000000042c1d5 in __libc_csu_init ()
#9 0x000000330a61ec70 in __libc_start_main () from /lib64/libc.so.6
#10 0x0000000000405b99 in _start ()

I followed all the steps mentioned in the README file.

NoVoHT depends on assumptions about internal structure of fpos_t

I attempted to build on Mac OS X, using both clang and gcc, and ran into the following error:

novoht.cpp:426:37: error: member reference base type 'fpos_t' (aka 'long long')
      is not a structure or union
                fprintf(dbfile, "%ld,", plist->pos.__pos);

It appears that NoVoHT assumes that it knows something about the internal structure of "fpos_t" that apparently does not hold on Mac OS X. Since fpos_t is supposed to be an opaque data structure and its internals are not supposed to be depended upon, it would be good if there was an alternate method of doing whatever this part of the code is trying to do.

license

very interesting project... it's not clear what license this is... can anyone help with that...

Buffer Sending, wrong length effectively transmitted.

Hey guys,

I used ZHT (CPP Client) with custom packages (see the peteratt/ida repo). And it seems that there is a end of string \0 that was unfortunately inserted in the middle of my package.

When I tried to lookup the package, I only received parts, missing some really important information. I don't know if the entire string was really stored in ZHT and where some part were lost.

I think the problem comes from the conversion from string to char *, where you sometimes lose some data because strlen doesn't get the whole string.

I found that conversion::
net_util.cpp:146,148

Maybe as well in the other function, I need to check that. I'm going to try editing (add the length directly in the prototype) that and give some feedbacks.

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.