Closed darinkes closed 4 years ago
Ok, found it:
You have to to disable the builtin signal handler:
config := flow.Config{
NoSetSIGINTHandler: true,
}
flow.CheckFatal(flow.SystemInit(&config))
Nice finding. I forgot about this setting, and couldn't guess the cause of crash from stack trace.
The crash happens the second time SystemStop() gets called. Maybe there should be a check in SystemStop() to just return if it is already stopped. But havent thought much about it yet.
@darinkes Stefan, can you please send some details about the project that you are working on with NFF-Go?
@aregm Thanks for asking. Currently I'm just starting to learn more about DPDK in general and Network Functions in Cloud Environments. Being not a hardcore C-Hacker this library gives me a nice way to work with DPDK.
I see various panics on flow.SystemStop()
Or sometimes the program even hangs at "DEBUG: Stop clone" till I kill it.
The Code looks like this:
My Devices:
Any Ideas?