mierl / zht Goto Github PK
View Code? Open in Web Editor NEWZHT is back and updated, enjoy!
Home Page: http://datasys.cs.iit.edu/projects/ZHT/index.html
License: Other
ZHT is back and updated, enjoy!
Home Page: http://datasys.cs.iit.edu/projects/ZHT/index.html
License: Other
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.
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)
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.
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.
very interesting project... it's not clear what license this is... can anyone help with that...
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.