From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by dpdk.org (Postfix) with ESMTP id CB23E1B016 for ; Thu, 19 Apr 2018 14:57:40 +0200 (CEST) Received: by mail-qt0-f196.google.com with SMTP id a25-v6so5487846qtm.1 for ; Thu, 19 Apr 2018 05:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Iqt/kWAwNCq0A99XIqX8oQ7LFOUsuC1xvvm4TVc0AcU=; b=VQKqLe51gnnPvalR4BlqEHCZFzqluzIHKfuCc5s7Jm/xF6o59eZEKeFv3zoxXMUpwJ gGQ2O8tZsSeSntTgNSgZAvwOmZJDKMr+q0kqFabBk3vGsYc34g4YYtuDV8n9iM6pu4AN p/JCasFudo0muiq8R8lq9Tpweq43Xg0K1Zw25gTko9WvDcD8dZeWsuBXbrajnSXPfqLB fWnck+Aj8b08bUv6sd/bAyC13SeuFGzmSFM2uaJQsKTZWD3EV8Wr6m+4XKvzNtv5kjmN 8lRDlwupdv5oFmNoAKyhVl/FSglSVmT/xY/AmPqvJF9xEy2tfc6eDoKyHABxOHHdebCy P0Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Iqt/kWAwNCq0A99XIqX8oQ7LFOUsuC1xvvm4TVc0AcU=; b=XWJS6n36ZLOBpt1o7+vzhRUHg0neEviG9enGOZVSrYDj7hW5v7O+fYzF6qZv40S+CD nBfofRi7CPmeqF3SXoTmL3B6IrD+9f2c0ztjBFl8TzaadriyEfRmAiObdV6TB60JbVGK yLWcWADEsFZM9c4B/pYaP6Mlm22YixVsYtEaDy89WaNFfQO13Q7d6D8b+S1HQA9G7zX6 Ev92UAwW/AlNsu1H1wurBOX0sN+8Cz6928hAbinFiKmKssKtv8N58CyoCnwl1L4sDtnC U2zKIGhvfW6LNi7mB9AstynsOnDlk3Gkb12owsqPVz2xWgTFwUUAkfh1It8XfJ3ZSVGj CttQ== X-Gm-Message-State: ALQs6tCdkne99PiTSL9S50sUnv7kD1Fzy2L/pjf2Ty7MBdqk5DSPAWsu 4TNK5N3oX0zpT14Krnl4Oj51lhOEjmJfbQbSnRs= X-Google-Smtp-Source: AIpwx49Nf8HweV4PG1UxsBAM341F63or02H/PvQO1DEq+7eYv7uI/zunBgjhhELl2pNfzQm/bGe6sAbug5A0D2qilY8= X-Received: by 2002:ac8:870:: with SMTP id x45-v6mr5187984qth.46.1524142660110; Thu, 19 Apr 2018 05:57:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.175.154 with HTTP; Thu, 19 Apr 2018 05:57:39 -0700 (PDT) In-Reply-To: References: From: Shyam Shrivastav Date: Thu, 19 Apr 2018 18:27:39 +0530 Message-ID: To: Victor Huertas Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Segmentation fault when creating a hash table in the example of pipeline (ROUTING type) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2018 12:57:41 -0000 I have been using librte_pipeline, librte_table though only acl and hash_key16 part, and firewall part of ip_pipeline in my project for quite sometime. I have never used or worked on other parts of ip_pipeline app like routing. Obviously issue is due to bad memory access at some point. Here are my steps if it helps. If unable to figure out , I usually replace -O3 with -g (that is enable debugging symbols and disable optimization) in makefiles of these two libraries and compile them. Then do the same thing with ip_pipeline makefile and compile. And thats it use gdb and you can get the exact culprit line On Thu, Apr 19, 2018 at 6:03 PM, Victor Huertas wrote: > Hi all, > > I have tried to run the pipeline example with a ROUTING pipeline where I > configured n_arp_entries=8 as well as the arp_key_offset = 192. > > It compiles perfectly but when it reaches the line where the > rte_pipeline_table_create is (see below a fragment of the source code of > the pipeline_routing_init function at pipeline_routing.be.cpp file) it > always crashes with a segmentation fault at the > rte_table_hash_create_key8_ext() function. > > I am completely stuck due to this issue. Has some bug being declared > regarding this table creation function? > > > /* ARP table configuration */ > if (p_rt->params.n_arp_entries) { > > struct rte_table_hash_key8_ext_params table_arp_params; > table_arp_params.n_entries = p_rt->params.n_arp_entries; > table_arp_params.n_entries_ext = p_rt->params.n_arp_entries; > table_arp_params.f_hash = hash_default_key8; > table_arp_params.seed = 0; > table_arp_params.signature_offset = 0; /* Unused */ > table_arp_params.key_offset = p_rt->params.arp_key_offset; > > > struct rte_pipeline_table_params table_params = { > .ops = &rte_table_hash_key8_ext_dosig_ops, > .arg_create = &table_arp_params, > .f_action_hit = get_arp_table_ah_hit(p_rt), > .f_action_miss = NULL, > .arg_ah = p_rt, > .action_data_size = sizeof(struct arp_table_entry) - > sizeof(struct rte_pipeline_table_entry), > }; > > int status; > > status = rte_pipeline_table_create(p->p, > &table_params, > &p->table_id[1]); > > if (status) { > rte_pipeline_free(p->p); > rte_free(p); > return NULL; > } > > p->n_tables++; > } > > Thanks > > -- > Victor >