From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id 6158CAAC5 for ; Thu, 19 Apr 2018 14:33:54 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id q3-v6so3558856wrj.6 for ; Thu, 19 Apr 2018 05:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=mNC1v6GOYEOrCAnQKVkpoix+GCBsgSlWIXBoBOC9wi8=; b=GGkU4ntP2wp4fMsAKrxRSmHseEY2ssvlgEcftY3zYmdPh+bFrKHmwXWaU4dxUcCcbz SgyQLYZO26g89OZGbFK/lYkXXHD2lbSEaLGSPupE1CuBL4XJne/jwWVpOA48VtjMsnHR oQGTjVoZ5ABR8YCE1to1SslNJjHC0DXfeidRMEzW5f0pLlGA5F8P4XvcaUtcVuU0H2ka du/83642aZ8MCo/QnEew/f2bJYGMF+Q1La+KVPiESoNDBj9Ommh5XaQiobF6PKXHFa5D 8Xyp6HvF0c0V3Xv0DfBo6SERfsXqgQdPMNhDxJ0tvQJoKv+MVzB7Ej/atIFktDdewLDr MV8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mNC1v6GOYEOrCAnQKVkpoix+GCBsgSlWIXBoBOC9wi8=; b=U740MSjU/pMOZHYYD65R8eESA6gJsZJ3SYaIbDFHVs2X23N25YNajFelzyExVud8PJ mIV+K4RtZMeL1zFU+tfr4YvKK/F2ggFvn8NRkWgFEYh59gj6aWW6DhksXTh2GUp435km fpv88J7zUUJGqLb7PqyjSwkkWkowCKSVYgp0+22iCgGx93t+46Hybk5sHnWSRAt3Lm7u xleG3XKlIjKIgk9CWf/vPhl5Z+JLDXrOaGsFdEVZ9E5wC9bgM4VIWQA8r/moQ0JXGyWh LbFX0AhZ+FOF7rdcDbVqVPabqpDqHVYs2oEdDqNngDLXEuLYBN5erLRXSt5usq0ruhZD 5Kzw== X-Gm-Message-State: ALQs6tBy/Gl2+hXn1Py2V+UZcEIQ+iOTQ+aAD/54osdyWMTAO48vENbB 7XtBTpGD49PKgzIHGPUGuiUUVi809uIw4+C1MpdldQ== X-Google-Smtp-Source: AIpwx4+Duxq4b3Xr4HLTEh19TS7GLXXNVglBlRv8hCURmjUvCkkmiEIG3uU+t3YvciuEbkOfWEcBPUlqd0ly6zi6dMA= X-Received: by 10.80.151.7 with SMTP id c7mr8333795edb.267.1524141233832; Thu, 19 Apr 2018 05:33:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.214.9 with HTTP; Thu, 19 Apr 2018 05:33:53 -0700 (PDT) From: Victor Huertas Date: Thu, 19 Apr 2018 14:33:53 +0200 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [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:33:54 -0000 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