From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ariel Rodriguez Subject: SEGMENTATION FAULT in kni example : kni_free_kni() call Date: Tue, 28 Oct 2014 23:07:35 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 To: "dev-VfR2kkLFssw@public.gmane.org" Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi, im trying the kni example. When i hit ctrl-c in the terminal stopping the example, the os signals with a segmentation fault. The issue is in this block of code: static int kni_free_kni(uint8_t port_id) { uint8_t i; struct kni_port_params **p = kni_port_params_array; if (port_id >= RTE_MAX_ETHPORTS || !p[port_id]) return -1; -- for (i = 0; i < p[i]->nb_kni; i++) { -- rte_kni_release(p[i]->kni[i]); -- p[i]->kni[i] = NULL; } rte_eth_dev_stop(port_id); return 0; } The following change fix that issue: static int kni_free_kni(uint8_t port_id) { uint8_t i; struct kni_port_params **p = kni_port_params_array; if (port_id >= RTE_MAX_ETHPORTS || !p[port_id]) return -1; ++ for (i = 0; i < p[port_id]->nb_kni; i++) { ++ rte_kni_release(p[port_id]->kni[i]); ++ p[port_id]->kni[i] = NULL; } rte_eth_dev_stop(port_id); return 0; } Sorry for the basic of my fix ... i dont know the correct style to report this kind of issues... im just a user of the dpdk library ... but i meet this bug ... Regards. Ariel Horacio Rodriguez.