OpenDataPlane / odp

The ODP project is an open-source, cross-platform set of application programming interfaces (APIs) for the networking data plane
https://opendataplane.org
Other
177 stars 134 forks source link

bus error #784

Closed ieliynehc closed 5 years ago

ieliynehc commented 5 years ago

Sometimes, when my ODP application exits and restarts it, it will encounter bus error. As long as this phenomenon occurs, it will not disappear unless the Linux OS is restarted. If the Linux OS is not restarted, the bus error will appear every time the application is started.

Although restarting Linux OS can temporarily avoid this problem, after a few days, it will appear again.

Can I get any help from here? Thank you.

Linux CentOS 3.10.0-514-el7.x86_64 image

Bill-Fischofer-Linaro commented 5 years ago

What level of ODP are you using? And what compiler (version and release) are you using to compile it and your application?

ieliynehc commented 5 years ago

ODP v1.19.0.0 LINUX-GENERIC PLATFORM, not LINUX-DPDK。

gcc 4.8.5 20150623 (Red Hat 4.8.5-16) both for odp and application. image

It occurs when packet pool creating.

MatiasElo commented 5 years ago

Hi,

Are you running ODP natively on CentOS or inside a container? How about huge pages?

You could build ODP with --enable-debug and --enable-debug-print flags to get more information. Are you checking pool capability (odp_pool_capability()) and using valid parameters for odp_pool_create()?

muvarov commented 5 years ago

do you run this under docker (if yes, you have to increase shm size). More likely you have out of memory error.

MatiasElo commented 5 years ago

This issue should now be fixed (https://github.com/OpenDataPlane/odp/commit/5ccc27cf77c936460b265c973a531a04b7a74014).