From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8AA95A04EF for ; Mon, 1 Jun 2020 18:17:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EFD981C0AF; Mon, 1 Jun 2020 18:17:40 +0200 (CEST) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by dpdk.org (Postfix) with ESMTP id 792181C08C for ; Mon, 1 Jun 2020 18:17:38 +0200 (CEST) Received: by mail-pg1-f179.google.com with SMTP id s10so3742387pgm.0 for ; Mon, 01 Jun 2020 09:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5NDMKDR/wEZ1VdgvOtbpqUsfg+qcIr3CgyNPBt0jksE=; b=fv4kMEK6MkiqAbBWawVglUuJqoBz9We3GbzrzuA14BzFHB6oMQuVVPpSmgVhWmCTfD EsYM2w9LvLkY8gfvegWRH/kvlQvJbgIqoZ0w8InfzMcakYaLI+Qn/Ujy/PDFDgFzXxXQ ywLFbiAGDH+CV6+CqUCqkFmQx+PmJMIhrl6CwlQZaQvsHKWBDFYTZ3R5TAwh1jrVhgGT MfbyeSN+UJiiZzT4NGGiAlT1YP2cQehj+kPG1tqox+THif50V2hxKC87rngZrZO+OKUo xwF021kkH5MHwja3oNGQWbyaOds6/EgRqdQUQM2ZCLtyhYiSgmrn+h6UK4psz/WmiRtS WAUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5NDMKDR/wEZ1VdgvOtbpqUsfg+qcIr3CgyNPBt0jksE=; b=mO59lBRjw2Kz7YFueWcCAvNwlbptQ0lHtXgIY91pqhHZkrd4vwyXKjbPoV72phaVJc de65WfM4zq1j7zEWDHC6dDsWBMF9O5gu94qhPjcbXkyt6sk0QG8eVlMC4ACMX7IP9eUT oQiVB/Wlb7Bj4Nw5oGEIhcvQNB6sE5hQs1ZXJV9SGtTzbaAVSa23AG6G+GXqO7MV4mX/ ICQm+Bwoxhr9RViHYUr9frbFEKrZW9NKuXFS+05Dn6WJqXvP7Yuiuc1z7dxZIGZx72xZ BrBjk5bG6USlmhCHtkJUVutGumM09mIgvKs0F1VaVJej4D7nPSFLWc5u2Led4R3Kvy5j GJVw== X-Gm-Message-State: AOAM533RxY+EWz3IsilXOXi2UQ5ThIP6OCCmWR7BuAC+vSyJaJ1WzFu4 LfKcotLPCmmAfV/QXciVzcQdI5kD3QE= X-Google-Smtp-Source: ABdhPJyx+l0E8xzL7Zad42c6PT6mhzRbI33egRMTfm8NXjOLDjNpNMmuaDSv5gauOVmTRlldiSWq9w== X-Received: by 2002:aa7:8298:: with SMTP id s24mr21585155pfm.122.1591028257879; Mon, 01 Jun 2020 09:17:37 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q8sm46134pjj.51.2020.06.01.09.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 09:17:37 -0700 (PDT) Date: Mon, 1 Jun 2020 09:17:29 -0700 From: Stephen Hemminger To: Alex Kiselev Cc: users@dpdk.org Message-ID: <20200601091729.03ea9e50@hermes.lan> In-Reply-To: <504fcb6e5a12a03035e7b55507e7c279@therouter.net> References: <504fcb6e5a12a03035e7b55507e7c279@therouter.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] segmention fault while accessing mbuf X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Mon, 01 Jun 2020 15:24:25 +0200 Alex Kiselev wrote: > Hello, > > I've got a segmentation fault error in my data plane path. > I am pretty sure the code where the segfault happened is ok, > so my guess is that I somehow received a corrupted mbuf. > How could I troubleshoot this? Is there any way? > Is it possible that other threads of the application > corrupted that mbuf? > > I would really appriciate any advice. > Thanks. > > DPDK 18.11.3 > NIC: 82599ES > > Code: > > nb_rx = rte_eth_rx_burst(port_id, queue_id, pkts_burst, > MAX_PKT_BURST); > > ... > > for (i=0; i < vec_size; i++) { > rte_prefetch0(rte_pktmbuf_mtod(m_v[i], void *)); > > for (i=0; i < vec_size; i++) { > m = m_v[i]; > eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *); > eth_type = rte_be_to_cpu_16(eth_hdr->ether_type); <--- > Segmentation fault > ... > > #0 rte_arch_bswap16 (_x= at address 0x4d80000000053010>) Build with as many of the debug options turned on in the DPDK config, and build with EXTRA_CFLAGS of -g.