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 F0CCCA04AB; Mon, 31 Aug 2020 05:20:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E7D71137D; Mon, 31 Aug 2020 05:20:16 +0200 (CEST) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id 4D24E255 for ; Mon, 31 Aug 2020 05:20:15 +0200 (CEST) Received: by mail-pl1-f194.google.com with SMTP id bh1so2354042plb.12 for ; Sun, 30 Aug 2020 20:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/MUzOV3UMaDTfkYqZgy59NFOMBMhLIf6X2vaHXy1a2I=; b=MS5jNFtj783fc6yjRuBlfFM+5BZKH6mVeGDffSGXuNgzSlNykMgf/7KQrA+BQ9rNVj xvmru0yvejMATPC3nLk6lHD+liZcjmXBnUHy4PARCWy8PngAQ53FVEw2+LhE37kp17LM cpCbTT6PaSTS3EGp+uVcSPqOrUCi2mxJjCjMXVX7oRNJXfAH4LMJpH2ZqdOhpvhACIfh PDasgmo2X2EYUWRseyt1hHIQOArv9wmFZ6TT4D+apIyS7zWZekAXiWBZ9t/0XVJ4OfUQ yBlbkSGSfH+Us9H0OL+2VhL6vxHyaz/e2mdfEyHSrTC7dAMww4Uj96STpqTVYfZsG3Gm O2sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/MUzOV3UMaDTfkYqZgy59NFOMBMhLIf6X2vaHXy1a2I=; b=Q6GrOGsH8CutWC6Hgi4RjXgVtzBHlcJfx+2xKm7F2lCloDab34j3SKzWBMWfPOp8YA bGkUdDMJCVE9tWpf5DxYe7d6Ju/VTuULnlpLB3MeAcX2j0rhGhtypjVshgUFTSaDZXPT gGDQL90hXe2hDc89uwsUCqzYxQMdlusSOGTaLvK2Ky9yMKxiNhKS7qpEOtye3o0slDuZ wx10wO/sdIsm41gGWNEDZe5HUJdvfzeKtqDLd/tWeeF1sRQul4uCKzhsAr//W96uy/bm Eh95DXgL4Wf+GqgdwS4Rb0GhL/cOgmrqwqU+TV1cPazk9aJh/ZWOxLubydSBrKU0ZIbN l64A== X-Gm-Message-State: AOAM53087gJLndLph+8oNr4prJdlQSBJTTt3O6KjRbSgGqsEz86j1m8O O6xuSK9qe2H2znVddaPcqz6+XQ== X-Google-Smtp-Source: ABdhPJw1sDNZCFwWAl/gAR+gYRSUQdi4CjhOpd+3bPnjC8rpYECeOuhnSvhnUqNWhkI2J5YvflAduw== X-Received: by 2002:a17:90a:ad8b:: with SMTP id s11mr1146018pjq.40.1598844014143; Sun, 30 Aug 2020 20:20:14 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id e66sm5722061pfa.130.2020.08.30.20.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Aug 2020 20:20:13 -0700 (PDT) Date: Sun, 30 Aug 2020 20:20:05 -0700 From: Stephen Hemminger To: Victor Huertas Cc: "Montorsi, Francesco" , "dev@dpdk.org" Message-ID: <20200830202005.67dcce2b@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] Using valgrind with DPDK app 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, 29 Aug 2020 19:54:08 +0200 Victor Huertas wrote: > Hello, >=20 > I have exactly the same problem as you. I have also downloaded, compiled > and installed the very last version of valgrind (v3.17). > As soon as the mempool is created, the program gets stuck. >=20 > If valgrind cannot be used with DPDK (I am using v18.11.5) as memory leak > debugger, there must be other tool to do it. Which one? >=20 > Thanks for your attention >=20 > El vie., 10 jul. 2020 a las 16:59, Montorsi, Francesco (< > fmontorsi@empirix.com>) escribi=C3=B3: =20 >=20 > > Hi all, > > I would like to know if it's possible to run my DPDK application (I'm > > using DPDK 19.11) under Valgrind. > > I tried but it gets stuck apparently while accessing hugepages: > > > > ---- > > AL: Detected memory type: socket_id:0 hugepage_sz:1073741824 > > EAL: Detected memory type: socket_id:1 hugepage_sz:1073741824 > > EAL: Creating 4 segment lists: n_segs:32 socket_id:0 hugepage_sz:107374= 1824 > > EAL: Ask a virtual area of 0x1000 bytes > > EAL: Virtual area found at 0x100033000 (size =3D 0x1000) > > EAL: Memseg list allocated: 0x100000kB at socket 0 > > EAL: Ask a virtual area of 0x800000000 bytes > > EAL: Virtual area found at 0x140000000 (size =3D 0x800000000) > > EAL: Ask a virtual area of 0x1000 bytes > > EAL: Virtual area found at 0x940000000 (size =3D 0x1000) > > EAL: Memseg list allocated: 0x100000kB at socket 0 > > EAL: Ask a virtual area of 0x800000000 bytes > > EAL: WARNING! Base virtual address hint (0xa80001000 !=3D 0x1040000000)= not > > respected! > > EAL: This may cause issues with mapping memory into secondary proces= ses > > EAL: Virtual area found at 0x1040000000 (size =3D 0x800000000) > > EAL: Ask a virtual area of 0x1000 bytes > > EAL: Virtual area found at 0xac0001000 (size =3D 0x1000) > > EAL: Memseg list allocated: 0x100000kB at socket 0 > > EAL: Ask a virtual area of 0x800000000 bytes > > ---- > > > > I've seen there was some attempt a few years ago: > > http://mails.dpdk.org/archives/dev/2016-February/033108.html > > has anything changed since that? > > > > Also I see that Luca has created a project here > > https://github.com/bluca/valgrind-dpdk > > but seems like there were no changes since 3 years... I wonder if that > > works or not with recent DPDK versions... > > > > Thanks for any hint, > > > > Francesco Montorsi Try the address-sanitizer option of Gcc or Clang. It works for applications. I had issues with running on EAL startup.