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 44148A0561 for ; Mon, 20 Apr 2020 20:04:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6B0281C2F0; Mon, 20 Apr 2020 20:04:10 +0200 (CEST) Received: from mail-vs1-f65.google.com (mail-vs1-f65.google.com [209.85.217.65]) by dpdk.org (Postfix) with ESMTP id 66BFD1C2DD for ; Mon, 20 Apr 2020 20:04:08 +0200 (CEST) Received: by mail-vs1-f65.google.com with SMTP id l25so3937878vso.6 for ; Mon, 20 Apr 2020 11:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dTk7xv6MtFehaNKFrTMisTx/saA1+cO8IHwUX6yt64E=; b=J/Ku7HtvAzDo6Yjn7SJ/7ciR9VbDBGkYeyO98hDMNt2Fqoe9nU05xwkcRtjfdhtQif mYjNyG8kwZ10cUEaAx47RaTmbcxFcPye214aEk1yOAgx9zV2xR5j0ULExpjRs9WEIGkA D8UD7ZR6grDJ4CsfFsce/74xTwA7pI/jRnF0WsqfjrKf6ag69KSEcU1zqEftWOOQMmdS o5TM+f+Cd5DQOdbkbO8C5cDBZcMeE8DQSPIsAu7LhRsr3Wzdw7l8mWheQXmQ+knDJV9p N4hoEkAOqG1Tl5cRM9QX14IXZZIk+nqcVVHpl5T92kQx43ZgOV2Nyy0A698ltyIYiso1 FA9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dTk7xv6MtFehaNKFrTMisTx/saA1+cO8IHwUX6yt64E=; b=eHNr3/Y7goPA5i7R/BDI/Egf52/c0STwrQ0CQc99omhciZtm4yDUzXGjaVtT0/NTmd Nxx7lD3Rl07Z1tqeX9Qw+O3mTKDSgSlbIHrNE4OPaEuL1JZiUTACr3IQ7MfnniyawBcm Ce1DEUDSqtBftCYE1+/+jtd3zcwkDJAKGGc2Re1dxCvaGI8V8Kslb/OlcP5XlT7+KLsw 4ydEqR9Pp3fWbHAHnvjB+Hyv+uay48QNcC5v1vyaWaZtLKqiAj4PZQ2ahDpPI4iL+RUa kkRoUCCRmXHidlNMn96pP5VaLCn/MOMR/A6beO7/3HShb69b0lTKzBN+4ej4PWjdfy9T eENA== X-Gm-Message-State: AGi0PuZRD53QZQw0cY0Hl3wkAhlUVGGzUN9RKszLH4jENdt6mrFIGzZs roKfm4ssrd+LFVc6FRkjSMtcW0KVtGWCQzsntfE= X-Google-Smtp-Source: APiQypLHprvVnw9hdSmJMqXsLAQdnLlpCc7IZGnFiHYvyNSUIbU00gUlmaZYe64AnMEqCQBwzrwQdSdC7N1DabMIJlM= X-Received: by 2002:a67:1942:: with SMTP id 63mr12644794vsz.37.1587405847352; Mon, 20 Apr 2020 11:04:07 -0700 (PDT) MIME-Version: 1.0 References: <20200420080736.6934cee7@hermes.lan> In-Reply-To: <20200420080736.6934cee7@hermes.lan> From: vikram T Date: Mon, 20 Apr 2020 23:33:56 +0530 Message-ID: To: Stephen Hemminger Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Segmentation fault at rte_cpu_get_flag_enabled 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" Hi Stephen, Thanks for the response. As far as I know the value given to CONFIG_RTE_MACHINE may be any of these: ( supported in DPDK) armv7a default dpaa2 ivb nhm power8 snb thunderx2 xgene1 armv8a dpaa hsw native octeontx2 silvermont thunderx wsm How do I find/determine the minimum CPU type from the above supported machines? Additionally our product runs on multiple machines and hence would like to select the most minimum CPU set to avoid this issue. Regards Vikram On Mon, Apr 20, 2020 at 8:37 PM Stephen Hemminger < stephen@networkplumber.org> wrote: > On Mon, 20 Apr 2020 12:39:02 +0530 > vikram T wrote: > > > Hi, > > I have been seeing the application crashes( DPDK v19.08) with > segmentation > > fault as below: > > (gdb) bt > > #0 0x000000000054fda9 in rte_cpu_get_flag_enabled () > > #1 0x00000000004f5d5e in rte_hash_crc_init_alg () > > #2 0x000000000084cf7d in __libc_csu_init () > > #3 0x00007ffff4df9425 in __libc_start_main () from /lib64/libc.so.6 > > #4 0x00000000005048df in _start () > > (gdb) q > > > > Here the DPDK is built and linked on the machine different from the > target > > machine. > > Hence used the flag - "CONFIG_RTE_MACHINE = default" but no success. > > > > Is there anything that needs to be followed to overcome this blocking > issue? > > > > Regards > > Vikram > > You need to to set CONFIG_RTE_MACHINE to the minimum cpu type that your > product needs to run on. That value sets the compiler flags which determine > which extended CPU instructions will be used. >