From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by dpdk.org (Postfix) with ESMTP id 2B10B1E2B for ; Fri, 4 Nov 2016 04:41:49 +0100 (CET) Received: by mail-vk0-f43.google.com with SMTP id w194so57222914vkw.2 for ; Thu, 03 Nov 2016 20:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=F+oIGr34WUF6a4/Jb2o9Ly4bcgV8CeAVhZQwhkqlRLg=; b=auJAk0Ncy5PvB+Hyseb9ZTOwy39PnA1ntQp+rVNHnv1S2gqavNXWJPNLXdaeRQjSX8 NzweiKVBcxURQv7aWCY/pViR+sp/FBJcCx7AXbACmWKhOUZ8nLQQDeoYLFqqWF5CEIuN a078oZVoebbyhAbHAJhw6JcMSUz3J9zyiIMLnahpiRQFjwR88R2iejv1QMkAEuX/M60Y Rc6AyR2X2UgSrBHNGkeB1qY60JrfFQ2yOAgIoUOY5L7Tlm2spSKGjAmKNsyuPx7nPaFn dX4bzeaB6WEF5qQj296nCyPIbgCLDS5HvAX3jypRYddOiL0y6gW+b9J7tJYOc7U97IDT FsEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=F+oIGr34WUF6a4/Jb2o9Ly4bcgV8CeAVhZQwhkqlRLg=; b=FmOL/KCO+QFysYCD6L+sCCsS7RigtSTWIUclqxOXkTkLOzBIDPRMvTUQn7uP692j7U r74RJm2JKOq44tEwhhOHpQ6pcXOaMVphW4oVjJj85+++Y3VvivxPWgMD/mhc2YDyxo+X vhzrSE0YGWQIQpQ1SaFUH/l79oHCt35XOelaJQUwsrCb3znkvebBWgb1f9GeeIiJtwuj rqLkwPOr5UNXNNamtnrsV8ehQgUj1U+4CQnvUcFd3g1XuJhm8GcqEViVJoML2DGV1BTf t960T1YWik/eVjZwmpldbxaEDQBtaaxVySoD0u4+Q1W2D7dDuNKgi5ktoAhM6pipCb+u tsew== X-Gm-Message-State: ABUngvdvTJruLqmoCZXHBklouXUV3Mjxc4hWF8+t0a7YcI9DCMb6Zt9myp//qUx5JVMpziIFZa8yrZR62tRkug== X-Received: by 10.31.237.131 with SMTP id l125mr10225760vkh.56.1478230908585; Thu, 03 Nov 2016 20:41:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.37.199 with HTTP; Thu, 3 Nov 2016 20:41:48 -0700 (PDT) In-Reply-To: References: From: Sruthi Yellamraju Date: Thu, 3 Nov 2016 23:41:48 -0400 Message-ID: To: XIAO Xiaohong , users@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] DPDK-16.07: segfault when calling rte_eth_stats_get() from secondary process X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 03:41:49 -0000 I tested with the same binaries for vmxnet3 and that works fine. Could there be an issue in fm10k stats APIs? On Thu, Nov 3, 2016 at 9:45 PM, Sruthi Yellamraju wrote= : > Both primary and secondary processes are built and running off 16.07 > > > On Thursday, November 3, 2016, XIAO Xiaohong com.cn> wrote: > >> Hello >> You said your primary process calls a shared library, then what's the >> DPDK version this shared library is built on? >> Can you make sure the primary and secondary process both are using same >> DPDK version? >> >> -----Original Message----- >> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Sruthi >> Yellamraju >> Sent: 2016=E5=B9=B411=E6=9C=884=E6=97=A5 6:49 >> To: users@dpdk.org >> Subject: [dpdk-users] DPDK-16.07: segfault when calling >> rte_eth_stats_get() from secondary process >> >> Hi, >> >> I am using DPDK 16.07 with fm10k. I am seeing segfaults when calling >> rte_eth_stats_get() API from a secondary process. >> >> The primary process doesnt call DPDK APIs directly and hence doesnt link >> against DPDK Libraries. The primary process uses a shared library that i= n >> turn is using DPDK APIs and links with DPDK libraries. All DPDK librarie= s >> are built as static libraries. >> >> The secondary process uses DPDK APIs directly and hence links against th= e >> DPDK static libraries directly. >> >> When i run the secondary process to get stats (something like >> dpdk-procinfo) application, it segfaults (Error 14). gdb shows: >> (gdb) bt >> #0 0x00007fffeacd72bc in ?? () --> points to stats API offset in the >> primary processes' shared library >> #1 0x00000000006761d7 in fm10k_update_hw_stats () >> #2 0x0000000000650dee in fm10k_stats_get () >> #3 0x000000000043803d in rte_eth_stats_get () >> #4 0x0000000000a68663 in do_get_stats (argc=3D, >> argv=3D0x7fffffffe478) at dpdk_status.c:225 >> #5 main (argc=3D, argv=3D0x7fffffffe478) at >> dpdk_status.c:501 >> >> Any clues on why this could be happening? I am guessing this needs some >> linker magic to get it to work. Not sure what exactly. I played with a >> couple of options , but in vain. >> >> Any pointers will be greatly appreciated. >> >> Thanks! >> >