From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id D4D4C7F9C for ; Wed, 29 Oct 2014 09:26:53 +0100 (CET) Received: by mail-wi0-f182.google.com with SMTP id d1so3860821wiv.3 for ; Wed, 29 Oct 2014 01:35:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=JUdcC4LUd9hgrGg9QU4OJdBR0mgi7JDda8nHEq7+1bU=; b=ZGeEEiF7kq5HBd7TaAyUtgh9qV8uXrwTkRnm0knf4kTAz8vVCLxYQdeVFVIBn3ZfQ2 nEiG2IZCaYBedk8SBThGMdMR3kEBX/31i51mRDnAvnjDHYU2euMxPj+tPKPhBGJyOtUG rEmL4eSZxuIce+rQhVq68J35G0ccYIQw9IaeRLvrqZBWZHMUGariPm0HXn8gaaU/s6CI QuQP72oNyQ/5SEiutZjGSuxvK3HqBAiihW1Wd4AMA60Ejg7BELO3YvCgH3Z+RFam7Zae YkkdZ+cNiIfTMdbT+9ME5o3/+ie4k5TaVC8ATThfJAHsI4+VZgttujgCvYjdUItmPN+L 2ZIA== X-Gm-Message-State: ALoCoQnVcLMikd9R/Vsl1mMRJUZaZ3yr7e1KJxwebLakY73L4i9HWQFmTOxbiXoq6jcBumd/ul/O X-Received: by 10.180.85.68 with SMTP id f4mr33856138wiz.10.1414571744630; Wed, 29 Oct 2014 01:35:44 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id md11sm9727281wic.15.2014.10.29.01.35.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Oct 2014 01:35:43 -0700 (PDT) From: Thomas Monjalon To: Ariel Rodriguez Date: Wed, 29 Oct 2014 09:35:26 +0100 Message-ID: <5223956.lFdNUbkl0D@xps13> Organization: 6WIND User-Agent: KMail/4.14.2 (Linux/3.17.1-1-ARCH; KDE/4.14.2; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] SEGMENTATION FAULT in kni example : kni_free_kni() call X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2014 08:26:54 -0000 Hi, 2014-10-28 23:07, Ariel Rodriguez: > 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 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 ... Thank you for reporting it. If you want to send an applicable patch, the procedure is described here: http://dpdk.org/dev#send -- Thomas