Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test readme.txt error #112

Open
moon-tutu opened this issue Mar 26, 2023 · 4 comments
Open

test readme.txt error #112

moon-tutu opened this issue Mar 26, 2023 · 4 comments

Comments

@moon-tutu
Copy link

This is the result in README.txt
$ cd editdist
$ make
$ ./a.out
Port number missing
Usage: ./a.out <--|remote_host>
$ ./a.out 1234 -- leaf &
$ ./a.out 1234 localhost left
<...>
Result: 2

I tested the example in Reader.txt,but something wrong happened. I want to know what happened? emmm
This is my result
master:/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 -- leaf &
[1] 47444
master:
/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 localhost left
Generator OT time: 0.132232 s
Evaluator OT time: 0.132566 s
2244
Evaluator total time: 0.133091 s
Result: -542695010
2244
Generator total time: 0.133033 s
Result: -542695010

@samee
Copy link
Owner

samee commented Mar 28, 2023

I honestly don't think I've ever seen that before. Did you get any other strange error during the build process? Do you see any changes if you run git diff?

@samee
Copy link
Owner

samee commented Mar 28, 2023

Also, can you paste the output from running uname -a on your system? I just want to make sure this isn't related to some unusual system configuration I haven't seen before.

@moon-tutu
Copy link
Author

Thank you.I have solved it.I ran git diff and found the reason.
I copied the file from windows OS and formats have problems.

Then I run this
find /path/to/folder -type f -print0 | xargs -0 dos2unix

/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 -- leaf &
[5] 64186
swz@master:~/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 localhost left
Generator OT time: 0.131464 s
Evaluator OT time: 0.131340 s
2252
Evaluator total time: 0.131673 s
Result: 2
2252
Generator total time: 0.131994 s
Result: 2
[5] Done

Is 2252 a PID?
I had run the millon test example and wanted to read your source code about execYaoProtocol()function .
But it seemed a little hard for me.haha.
It's not as easy as it looks in the book. It's hard to find the steps to convert to the circuit, encrypt, send my x, send y via ot protocol and decrypt etc

@moon-tutu
Copy link
Author

master:/mpc/obliv-c/test/oblivc/editdist$ uname -a
Linux master 5.15.0-67-generic #74
20.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants