-
Notifications
You must be signed in to change notification settings - Fork 19
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
Usage of library, runtime error #1
Comments
May I knew whether your CPU enable SSSE3 instructions (e.g., pshufb) and POPCNT? Besides, may I knew, will the same error occurs when using the example file "sboxes6.txt"? Another possible point, is that, maybe that error was not caused by PEIGEN. From the std::cerr statement, it seems the error comes from _ZNSo6sentryC1ERSo (). I googled "_ZNSo6sentryC1ERSo ()", and found this page: https://groups.google.com/forum/#!topic/comp.unix.tru64/WHHqM2ZyloM. |
The CPU is Intel i7-4790, and use parameter -mavx2 so the the code compile. Will compiler then make sure the CPU support the needed instruction? I use sboxes6.txt as the input. When I remove the last character of each LUT the error move to a different place and and the program does not complain about the length not being 128 characters long. The small test program does work. On which platform was the library developed? |
I have tested on the following CPUs and g++: |
It seems the program haven't call parse_function() in func.cpp, because, otherwise the program will complain about the length...
Your wrapper file "s_box_evaluation_wrapper.cpp.txt" writes "sbox6_Eva.evaluate_verbose(filename.c_str(), "properties");" Could you change Sorry for that I can hardly find the problem, I can only try my best to guess. I have tried to change |
I did delete the .c_str() but still get the same behavior. The function sboxes6_len_ok.txt What is the easiest way to disable openmp? I am using gcc 7.4.0. Next I will test the program on Cent Os, hopefully that will work. |
Note that, the files used as input to the functions of PEIGEN should be encoded in UTF-8 and End of Line (EOL) in Unix (LF) when running on a Linux... I used to encounter core dump because the input file is of the End of Line (EOL) in windows (CR LF).. I am not sure whether this is because, your input files are with EOL in windows (CR LF)..
|
Using the correct EOL solved the problem with the length of the sboxes. I still get a core dump using cygwin. |
Hi, I tested PEIGEN in cygwin (with g++ version 7.4.0), it worked on my PC. If you want to test it, you may put the following codes into PEIGEN, and use: |
So, I guess the issue may caused by the SSE instructions, maybe your PC does not support the The |
I want to use the library and started with an example program. When I run the program I get errors (core dump) that move as I add std::cerr statement to follow the execution of the program:
I am using cygwin.
The files used are attached.
s_box_evaluation.cpp.txt
s_box_evaluation_wrapper.cpp.txt
s_box_evaluation_wrapper.h.txt
The text was updated successfully, but these errors were encountered: