-
Notifications
You must be signed in to change notification settings - Fork 56
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
Segmentation fault with aes.cpp in Examples_Rpi #30
Comments
hello,
the code is tested in raspberry pi 2 not 3 , but there should be no
difference.
i need more insights of the problem, can you add some prinf in various
places of the code and identify the line of the segmentation fault ?
if the line has a function do the same in the function and identify where
the bug is, this way i can help you more.
thank you
GS
…On Sun, Nov 11, 2018 at 11:28 PM Jevay Aggarwal ***@***.***> wrote:
So I followed the steps you have in the readme to install the library and
run it on a raspberry pi. However when I try to run the aes.cpp (with no
modifications) I get a seg fault.
I am using Raspberry pi 3 which is running Raspbian OS. I know that the
libraries are installed fine because when I run test_vectors.cpp it
produces the expected output.
Would you have any ideas as to why this would be happening?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#30>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABnM6ijqzw13UI88XhpZ9zb4iMkxUnlrks5uuJZ5gaJpZM4YYshl>
.
|
Hello thanks for getting back to me. I see. So I do have a printf in the main as the first line but even that is not printed which makes me wonder if the error could be because of faulty linking of the libraries from the makefile. Do you think that would be an issue? |
can you try : sudo make clean I remember when I was initially building the library I had soem segmentation faults, cant recall the reason, but i think it was something with the install or the sudo. other than that, I or you since i yet not own a V3 have to check the CFLAGS I assume they are correct else the make install would fail. We will manage to solve the problem. |
do we have an update from the segmentation fault from your side ? |
Not yet, I have not been able to go to work on it. From what I remember though there wasn't any error on installing but I'll get back to you once I reinstall. |
i will have a deeper look to arm7 v arm6 flags and get back to you.
…On Wed, Nov 14, 2018 at 10:46 PM Jevay Aggarwal ***@***.***> wrote:
So I was looking further into the architecture type of my pi and this is
what I found when I did a cpuinfo. I think I'll have to change the flags
for the compiler accordingly. What are your thoughts?
[image: 2018-11-14-144630_1824x984_scrot]
<https://user-images.githubusercontent.com/11282669/48511353-1858c800-e81c-11e8-9392-f0c6cf67abaa.png>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#30 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABnM6hYIh9aZ7RV6f0LdueZmPkXuo-Naks5uvIE0gaJpZM4YYshl>
.
|
can you run cpp -dM ./dummy.hxx |\grep -i -e linux -e arm -e ARDUINO_X86 |
@jaggarwal96 can you please try with the changes pointed our at #32 issue, and report back? the file change is : AES_config.h at line 8 |
In order to use this command you have to do |
So I followed the steps you have in the readme to install the library and run it on a raspberry pi. However when I try to run the aes.cpp (with no modifications) I get a seg fault.
I am using Raspberry pi 3 which is running Raspbian OS. I know that the libraries are installed fine because when I run test_vectors.cpp it produces the expected output. One thing is notice is that the makefile generates a .so file for aes.cpp but for test_vectors is only creates an executable which makes me wonder if something in the makefile is not working.
Would you have any ideas as to why this would be happening?
The text was updated successfully, but these errors were encountered: