From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F6EFA00C2 for ; Thu, 5 Jan 2023 18:06:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 315074067C; Thu, 5 Jan 2023 18:06:53 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id C5CE44021E for ; Thu, 5 Jan 2023 18:06:51 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id o8-20020a17090a9f8800b00223de0364beso2591275pjp.4 for ; Thu, 05 Jan 2023 09:06:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Za+3kGv3lKqZVzPM9J5yaJDrT5YssRKcVIb4YR7HQQM=; b=7fKYqXfyatvgdfmTmJLkPlAL8Kry+fS0njmeji8JF7dohwYEohSE0hN3gSiLJZZ7+P EpFjeqqE9/PNIsuzCH57eTpYyWg2vp5/VSG2+8C1zzh4M9YRllt763OKfW1VbPR0Oc/m d4vfOInkxUWoTnEJE1FJmB5S9ja6kNNfNdCLwYzwt/sr4qspkBQ59qTSELxW6gxCmjhX XtJQOFB1dUzZ+4ZUz7IkbExGR5kSSJW2RcgPX6u7TziAlHQ3IQRIOF85dfd+3P2QpSLQ 6JH4bLx0hZZXtjZ0BDlKrvXWbpTnAFoXL/TajfBo7ik1wnVYewoOWeox3cGV0p1zh+ZQ rmvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Za+3kGv3lKqZVzPM9J5yaJDrT5YssRKcVIb4YR7HQQM=; b=RjpOkQG+sThNBmTXEoc8eCTxjoV58dgP2MBr6nSG1Q/CeZnHrkYpxm19dfiK/7drXW RZnp0TqKnCXu3HiBgB8drxXKbaNVHIHQ2TuXaQus/EPcLLKaubfcOFhtytQNoCKE0fel w6K2rxDjxdZcbPd5bH4pRX0naZiTXyDHO7JS2RPoCtHB8m3lwyhRG8oQikyDB1H1lwCX CLj+BNmsqMZqSaBRRNq50h0F2oJxIa/7tPAiFvCUA98Md1UyakdIST8/3UiLzxXIj+hI fUk7Uj4sZ0vBM7GygJSBVAeomwdVzy8A+aRoIaWhiDubudvmc3+sRWflY/L0VlMTFobh pgUA== X-Gm-Message-State: AFqh2koaX7YbrMu34eIzHLS+/bEMsLK4egAIeHMc7O2+EG/Qe9gjs28C ppjrPWd/iuQxt/H133JvFfAzl5+3mGniHBIfeMg= X-Google-Smtp-Source: AMrXdXsvVvuTQg/czjpWRwS/vZHGmt23SMRlvnEgiC/L/yyXHhFXRVv32DwwcfOV/VlMlT7agchBSw== X-Received: by 2002:a17:902:7c90:b0:189:e91b:c18 with SMTP id y16-20020a1709027c9000b00189e91b0c18mr52437060pll.32.1672938410581; Thu, 05 Jan 2023 09:06:50 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id j5-20020a170903024500b0019101215f63sm26295031plh.93.2023.01.05.09.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 09:06:50 -0800 (PST) Date: Thu, 5 Jan 2023 09:06:49 -0800 From: Stephen Hemminger To: Balakrishnan K Cc: "users@dpdk.org" Subject: Re: unable to run sample application with addressSanitizer Message-ID: <20230105090649.6d5a9a3f@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Thu, 5 Jan 2023 08:08:58 +0000 Balakrishnan K wrote: > Hi All, > I am trying to run dpdk helloworld example with ASAN tool to check the memory leak. > Following the below page as reference > https://doc.dpdk.org/guides/prog_guide/asan.html > > after compiling the dpdk with options "meson setup -Dbuildtype=debug -Db_sanitize=address -Dexamples=helloworld build" > > program getting aborted can anyone help me on this why I am unable to use ASAN with helloworld sample. > > Snipped of the error : > > ./build/examples/dpdk-helloworld -l 0-3 -n 4 > EAL: Detected 72 lcore(s) > EAL: Detected 2 NUMA nodes > EAL: WARNING! Base virtual address hint (0x100005000 != 0x7f2a56500000) not respected! > EAL: This may cause issues with mapping memory into secondary processes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > ================================================================= > ==29612== ERROR: AddressSanitizer: global-buffer-overflow on address 0x000005837bd0 at pc 0xc39598 bp 0x7ffede705bc0 sp 0x7ffede705bb0 > READ of size 2 at 0x000005837bd0 thread T0 > #0 0xc39597 (/home/balki/dev/dpdk-20.11/build/examples/dpdk-helloworld+0xc39597) > #1 0xc3bbb3 (/home/balki/dev/dpdk-20.11/build/examples/dpdk-helloworld+0xc3bbb3) > #2 0xad8832 (/home/balki/dev/dpdk-20.11/build/examples/dpdk-helloworld+0xad8832) > #3 0xb2bdff (/home/balki/dev/dpdk-20.11/build/examples/dpdk-helloworld+0xb2bdff) > #4 0x4083eb (/home/balki/dev/dpdk-20.11/build/examples/dpdk-helloworld+0x4083eb) > #5 0x7f2a51aaa554 (/usr/lib64/libc-2.17.so+0x22554) > #6 0x4082c8 (/home/balki/dev/dpdk-20.11/build/examples/dpdk-helloworld+0x4082c8) > 0x000005837bd0 is located 48 bytes to the left of global variable 'otx2_ree_ops (../drivers/regex/octeontx2/otx2_regexdev.c)' (0x5837c00) of size 144 > 0x000005837bd0 is located 4 bytes to the right of global variable 'pci_id_ree_table (../drivers/regex/octeontx2/otx2_regexdev.c)' (0x5837bc0) of size 12 > Shadow bytes around the buggy address: > 0x000080afef20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x000080afef30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x000080afef40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x000080afef50: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 > 0x000080afef60: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 > =>0x000080afef70: 00 00 00 00 00 00 00 00 00 04[f9]f9 f9 f9 f9 f9 > 0x000080afef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x000080afef90: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 > 0x000080afefa0: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 > 0x000080afefb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x000080afefc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > Shadow byte legend (one shadow byte represents 8 application bytes): > Addressable: 00 > Partially addressable: 01 02 03 04 05 06 07 > Heap left redzone: fa > Heap righ redzone: fb > Freed Heap region: fd > Stack left redzone: f1 > Stack mid redzone: f2 > Stack right redzone: f3 > Stack partial redzone: f4 > Stack after return: f5 > Stack use after scope: f8 > Global redzone: f9 > Global init order: f6 > Poisoned by user: f7 > ASan internal: fe > ==29612== ABORTING There is no octeontx2 regex driver in the upstream code. Please reproduce without any additional out of tree drivers.