-
Notifications
You must be signed in to change notification settings - Fork 120
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
Illegal hardware instruction (core dumped) #297
Comments
The above error means it detected a invalid instruction for the CPU you are running on. It also looks like the code failed in DPDK routines, but not positive. What is the CPU you are running on? It could be the code was built for one CPU and executed on another one, without any exact location it will be hard to debug. |
this is my machine info:
In this case, I first compiled DPDK-24.11.0, followed by pktgen. I ensure that both were compiled and executed exclusively on this machine. When I ran
So, it at least proves that DPDK has no issues. How can I take steps to catch errors? |
Looks like you are going to need to add some printfs to the code in pktgen to determine the exact location or build pktgen with debug enabled and run with GDB. make clean debug Think this the the command to run GDB, but I can not look ATM. This should stop at the error and we need to determine whare in Pktgen it is failing. I have not tested or have a i5 processor to test pktgen on. |
When i build with debug mode
|
The invalid mapping format error, seems odd change |
ok,thx! there is the debug log:
|
This instruction is executed in rte_memcpy() routine which uses AVX instructions to copy memory quickly. This means to me that DPDK is not compiled correctly for this machine and it is using instructions which are not present. I think you stated this was an i5 processor, which may not be suitable for DPDK. |
Haha, I think so too. This CPU already old than old. I'm testing DPDK on this device just to evaluate its performance and verify whether it can still be used in a production environment. Thank you again! I think I might need to update the devices. 😆 |
hi, when i compile the latest pktgen with DPDK-24.11.0 LTS,and run it with
sudo ./usr/local/bin/pktgen -l 1-3 -n 1 -- -T -P -m "2.0,3.1"
i got the those messages
and than i check the kernel messages:
so, what's the problem? how can i fix it?
thx!
the build log is here
The text was updated successfully, but these errors were encountered: